Description Usage Arguments Details Value Note See Also Examples
View source: R/checkTimePeriod.R
Check that all time periods are continuous and present for multi-file ensembles. Before starting to process what may be hundreds or thousands of CMIP5 files, it's a good idea to verify that your file set is complete and not missing any years.
1 | checkTimePeriod(fileInfo_df)
|
fileInfo_df |
data.frame from getFileInfo |
This function calls getFileInfo
to scan a directory tree,
and then examines the time data in these filenames. These time signatures
will be concatenated and an 'allHere' flag returned.
A data frame showing which ensembles are continuous, and which are not. In addition to standard identifying fields in the data frame (domain, model, experiment, variable, and ensemble), this includes:
yrStr |
A concatenation of time strings for all ensembles |
allHere |
a quick check for yr and mon frequency |
startDate |
Earliest (decimal) date for the ensemble |
endDate |
Latest (decimal) date for the ensemble |
file |
The number of files in the ensemble |
This only works for files that are in domains 'fx', 'mon', or 'yr'. Decimal time is (year + (month-1)/12).
Unfortunately it's impossible to automatically check the time signature for sub-monthly frequencies quickly, i.e. without opening the NetCDF file.
1 2 3 4 | ## Not run:
checkTimePeriod(getFileInfo())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.