Functions to write grid meteorological data to the file system.
writemeteorologygrid(
  object,
  file,
  dates = NULL,
  format = "netCDF",
  byPixel = FALSE,
  chunksizes = NA,
  add = FALSE,
  overwrite = FALSE,
  verbose = FALSE
)writemeteorologypixels(
  object,
  file,
  dates = NULL,
  format = "netCDF",
  byPixel = FALSE,
  chunksizes = NA,
  add = FALSE,
  overwrite = FALSE,
  verbose = FALSE
)
writeemptymeteorologygrid(
  file,
  grid,
  proj4string,
  dates,
  byPixel = FALSE,
  chunksizes = NA,
  overwrite = FALSE,
  verbose = FALSE
)
writemeteorologygridpixel(file, index, data, verbose = FALSE)
An object of class SpatialGridMeteorology-class
or class SpatialPixelsMeteorology-class with the
meteorological data to be written.
A string with the file name to be written.
A Date vector object or a character string
indicating the dates to be written.
Format of meteorological data. The only accepted format is
"netCDF".
Boolean flag to specify whether file will be written/read by pixels. This forces a different (supposedly) more efficient chunking based on time series data instead of daily grids.
Specifies the size of data chunks to be read/written. If set, this must be a vector of three integers corresponding to XYT.
Boolean flag to indicate that NetCDF exists and data should be added/replaced.
Boolean flag to force overwriting an existing NetCDF.
A logical flag to output process information in the console.
An object of class GridTopology-class
Object of class CRS.
Integer indicating the grid index position to be written.
A data frame with meteorological data corresponding to a pixel.
Miquel De Cáceres Ainsa, CREAF
Functions writemeteorologygrid and writemeteorologypixels
writes gridded meteorological data (i.e. class
SpatialGridMeteorology-class or class
SpatialPixelsMeteorology-class, respectively) into a netCDF,
with the possibility to overwrite existing data. Function
writemeteorologygridpixel is meant to add/replace data in a netCDF
corresponding to a specific pixel identified by its grid index. Function
writemeteorologygrid creates an empty netCDF with the specified grid
dimensions, coordinate reference system and dates.
readmeteorologygrid,
SpatialGridMeteorology-class