make.COSERO.input: Create a T_IZ or P_IZ file from a set of INCA-Files

View source: R/make.COSERO.input.r

make.COSERO.inputR Documentation

Create a T_IZ or P_IZ file from a set of INCA-Files

Description

Create a T_IZ or P_IZ file from a set of INCA-Files

Usage

make.COSERO.input(
  f,
  shape,
  nzraster,
  output = NULL,
  otf = FALSE,
  sortbynz = TRUE,
  fillmissing = TRUE,
  ...
)

Arguments

f

A character vector of INCA files

shape

Absolute path to a shapefile (points) at which locations the values of the INCA files are extracted

nzraster

Path to a raster with the nz information

output

name of the outputfile or NULL

otf

logical. write on-the-fly (don't hold the whole matrix in memory)

sortbynz

logical. Should the output be sorted according to the nz information?

fillmissing

logical. Should missing time steps be filled in the output? See details.

...

parameters passed to readINCABIL

Details

Reads a set of INCA files (Precipitation or Temperature) and calculates a matrix that can be read by COSERO.

The shapefile must be projected in the same coordinate system as the nzraster as well as the INCA files. Normally this is "+proj=lcc +lat_1=46 +lat_2=49 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +ellps=bessel +units=m +no_defs"

fillmissing: If fillmissing == TRUE the output will be checked on missing timesteps and - if any - will be filled using fill.missing. Note that if otf == TRUE, the filled matrix will be written to a copy of the otf-output

Value

if output == NULL the IZ-matrix is returned. Else the IZ-File is written and the IZ-matrix is returned.

Author(s)

Simon Frey

See Also

readINCABIL, fill.missing


freysimon/ZAMGR documentation built on Nov. 3, 2023, 9:44 p.m.