5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_mrm_read_data Module Reference

mRM reading routines More...

Functions/Subroutines

subroutine, public mrm_read_l0_data (do_reinit, do_readlatlon, do_readlcover)
 read L0 data from file
 
subroutine, public mrm_read_discharge
 Read discharge timeseries from file.
 
subroutine, public mrm_read_total_runoff (idomain)
 read simulated runoff that is to be routed
 
subroutine, public mrm_read_bankfull_runoff (idomain)
 
subroutine rotate_fdir_variable (x)
 TODO: add description.
 

Detailed Description

mRM reading routines

This module contains all routines to read mRM data from file.

Authors
Stephan Thober
Date
Aug 2015

Function/Subroutine Documentation

◆ mrm_read_bankfull_runoff()

subroutine, public mo_mrm_read_data::mrm_read_bankfull_runoff ( integer(i4), intent(in)  idomain)
Parameters
[in]idomain
Note
The file read in must contain a double precision float variable with the name "Q_bkfl".

Definition at line 426 of file mo_mrm_read_data.f90.

References mo_mrm_global_variables::dirbankfullrunoff, mo_mrm_global_variables::l11_bankfull_runoff_in, mo_mrm_global_variables::level11, and mo_read_nc::read_const_nc().

Referenced by mo_mrm_init::mrm_init().

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

◆ mrm_read_discharge()

subroutine, public mo_mrm_read_data::mrm_read_discharge

Read discharge timeseries from file.

Read Observed discharge at the outlet of a catchment and at the inflow of a catchment. Allocate global runoff variable that contains the simulated runoff after the simulation.

Authors
Matthias Zink & Stephan Thober
Date
Aug 2015

Definition at line 253 of file mo_mrm_read_data.f90.

References mo_common_variables::domainmeta, mo_common_mhm_mrm_variables::evalper, mo_mrm_global_variables::gauge, mo_mrm_global_variables::inflowgauge, mo_mrm_global_variables::mrm_runoff, mo_mrm_global_variables::ngaugeslocal, mo_mrm_global_variables::ninflowgaugestotal, mo_mrm_global_variables::nmeasperday, mo_common_constants::nodata_dp, mo_common_mhm_mrm_variables::ntstepday, mo_common_mhm_mrm_variables::opti_function, mo_common_mhm_mrm_variables::optimize, mo_read_timeseries::read_timeseries(), mo_mrm_global_variables::riv_temp_pcs, mo_common_mhm_mrm_variables::simper, and mo_mrm_file::udischarge.

Referenced by mo_mrm_init::mrm_init().

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

◆ mrm_read_l0_data()

subroutine, public mo_mrm_read_data::mrm_read_l0_data ( logical, intent(in)  do_reinit,
logical, intent(in)  do_readlatlon,
logical, intent(in)  do_readlcover 
)

read L0 data from file

With the exception of L0_mask, L0_elev, and L0_LCover, all L0 variables are read from file. The former three are only read if they are not provided as variables.

Parameters
[in]logical :: do_reinit
[in]logical :: do_readlatlon
[in]logical :: do_readlcover
Authors
Juliane Mai, Matthias Zink, and Stephan Thober
Date
Aug 2015

Definition at line 51 of file mo_mrm_read_data.f90.

References mo_common_variables::dirmorpho, mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_mrm_file::file_facc, mo_mrm_file::file_fdir, mo_mrm_file::file_gaugeloc, mo_mpr_file::file_slope, mo_mrm_global_variables::l0_facc, mo_mrm_global_variables::l0_fdir, mo_mrm_global_variables::l0_gaugeloc, mo_mrm_global_variables::l0_inflowgaugeloc, mo_common_variables::l0_lcover, mo_common_variables::level0, mo_common_constants::nodata_i4, mo_common_variables::processmatrix, mo_common_read_data::read_dem(), mo_read_latlon::read_latlon(), mo_common_read_data::read_lcover(), rotate_fdir_variable(), mo_mrm_file::ufacc, mo_mrm_file::ufdir, mo_mrm_file::ugaugeloc, and mo_mpr_file::uslope.

Referenced by mo_mrm_init::mrm_init().

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

◆ mrm_read_total_runoff()

subroutine, public mo_mrm_read_data::mrm_read_total_runoff ( integer(i4), intent(in)  idomain)

read simulated runoff that is to be routed

read spatio-temporal field of total runoff that has been simulated by a hydrologic model or land surface model. This total runoff will then be aggregated to the level 11 resolution and then routed through the stream network.

Parameters
[in]integer(i4) :: iDomaindomain id
Authors
Stephan Thober
Date
Sep 2015

Definition at line 367 of file mo_mrm_read_data.f90.

References mo_common_variables::alma_convention, mo_mrm_global_variables::dirtotalrunoff, mo_mrm_global_variables::filenametotalrunoff, mo_mrm_global_variables::l1_total_runoff_in, mo_common_variables::level1, mo_common_constants::nodata_dp, mo_read_nc::read_nc(), mo_common_mhm_mrm_variables::simper, mo_common_mhm_mrm_variables::timestep, and mo_mrm_global_variables::varnametotalrunoff.

Referenced by mo_mrm_init::mrm_init().

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

◆ rotate_fdir_variable()

subroutine mo_mrm_read_data::rotate_fdir_variable ( integer(i4), dimension(:, :), intent(inout)  x)
private

TODO: add description.

TODO: add description

Parameters
[in,out]integer(i4), dimension(:, :) :: x
Authors
L. Samaniego & R. Kumar
Date
Jun 2018

Definition at line 527 of file mo_mrm_read_data.f90.

References mo_common_constants::nodata_i4.

Referenced by mrm_read_l0_data().

Here is the caller graph for this function: