![]() |
mHM
The mesoscale Hydrological Model
|
Routines reading lookup tables (lut). More...
Functions/Subroutines | |
| subroutine, public | read_geoformation_lut (filename, fileunit, ngeo, geo_unit, geo_karstic) |
| Reads LUT containing geological formation information. | |
| subroutine, public | read_lai_lut (filename, fileunit, nlai, laiidlist, lai) |
| Reads LUT containing LAI information. | |
Routines reading lookup tables (lut).
This module contains routines reading various lookup tables (lut).
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_read_lut::read_geoformation_lut | ( | character(len = *), intent(in) | filename, |
| integer(i4), intent(in) | fileunit, | ||
| integer(i4), intent(out) | ngeo, | ||
| integer(i4), dimension(:), intent(out), allocatable | geo_unit, | ||
| integer(i4), dimension(:), intent(out), allocatable | geo_karstic ) |
Reads LUT containing geological formation information.
The LUT needs to have the following header:
!> nGeo_Formations < Number of lines containing data > !> GeoParam(i) ClassUnit Karstic Description !>
The subsequent lines contains the geological formation information:
!> <GeoParam(i)> <ClassUnit_i4> <Karstic_i4> <Description_char> !>
All following lines will be discarded while reading. GeoParam is a running index while ClassUnit is the unit of the map containing the geological formations such that it does not neccessarily contains subsequent numbers. The parametrization of this unit is part of the namelist mhm_parameter.nml under <geoparameter>.
| [in] | character(len = *) :: filename | File name of LUT |
| [in] | integer(i4) :: fileunit | Unit to open file |
| [out] | integer(i4) :: nGeo | Number of geological formations |
| [out] | integer(i4), dimension(:) :: geo_unit | List of id numbers of each geological formations |
| [out] | integer(i4), dimension(:) :: geo_karstic | ID of the Karstic formation (0 == does not exist) |
Definition at line 72 of file mo_read_lut.f90.
Referenced by mo_read_wrapper::read_data().
| subroutine, public mo_read_lut::read_lai_lut | ( | character(len = *), intent(in) | filename, |
| integer(i4), intent(in) | fileunit, | ||
| integer(i4), intent(out) | nlai, | ||
| integer(i4), dimension(:), intent(out), allocatable | laiidlist, | ||
| real(dp), dimension(:, :), intent(out), allocatable | lai ) |
Reads LUT containing LAI information.
The LUT needs to have the following header:
!> NoLAIclasses <Number of lines containing data> !> Id land-use Jan. Feb. Mar. Apr. May Jun. Jul. Aug. Sep. Oct. Nov. Dec. !>
The subsequent lines contains the lai class information:
!> <ID_i4> <landuse_char> <val_1_dp> <val_2_dp> <val_3_dp> <val_4_dp> ... <val_12_dp> !>
All following lines will be discarded while reading.
| [in] | character(len = *) :: filename | File name of LUT |
| [in] | integer(i4) :: fileunit | Unit to open file |
| [out] | integer(i4) :: nLAI | Number of LAI classes |
| [out] | integer(i4), dimension(:) :: LAIIDlist | List of ids of LAI classes |
| [out] | real(dp), dimension(:, :) :: LAI | LAI per class (row) and month (col) |
Definition at line 156 of file mo_read_lut.f90.
Referenced by mo_read_wrapper::read_data().