Description Usage Arguments Details Value Examples
The CF metadata standard requires a netCDF time coordinate variable to be represented as time elapsed from an epoch, e.g., "days since 1972-01-01". Different data sources may use different epochs and units that need to be aligned with one another to simplify analysis; this function will align them.
1 | alignepochs(time, epoch = "days since 1950-01-01")
|
time |
A CF-style time variable |
epoch |
A CF time@units string |
The time
input variable must have an attribute named
"units" that follows the CF standard. Currently supported time units for
conversion are "hours" and "days".
If the input variable also has a calendar
attribute, that
will be respected in the adjustment; otherwise, it will assume the
data follows a standard (365.25-day) calendar. Recognized
calendars are the same as those handled by the
yearlength
function.
A time variable with adjusted epoch and offsets
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.