![]() |
mHM
The mesoscale Hydrological Model
|
write of discharge and restart files More...
Functions/Subroutines | |
| subroutine, public | mrm_write |
| write discharge and restart files | |
| subroutine | write_configfile |
| This modules writes the results of the configuration into an ASCII-file. | |
| subroutine | write_daily_obs_sim_discharge (qobs, qsim) |
| Write a file for the daily observed and simulated discharge timeseries during the evaluation period for each gauging station. | |
| subroutine | write_subdaily_obs_sim_discharge (qobs, qsim, factor) |
| Write a file for the simulated discharge timeseries during the evaluation period for each gauging station. | |
| subroutine, public | mrm_write_optifile (best_of, best_paramset, param_names) |
| Write briefly final optimization results. | |
| subroutine, public | mrm_write_optinamelist (parameters, maskpara, parameters_name) |
| Write final, optimized parameter set in a namelist format. | |
write of discharge and restart files
This module contains the subroutines for writing the discharge files and optionally the restart files.
COPYING and COPYING.LESSER provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
| subroutine, public mo_mrm_write::mrm_write |
write discharge and restart files
First, this subroutine calls the writing or restart files that only succeeds if it happens after the write of mHM restart files because mHM restart files must exist. Second, simulated discharge is aggregated to the daily scale and then written to file jointly with observed discharge
Definition at line 51 of file mo_mrm_write.f90.
References mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_common_mhm_mrm_variables::evalper, mo_mrm_global_variables::gauge, mo_common_mhm_mrm_variables::mrm_coupling_mode, mo_mrm_global_variables::mrm_runoff, mo_mrm_restart::mrm_write_restart(), mo_common_variables::mrmfilerestartout, mo_mrm_global_variables::ngaugestotal, mo_mrm_global_variables::nmeasperday, mo_common_constants::nodata_dp, mo_common_mhm_mrm_variables::ntstepday, mo_common_mhm_mrm_variables::simper, mo_common_mhm_mrm_variables::warmingdays, write_configfile(), write_daily_obs_sim_discharge(), mo_common_variables::write_restart, and write_subdaily_obs_sim_discharge().
Referenced by mo_mhm_interface::mhm_interface_finalize().
| subroutine, public mo_mrm_write::mrm_write_optifile | ( | real(dp), intent(in) | best_of, |
| real(dp), dimension(:), intent(in) | best_paramset, | ||
| character(len = *), dimension(:), intent(in) | param_names ) |
Write briefly final optimization results.
Write overall best objective function and the best optimized parameter set to a file_opti.
| [in] | real(dp) :: best_OF | best objective function value as returnedby the optimization routine |
| [in] | real(dp), dimension(:) :: best_paramSet | best associated global parameter setCalled only when optimize is .TRUE. |
| [in] | character(len = *), dimension(:) :: param_names |
Definition at line 980 of file mo_mrm_write.f90.
References mo_common_variables::dirconfigout, mo_common_mhm_mrm_file::file_opti, and mo_common_mhm_mrm_file::uopti.
| subroutine, public mo_mrm_write::mrm_write_optinamelist | ( | real(dp), dimension(:, :), intent(in) | parameters, |
| logical, dimension(size(parameters, 1)), intent(in) | maskpara, | ||
| character(len = *), dimension(size(parameters, 1)), intent(in) | parameters_name ) |
Write final, optimized parameter set in a namelist format.
Write final, optimized parameter set in a namelist format.
| [in] | real(dp), dimension(:, :) :: parameters | (min, max, opti) |
| [in] | logical, dimension(size(parameters, 1)) :: maskpara | .true. if parameter was calibrated |
| [in] | character(len = *), dimension(size(parameters, 1)) :: parameters_name | clear names of parameters |
Definition at line 1056 of file mo_mrm_write.f90.
References mo_common_variables::dirconfigout, mo_common_mhm_mrm_file::file_opti_nml, mo_common_variables::processmatrix, and mo_common_mhm_mrm_file::uopti_nml.
|
private |
This modules writes the results of the configuration into an ASCII-file.
TODO: add description
Definition at line 251 of file mo_mrm_write.f90.
References mo_common_variables::dirconfigout, mo_mrm_global_variables::dirgauges, mo_common_variables::dirlcover, mo_common_variables::dirmorpho, mo_common_variables::dirout, mo_mrm_global_variables::dirtotalrunoff, mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_common_mhm_mrm_variables::evalper, mo_common_file::file_config, mo_mrm_global_variables::gauge, mo_common_variables::global_parameters, mo_common_variables::global_parameters_name, mo_mrm_global_variables::inflowgauge, mo_mrm_global_variables::l11_fromn, mo_mrm_global_variables::l11_l1_id, mo_mrm_global_variables::l11_label, mo_mrm_global_variables::l11_length, mo_mrm_global_variables::l11_netperm, mo_mrm_global_variables::l11_rorder, mo_mrm_global_variables::l11_slope, mo_mrm_global_variables::l11_ton, mo_mrm_global_variables::l1_l11_id, mo_common_variables::lc_year_end, mo_common_variables::lc_year_start, mo_common_variables::lcfilename, mo_common_mhm_mrm_variables::lcyearid, mo_common_variables::level0, mo_common_variables::level1, mo_mrm_global_variables::level11, mo_common_mhm_mrm_variables::mrm_coupling_mode, mo_common_variables::mrmfilerestartout, mo_mrm_global_variables::ngaugestotal, mo_mrm_global_variables::ninflowgaugestotal, mo_common_variables::nlcoverscene, mo_common_constants::nodata_dp, mo_common_variables::processmatrix, mo_common_mhm_mrm_variables::read_restart, mo_common_variables::resolutionhydrology, mo_common_mhm_mrm_variables::resolutionrouting, mo_common_mhm_mrm_variables::simper, mo_common_mhm_mrm_variables::timestep, mo_common_file::uconfig, mo_mrm_file::version, mo_common_mhm_mrm_variables::warmper, and mo_common_variables::write_restart.
Referenced by mrm_write().
|
private |
Write a file for the daily observed and simulated discharge timeseries during the evaluation period for each gauging station.
Write a file for the daily observed and simulated discharge timeseries during the evaluation period for each gauging station
| [in] | real(dp), dimension(:, :) :: Qobs | daily time series of observed dischargedims = (nModeling_days , nGauges_total) |
| [in] | real(dp), dimension(:, :) :: Qsim | daily time series of modeled dischargedims = (nModeling_days , nGauges_total) |
Definition at line 570 of file mo_mrm_write.f90.
References mo_common_variables::dirout, mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_common_mhm_mrm_variables::evalper, mo_mrm_file::file_daily_discharge, mo_mrm_global_variables::gauge, mo_mrm_file::ncfile_discharge, mo_common_constants::nodata_dp, mo_mrm_global_variables::output_time_reference_mrm, and mo_mrm_file::udaily_discharge.
Referenced by mrm_write().
|
private |
Write a file for the simulated discharge timeseries during the evaluation period for each gauging station.
Write a file for the simulated discharge timeseries during the evaluation period for each gauging station
| [in] | real(dp), dimension(:, :) :: Qobs | time series of observed discharge dims = (nMeasTimeSteps , nGauges_total) |
| [in] | real(dp), dimension(:, :) :: Qsim | time series of modeled discharge dims = (nMeasTimeSteps , nGauges_total) |
| [in] | integer(i4), :: factor | ratio of modelled time steps per day to observation time steps per day |
Definition at line 763 of file mo_mrm_write.f90.
References mo_common_variables::dirout, mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_common_mhm_mrm_variables::evalper, mo_mrm_file::file_subdaily_discharge, mo_mrm_global_variables::gauge, mo_mrm_file::ncfile_subdaily_discharge, mo_mrm_global_variables::nmeasperday, mo_common_constants::nodata_dp, mo_mrm_global_variables::output_time_reference_mrm, and mo_mrm_file::usubdaily_discharge.
Referenced by mrm_write().