sp2grid: Convert a SpatialGridDataFrame to a C4R grid

View source: R/sp2grid.R

sp2gridR Documentation

Convert a SpatialGridDataFrame to a C4R grid

Description

Convert a SpatialGridDataFrame (package sp) to a C4R grid

Usage

sp2grid(
  sp,
  member = FALSE,
  varName = NULL,
  level = NULL,
  dates = list(start = NULL, end = NULL),
  metadata = NULL
)

Arguments

sp

A SpatialGridDataFrame, as returned by function gdalwarp (package gdalUtils). (SpatialPointsDataFrame-s not implemented yet).

varName

Character with the variable name for the resulting grid.

level

Character with the level for the resulting grid.

dates

Named list of the form: list(start = NULL, end = NULL), for the resulting grid.

metadata

Named list of characters with furher metadata for the resulting grid.

Value

A C4R grid, with the metadata specified by the input arguments.

Author(s)

M. Iturbide

See Also

clim2sgdf


SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.