makeSubset.CFS: Makes a logical subset of a CFSv2 GeoGrid

View source: R/makeSubset.CFS.R

makeSubset.CFSR Documentation

Makes a logical subset of a CFSv2 GeoGrid

Description

Makes a logical subset of a CFSv2 GeoGrid using the parameters specified by the user, applying the java methods makeSubset and readDataSlice. Subroutine of loadSeasonalForecast.CFS

Usage

makeSubset.CFS(grid, latLon, runTimePars, foreTimePars)

Arguments

grid

An input java GeoGrid

latLon

A list of geolocation parameters, as returned by getLatLonDomainForecast

runTimePars

A list of run time definition parameters, as returned by getRunTimeDomain.ECOMS

foreTimePars

A list of forecast time definition parameters, as returned by getForecastTimeDomain.CFS

Details

Dimensions of length one are dropped and the “dimnames” attribute is consequently modified. In the current version the Z dimension is ignored (and dropped), as it is not planned to include multi-level variables in the ECOMS-UDG by the moment. Because of the lagged-runtime configuration of CFSv2 for member definition, the dimension ‘ensemble’ doen not exist. In turn, this is created and included as a dimension in the returned array from the run time parameters passed by runTimePars and foreTimePars.

This function performs the temporal aggregations.

Value

A list with the n-dimensional array of data and the modified foreTimePars with adjusted dates depending on the temporal aggregation performed.

Author(s)

J Bedia and A. Cofi\~no

References

http://www.unidata.ucar.edu/software/thredds/v4.3/netcdf-java/v4.3/javadocAll/ucar/nc2/dt/grid/GeoGrid.html


SantanderMetGroup/loadeR.ECOMS documentation built on July 4, 2023, 4:29 a.m.