getTimeDomain: Selection of time slices of gridded datasets

View source: R/getTimeDomain.R

getTimeDomainR Documentation

Selection of time slices of gridded datasets

Description

Performs the selection of time slices based on season and year specification (including year-crossing seasons). Sub-routine of loadGridDataset

Usage

getTimeDomain(
  grid,
  dic,
  season,
  years,
  time,
  aggr.d,
  aggr.m,
  threshold,
  condition
)

Arguments

grid

A java ‘GeoGrid’

dic

dictionary output, as returned by dictionaryLookup or NULL is not in use

season

Vector of months defining the requested season. Passed by loadGridDataset.

years

Vector of selected years. Passed by loadGridDataset.

time

Verification time defined as a character string (e.g. “06” for data verifying at 06:00:00). Only applies for sub-daily datasets.

aggr.d

Aggregation function for subdaily to daily

aggr.m

Aggregation function from daily to monthly

Details

The indices of time positions are returned as a list, in order to read discontinuous data in the time dimension from NetCDF files in a more efficient way (i.e. seasons for different years). The corresponding calendar dates (as POSIXct), are returned in the dateSliceList element.

Value

A list with the selected verification dates and a list with the index values defined as java objects of the class ‘ucar.ma2.Range’. Output passed to loadGridDataset.

Author(s)

J. Bedia


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