getShape: Retrieve array shape

View source: R/helpers.R

getShapeR Documentation

Retrieve array shape

Description

Retrieve array attributes 'dimensions' and 'dim'

Usage

getShape(obj, dimension = NULL)

Arguments

obj

A grid or station object

Value

An integer vector with dim values, labelled with the "dimension" attribute names

Author(s)

J. Bedia

See Also

Other get.helpers: get2DmatCoordinates(), getCoordinates(), getDim(), getGridProj(), getGridVerticalLevels(), getGrid(), getRefDates(), getSeason(), getStationID(), getVarNames(), getWT(), getYearsAsINDEX(), setGridProj(), typeofGrid(), which.leap()

Examples

 
require(climate4R.datasets)
#Station data:
data("VALUE_Iberia_tas")
getShape(VALUE_Iberia_tas)
#Regular grid
data("NCEP_Iberia_hus850")
getShape(NCEP_Iberia_hus850)


SantanderMetGroup/transformeR documentation built on Oct. 28, 2023, 5:26 a.m.