CFtime-package {CFtime} | R Documentation |
CFtime: working with CF Metadata Conventions "time" dimensions
Description
Support for all calendars as specified in the Climate and Forecast (CF) Metadata Conventions for climate and forecasting data. The CF Metadata Conventions is widely used for distributing files with climate observations or projections, including the Coupled Model Intercomparison Project (CMIP) data used by climate change scientists and the Intergovernmental Panel on Climate Change (IPCC). This package specifically allows the user to work with any of the CF-compliant calendars (many of which are not compliant with POSIXt). The CF time coordinate is formally defined in the CF Metadata Conventions document.
Details
The package can create a CFtime
instance from scratch or, more commonly, it
can use the dimension attributes and dimension variable values from a NetCDF
resource. The package does not actually do any of the reading and the user is
free to use their NetCDF package of preference (with the two main options
being RNetCDF and
ncdf4).
Create, modify, inquire
-
CFtime()
: Create a CFtime instance -
Properties
of the CFtime instance -
CFparse()
: Parse a vector of character timestamps into CFtime elements -
Compare
two CFtime instances -
Merge
two CFtime instances -
Append
additional time steps to a CFtime instance -
as_timestamp()
andformat()
: Generate a vector of character orPOSIXct
timestamps from a CFtime instance -
range()
: Timestamps of the two endpoints in the time series -
is_complete()
: Does the CFtime instance have a complete time series between endpoints? -
month_days()
: How many days are there in a month using the CFtime calendar?
Factors and coverage
-
CFfactor()
andcut()
: Create factors for different time periods -
CFfactor_units()
: How many units of time are there in each factor level? -
CFfactor_coverage()
: How much data is available for each level of the factor?
Filtering and selection
-
slab()
: Logical vector of time steps between two extreme points. -
indexOf()
: Index values in the time series of given timestamps, possibly with fractional part for interpolation.
Author(s)
Maintainer: Patrick Van Laake patrick@vanlaake.net [copyright holder]
See Also
Useful links: