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(), getGrid(), getGridProj(), getGridVerticalLevels(), 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 Nov. 25, 2024, 1:25 p.m.