5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_read_nc.f90 File Reference

Reads forcing input data. More...

Go to the source code of this file.

Modules

module  mo_read_nc
 Reads forcing input data.
 

Functions/Subroutines

subroutine, public mo_read_nc::read_nc (folder, nrows, ncols, varname, mask, data, target_period, lower, upper, nctimestep, filename, nocheck, maskout, is_meteo, bound_error, ntstepforcingday)
 Reads forcing input in NetCDF file format.
 
subroutine, public mo_read_nc::read_const_nc (folder, nrows, ncols, varname, data, filename)
 Reads time independent forcing input in NetCDF file format.
 
subroutine, public mo_read_nc::read_weights_nc (folder, nrows, ncols, varname, data, mask, lower, upper, nocheck, maskout, filename, bound_error)
 Reads weights for meteo forcings input in NetCDF file format.
 
subroutine mo_read_nc::get_time_vector_and_select (var, fname, inctimestep, time_start, time_cnt, target_period)
 Extract time vector in unit julian hours and get supposed time step in hours.
 

Detailed Description

Reads forcing input data.

This module is to read forcing input data contained in netcdf files, e.g. temperature, precipitation, total_runoff, lai. Timesteps can be hourly, daily, monthly, and annual. The module provides a subroutine for NetCDF files only. First, the dimensions given are cross-checked with header.txt information. Second, the data of the specified period are read from the specified directory. If the optional lower and/or upper bound for the data values is given, the read data are checked for validity. The program is stopped if any value lies out of range.

Changelog
  • Stephan Thober Sep 2015
    • separated routines for netcdf files from routines for binary files
  • Stephan Thober Jan 2017
    • added reading weights for disaggregation of daily meteorological values to hourly ones
  • Robert Schweppe Nov 2017
    • switched to mo_netcdf library and restuctured routines
  • Robert Schweppe Jun 2018
    • refactoring and reformatting
  • Sebastian Müller Mar 2023
    • documentation update
    • added bound_error to control if an error is raised if boundaries are violated
Authors
Juliane Mai
Date
Dec 2012

Definition in file mo_read_nc.f90.