![]() |
mHM
The mesoscale Hydrological Model
|
Wrapper for all reading routines. More...
Functions/Subroutines | |
| subroutine, public | read_data (laiper) |
| Reads data. | |
| subroutine | check_consistency_lut_map (data, lookuptable, filename, unique_values) |
| Checks if classes in input maps appear in look up tables. | |
Wrapper for all reading routines.
This module is to wrap up all reading routines. The general written reading routines are used to store now the read data into global variables.
COPYING and COPYING.LESSER provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
| subroutine mo_read_wrapper::check_consistency_lut_map | ( | integer(i4), dimension(:), intent(in) | data, |
| integer(i4), dimension(:), intent(in) | lookuptable, | ||
| character(*), intent(in) | filename, | ||
| integer(i4), dimension(:), intent(out), optional, allocatable | unique_values ) |
Checks if classes in input maps appear in look up tables.
Determines wether a class appearing in the morphological input is occuring in the respective look up table. mHM breaks if inconsistencies are discovered.
| [in] | integer(i4), dimension(:) :: data | map of study domain |
| [in] | integer(i4), dimension(:) :: lookuptable | look up table corresponding to map |
| [in] | character(*) :: filename | name of the lut file - ERORR warn |
| [out] | integer(i4), dimension(:), optional :: unique_values | array of unique values in dataone |
Definition at line 368 of file mo_read_wrapper.f90.
References mo_common_constants::nodata_i4.
Referenced by read_data().
| subroutine, public mo_read_wrapper::read_data | ( | type(period), dimension(:), intent(in), optional | laiper | ) |
Reads data.
The namelists are already read by read_config call. All LUTs are read from their respective directory and information within those files are shared across all domains to be modeled.
| [in] | type(period), dimension(:), optional :: LAIPer |
by default; when iFlag_soilDB = 0
Definition at line 64 of file mo_read_wrapper.f90.
References check_consistency_lut_map(), mo_common_variables::dircommonfiles, mo_common_variables::dirmorpho, mo_common_variables::domainmeta, mo_mpr_file::file_aspect, mo_mpr_file::file_geolut, mo_mpr_file::file_hydrogeoclass, mo_mpr_file::file_laiclass, mo_mpr_file::file_lailut, mo_mpr_file::file_slope, mo_mpr_file::file_soil_database, mo_mpr_file::file_soil_database_1, mo_mpr_file::file_soilclass, mo_mpr_global_variables::geounitkar, mo_mpr_global_variables::geounitlist, mo_common_variables::global_parameters, mo_mpr_global_variables::iflag_soildb, mo_common_variables::itimer, mo_mpr_global_variables::l0_asp, mo_mpr_global_variables::l0_geounit, mo_mpr_global_variables::l0_gridded_lai, mo_mpr_global_variables::l0_slope, mo_mpr_global_variables::l0_soilid, mo_mpr_global_variables::laiboundaries, mo_mpr_global_variables::lailut, mo_mpr_global_variables::laiper, mo_mpr_global_variables::laiunitlist, mo_common_variables::level0, mo_mpr_global_variables::ngeounits, mo_mpr_global_variables::nlai, mo_mpr_global_variables::nlaiclass, mo_common_constants::nodata_dp, mo_common_constants::nodata_i4, mo_mpr_global_variables::nsoilhorizons_mhm, mo_prepare_gridded_lai::prepare_gridded_daily_lai_data(), mo_prepare_gridded_lai::prepare_gridded_mean_monthly_lai_data(), mo_common_variables::processmatrix, mo_common_read_data::read_dem(), mo_read_lut::read_geoformation_lut(), mo_read_lut::read_lai_lut(), mo_read_latlon::read_latlon(), mo_common_read_data::read_lcover(), mo_soil_database::read_soil_lut(), mo_mpr_global_variables::soildb, mo_mpr_global_variables::timestep_lai_input, mo_mpr_file::uaspect, mo_mpr_file::ugeolut, mo_mpr_file::uhydrogeoclass, mo_mpr_file::ulaiclass, mo_mpr_file::ulailut, mo_mpr_file::uslope, and mo_mpr_file::usoilclass.
Referenced by mo_mhm_interface::mhm_interface_init().