mHM
The mesoscale Hydrological Model
|
Reads spatial input data. More...
Data Types | |
interface | read_spatial_data_ascii |
Reads spatial data files of ASCII format. More... | |
Functions/Subroutines | |
subroutine | read_spatial_data_ascii_dp (filename, fileunit, header_ncols, header_nrows, header_xllcorner, header_yllcorner, header_cellsize, data, mask) |
TODO: add description. | |
subroutine | read_spatial_data_ascii_i4 (filename, fileunit, header_ncols, header_nrows, header_xllcorner, header_yllcorner, header_cellsize, data, mask) |
TODO: add description. | |
subroutine, public | read_header_ascii (filename, fileunit, header_ncols, header_nrows, header_xllcorner, header_yllcorner, header_cellsize, header_nodata) |
Reads header lines of ASCII files. | |
Reads spatial input data.
This module is to read spatial input data, e.g. dem, aspect, flow direction. The module provides a subroutine for ASCII files. (Subroutine for NetCDF files will come with release 5.1). The data are read from the specified directory.
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_spatial_data::read_header_ascii | ( | character(len = *), intent(in) | filename, |
integer(i4), intent(in) | fileunit, | ||
integer(i4), intent(out) | header_ncols, | ||
integer(i4), intent(out) | header_nrows, | ||
real(dp), intent(out) | header_xllcorner, | ||
real(dp), intent(out) | header_yllcorner, | ||
real(dp), intent(out) | header_cellsize, | ||
real(dp), intent(out) | header_nodata | ||
) |
Reads header lines of ASCII files.
Reads header lines of ASCII files, e.g. dem, aspect, flow direction.
[in] | character(len = *) :: filename | Name of file and its location |
[in] | integer(i4) :: fileunit | File unit for open file |
[out] | integer(i4) :: header_nCols | Reference number of columns |
[out] | integer(i4) :: header_nRows | Reference number of rows |
[out] | real(dp) :: header_xllcorner | Reference lower left corner (x) |
[out] | real(dp) :: header_yllcorner | Reference lower left corner (y) |
[out] | real(dp) :: header_cellsize | Reference cell size [m] |
[out] | real(dp) :: header_nodata | Reference nodata value |
Definition at line 375 of file mo_read_spatial_data.f90.
References mo_common_constants::nodata_dp.
Referenced by mo_meteo_handler::init_level2(), mo_common_read_data::read_dem(), mo_read_spatial_data::read_spatial_data_ascii::read_spatial_data_ascii_dp(), and mo_read_spatial_data::read_spatial_data_ascii::read_spatial_data_ascii_i4().
|
private |
TODO: add description.
TODO: add description
[in] | character(len = *) :: filename | filename with location |
[in] | integer(i4) :: fileunit | unit for opening the file |
[in] | integer(i4) :: header_nCols | number of columns of data fields: |
[in] | integer(i4) :: header_nRows | number of rows of data fields: |
[in] | real(dp) :: header_xllcorner | header read in lower left corner |
[in] | real(dp) :: header_yllcorner | header read in lower left corner |
[in] | real(dp) :: header_cellsize | header read in cellsize |
[out] | real(dp), dimension(:, :) :: data | data |
[out] | logical, dimension(:, :) :: mask | mask |
Definition at line 94 of file mo_read_spatial_data.f90.
|
private |
TODO: add description.
TODO: add description
[in] | character(len = *) :: filename | filename with location |
[in] | integer(i4) :: fileunit | unit for opening the file |
[in] | integer(i4) :: header_nCols | number of columns of data fields: |
[in] | integer(i4) :: header_nRows | number of rows of data fields: |
[in] | real(dp) :: header_xllcorner | header read in lower left corner |
[in] | real(dp) :: header_yllcorner | header read in lower left corner |
[in] | real(dp) :: header_cellsize | header read in cellsize |
[out] | integer(i4), dimension(:, :) :: data | data |
[out] | logical, dimension(:, :) :: mask | mask |
Definition at line 234 of file mo_read_spatial_data.f90.