mHM_writeHeader: Write mHM header file.

Description Usage Arguments Details Value Author(s)

Description

mHM_writeHeader writes mHM header files, needed in addition to meteo netCDF input files. Moreover, a .griddes file can be calculated for later use with CDO to remap the netCDF meteo input according to morphological input maps.

Usage

1
2
3
mHM_writeHeader(rst, L2_res = 10000, res = 10000, na = -9999,
  crs_espg = 23030, writeHeader = TRUE, pre = "headerAtLevel11",
  make.griddes = FALSE, remap_py_file)

Arguments

rst

raster object, which will deliver extent, e.g. DEM.

L2_res

resolution of level L2 data, meteorological input.

res

resolution in header file.

na

na. value

crs_espg

interger, projection information for rst in ESPG code.

writeHeader

boolean, if TRUE header will be written to working directory.

pre

character, added to header file name.

make.griddes

boolean, if TRUE calculate .griddes info

remap_py_file

full path python-bash script remap-grid

Details

For remaping the netCDF meteo input see cdo --help remap. The python bash script remap-grid is located in the library directory, folder inst/bash of the package mHMr (path.package("mHMr")). For further information type ./remap-grid --help after changing directory.

Value

reclassified raster object, wrote to ASCII if writeHeader is TRUE. If make.griddes is TRUE .griddes file, wrote to working directory.

Author(s)

Johannes Brenner johannes.brenner@ufz.de


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