Description Usage Arguments Details Value
View source: R/workerfunctions.R
Resample nc file to spatial array
1 | cropresamplenc(file, r, Trace = TRUE)
|
file |
the name of the .nc file which the data are to be read from.
If it does not contain an absolute path, the file name is relative to the
current working directory, |
r |
an object of type raster. The returned |
Trace |
optional logical indicating whether to create and plot a raster of every 100th entry to enable progress to be tracked. |
Currently, the UKCP18 nc files contain errors in both the times and the defined coordinate reference system. These are corrected in the function, but users are advised to check their data.
an object of class spatialarray
. An object of class spatialarray
is
a list containing the following components:
A three-dimensional array of values corresponding to values of the resampled .nc file
An object of class POSIXlt
of times arraydata
An object of class crs
indicating the coordinate reference system associated with arraydata
An object of class extent
indicating the geographic extent covered by arraydata
Units of arraydata
Description of arraydata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.