View source: R/make.COSERO.input.r
make.COSERO.input | R Documentation |
Create a T_IZ or P_IZ file from a set of INCA-Files
make.COSERO.input(
f,
shape,
nzraster,
output = NULL,
otf = FALSE,
sortbynz = TRUE,
fillmissing = TRUE,
...
)
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 |
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
if output == NULL the IZ-matrix is returned. Else the IZ-File is written and the IZ-matrix is returned.
Simon Frey
readINCABIL, fill.missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.