mHM_checkT: Check minimum and maximum air temperature for consistency in...

Description Usage Arguments Details Value Author(s) Examples

Description

mHM_checkT proves if minimum air temperature is lower than maximum air temperature. If it is not the case values are interchanged.

Usage

1
mHM_checkT(nc.tmin, nc.tmax)

Arguments

nc.tmin

netCDF of minimum air temperature.

nc.tmax

netCDF of maximum air temperature.

Details

Runing mHM the first time for some netCDF products (e.g. Spain02, E-OBS) the warning Tmax smaller than Tmin (or wise versa) will be printed. This function makes consistant minmum and maximum air temperature fields in netCDF format.

Value

re-write input netCDF files with consistent air temperature extremes.

Author(s)

Johannes Brenner johannes.brenner@ufz.de

Examples

1
2
3
4
5
pkg_path <- path.package("mHMr")
tmin_netcdf <- file.path(pkg_path, "inst/ext_data", "tmin.nc")
tmax_netcdf <- file.path(pkg_path, "inst/ext_data", "tmax.nc")

mHM_checkT(nc.tmin = tmin_netcdf, nc.tmax = tmax_netcdf)

JBrenn/mHMr documentation built on May 7, 2019, 7:39 a.m.