rSW2st_netCDF: Interaction of rSW2 objects with netCDFs

rSW2st_netCDFR Documentation

Interaction of rSW2 objects with netCDFs

Description

Interaction of rSW2 objects with netCDFs

Arguments

data

A numeric array or vector (optional). A vector is converted to a one-column matrix.

grid

An object that describes a gridded xy-space. Regular, rectangular grids are the only currently supported type. This can be

  • a raster::RasterLayer object,

  • a stars::stars object,

  • a file name pointing to such a raster on disk;

  • a list, such as the one produced by get_xyspace.

  • an object with coordinate values for all gridcell centers that can be passed to as_points;

The crs of the grid coordinate values must match the one of the data locations.

locations

An object from which x and y coordinate values can be extracted that describe the xy locations of each data row, e.g., a matrix or data.frame or a spatial points object inheriting from sf or Spatial*.

locations_crs

An object which is a crs or from which one can be derived that describes the crs of locations.

data_str

A character string describing the dimensions of data where "xy" stands for x and y spatial dimensions if the spatial structure is gridded, while "s" stands for site if the spatial structure are discrete points; z stands for a vertical dimension; and t stands for a temporal dimension.

xy_names

A vector with two character strings. The names of the x and y spatial dimensions of a netCDF file.


DrylandEcology/rSW2st documentation built on Jan. 10, 2024, 6:22 p.m.