sgdf2clim: Conversion from SpatialGridDataFrame-class objects to...

View source: R/sgdf2clim.R

sgdf2climR Documentation

Conversion from SpatialGridDataFrame-class objects to climate4R climatology grids

Description

Convert a SpatialGridDataFrame (package sp) to a C4R climatological grid

Usage

sgdf2clim(
  sp,
  varName = NULL,
  level = NULL,
  dates = list(start = NULL, end = NULL),
  season = NULL,
  attr.list = NULL
)

Arguments

sp

A SpatialGridDataFrame-class object, as returned by function gdalwarp (package gdalUtils). (SpatialPointsDataFrame 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. Dates as POISXct vectors.

attr.list

Key-value list of additional attributes to be included in the output grid as metadata.

seasons

Integer vector defining the grid season

Value

A C4R climatological grid (i.e.: time dimension is a singleton), with the metadata specified by the input arguments.

Author(s)

M. Iturbide, J. Bedia

See Also

clim2sgdf, that performs the inverse operation


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