![]() |
mHM
The mesoscale Hydrological Model
|
gridding tools More...
Functions/Subroutines | |
| subroutine, public | init_lowres_level (highres, target_resolution, lowres, highres_lowres_remap) |
| Level-1 variable initialization. | |
| subroutine, public | set_domain_indices (grids, indices) |
| TODO: add description. | |
| subroutine, public | l0_grid_setup (new_grid) |
| level 0 variable initialization | |
| subroutine, public | mapcoordinates (level, y, x) |
| Generate map coordinates. | |
| subroutine, public | geocoordinates (level, lat, lon) |
| Generate geographic coordinates. | |
| subroutine | calculate_grid_properties (nrowsin, ncolsin, xllcornerin, yllcornerin, cellsizein, aimingresolution, nrowsout, ncolsout, xllcornerout, yllcornerout, cellsizeout) |
| Calculates basic grid properties at a required coarser level using information of a given finer level. | |
gridding tools
Common tools to deal with grids in mHM.
COPYING and COPYING.LESSER provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
|
private |
Calculates basic grid properties at a required coarser level using information of a given finer level.
Calculates basic grid properties at a required coarser level (e.g., L11) using information of a given finer level (e.g., L0). Basic grid properties such as nrows, ncols, xllcorner, yllcorner cellsize are estimated in this routine.
TODO: add description
| [in] | integer(i4) :: nrowsIn | no. of rows at an input level |
| [in] | integer(i4) :: ncolsIn | no. of cols at an input level |
| [in] | real(dp) :: xllcornerIn | xllcorner at an input level |
| [in] | real(dp) :: yllcornerIn | yllcorner at an input level |
| [in] | real(dp) :: cellsizeIn | cell size at an input level |
| [in] | real(dp) :: aimingResolution | resolution of an output level |
| [out] | integer(i4) :: nrowsOut | no. of rows at an output level |
| [out] | integer(i4) :: ncolsOut | no. of cols at an output level |
| [out] | real(dp) :: xllcornerOut | xllcorner at an output level |
| [out] | real(dp) :: yllcornerOut | yllcorner at an output level |
| [out] | real(dp) :: cellsizeOut | cell size at an output level |
Definition at line 489 of file mo_common_grid.f90.
Referenced by init_lowres_level().
| subroutine, public mo_common_grid::geocoordinates | ( | type(grid), intent(in) | level, |
| real(dp), dimension(:, :), intent(out), allocatable | lat, | ||
| real(dp), dimension(:, :), intent(out), allocatable | lon ) |
Generate geographic coordinates.
Generate geographic coordinate arrays for given domain and level
| [in] | type(Grid) :: level | -> grid reference |
| [out] | real(dp), dimension(:, :) :: lat, lon | |
| [out] | real(dp), dimension(:, :) :: lat, lon |
Definition at line 433 of file mo_common_grid.f90.
Referenced by mo_nc_output::createoutputfile().
| subroutine, public mo_common_grid::init_lowres_level | ( | type(grid), intent(in), target | highres, |
| real(dp), intent(in) | target_resolution, | ||
| type(grid), intent(inout), target | lowres, | ||
| type(gridremapper), intent(inout), optional | highres_lowres_remap ) |
Level-1 variable initialization.
following tasks are performed for L1 datasets
| [in] | type(Grid) :: highres | |
| [in] | real(dp) :: target_resolution | |
| [in,out] | type(Grid) :: lowres | |
| [in,out] | type(GridRemapper), optional :: highres_lowres_remap |
Definition at line 58 of file mo_common_grid.f90.
References calculate_grid_properties(), mo_common_constants::nodata_dp, and mo_common_constants::nodata_i4.
Referenced by mo_meteo_handler::init_level2(), mo_mpr_startup::mpr_initialize(), and mo_mrm_init::mrm_init().
| subroutine, public mo_common_grid::l0_grid_setup | ( | type(grid), intent(inout) | new_grid | ) |
level 0 variable initialization
following tasks are performed for L0 data sets
| [in,out] | type(Grid) :: new_grid |
Definition at line 267 of file mo_common_grid.f90.
References mo_common_variables::iflag_cordinate_sys.
Referenced by mo_mpr_startup::l0_variable_init(), and mo_mrm_init::mrm_init().
| subroutine, public mo_common_grid::mapcoordinates | ( | type(grid), intent(in) | level, |
| real(dp), dimension(:), intent(out), allocatable | y, | ||
| real(dp), dimension(:), intent(out), allocatable | x ) |
Generate map coordinates.
Generate map coordinate arrays for given domain and level
| [in] | type(Grid) :: level | -> grid reference |
| [out] | real(dp), dimension(:) :: x, y | |
| [out] | real(dp), dimension(:) :: x, y |
Definition at line 370 of file mo_common_grid.f90.
Referenced by mo_nc_output::createoutputfile().
| subroutine, public mo_common_grid::set_domain_indices | ( | type(grid), dimension(:), intent(inout) | grids, |
| integer(i4), dimension(:), intent(in), optional | indices ) |
TODO: add description.
TODO: add description
| [in,out] | type(Grid), dimension(:) :: grids |
Definition at line 204 of file mo_common_grid.f90.
Referenced by mo_meteo_handler::init_level2(), mo_startup::mhm_initialize(), mo_mpr_startup::mpr_initialize(), mo_mrm_init::mrm_init(), and mo_common_read_data::read_dem().