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

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.
 

Detailed Description

Routines reading lookup tables (lut).

This module contains routines reading various lookup tables (lut).

  1. LUT containing gauge information.
  2. LUT containing geological formation information.
  3. LUT containing LAI class information.
    Authors
    Juliane Mai, Matthias Zink
    Date
    Jan 2013

Function/Subroutine Documentation

◆ read_geoformation_lut()

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

Parameters
[in]character(len = *) :: filenameFile name of LUT
[in]integer(i4) :: fileunitUnit to open file
[out]integer(i4) :: nGeoNumber of geological formations
[out]integer(i4), dimension(:) :: geo_unitList of id numbers of each geological formations
[out]integer(i4), dimension(:) :: geo_karsticID of the Karstic formation (0 == does not exist)
Authors
Juliane Mai
Date
Jan 2013

Definition at line 72 of file mo_read_lut.f90.

Referenced by mo_read_wrapper::read_data().

Here is the caller graph for this function:

◆ read_lai_lut()

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.

Parameters
[in]character(len = *) :: filenameFile name of LUT
[in]integer(i4) :: fileunitUnit to open file
[out]integer(i4) :: nLAINumber of LAI classes
[out]integer(i4), dimension(:) :: LAIIDlistList of ids of LAI classes
[out]real(dp), dimension(:, :) :: LAILAI per class (row) and month (col)
Authors
Juliane Mai
Date
Jan 2013

Definition at line 156 of file mo_read_lut.f90.

Referenced by mo_read_wrapper::read_data().

Here is the caller graph for this function: