Learn R Programming

RCMIP5 (version 1.1)

checkTimePeriod: Check for continuous time periods in CMIP5 files

Description

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.

Usage

checkTimePeriod(fileInfo_df)

Arguments

fileInfo_df
data.frame from getFileInfo

Value

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

Details

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.

See Also

getFileInfo

Examples

Run this code
## Not run: 
# checkTimePeriod(getFileInfo())
# ## End(Not run)

Run the code above in your browser using DataLab