5.13.3-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_mrm_write Module Reference

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.
 

Detailed Description

write of discharge and restart files

This module contains the subroutines for writing the discharge files and optionally the restart files.

Authors
Stephan Thober
Date
Aug 2015


Function/Subroutine Documentation

◆ mrm_write()

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

Authors
Juliane Mai, Rohini Kumar & Stephan Thober
Date
Aug 2015

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mrm_write_optifile()

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.

Parameters
[in]real(dp) :: best_OFbest objective function value as returnedby the optimization routine
[in]real(dp), dimension(:) :: best_paramSetbest associated global parameter setCalled only when optimize is .TRUE.
[in]character(len = *), dimension(:) :: param_names
Authors
David Schaefer
Date
July 2013

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.

◆ mrm_write_optinamelist()

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.

Parameters
[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_nameclear names of parameters
Authors
Juliane Mai
Date
Dec 2013

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.

◆ write_configfile()

subroutine mo_mrm_write::write_configfile
private

This modules writes the results of the configuration into an ASCII-file.

TODO: add description

Authors
Christoph Schneider
Date
May 2013

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().

Here is the caller graph for this function:

◆ write_daily_obs_sim_discharge()

subroutine mo_mrm_write::write_daily_obs_sim_discharge ( real(dp), dimension(:, :), intent(in) qobs,
real(dp), dimension(:, :), intent(in) qsim )
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

Parameters
[in]real(dp), dimension(:, :) :: Qobsdaily time series of observed dischargedims = (nModeling_days , nGauges_total)
[in]real(dp), dimension(:, :) :: Qsimdaily time series of modeled dischargedims = (nModeling_days , nGauges_total)
Authors
Rohini Kumar
Date
August 2013

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().

Here is the caller graph for this function:

◆ write_subdaily_obs_sim_discharge()

subroutine mo_mrm_write::write_subdaily_obs_sim_discharge ( real(dp), dimension(:, :), intent(in) qobs,
real(dp), dimension(:, :), intent(in) qsim,
integer(i4), intent(in) factor )
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

Parameters
[in]real(dp), dimension(:, :) :: Qobstime series of observed discharge dims = (nMeasTimeSteps , nGauges_total)
[in]real(dp), dimension(:, :) :: Qsimtime series of modeled discharge dims = (nMeasTimeSteps , nGauges_total)
[in]integer(i4), :: factorratio of modelled time steps per day to observation time steps per day
Authors
Rohini Kumar
Date
August 2013

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().

Here is the caller graph for this function: