Learn R Programming

RCMIP5 (version 1.0)

getFileInfo: List all CMIP5 files in a directory tree

Description

List all CMIP5 files in a directory tree, parsing their filenames for information like experiment, model, and variable names.

Usage

getFileInfo(path = ".", recursive = TRUE)

Arguments

path
string root of directory tree
recursive
logical. Should the listing recurse into directories?

Value

  • data.frame containing the following parsed from file names:
  • filenameFull filename, including path
  • variableFile variable
  • domainFile domain
  • modelModel that produced this file
  • experimentFile experiment
  • ensembleFile ensemble
  • timeyear (and often month) range of file
  • sizeFile size, in kilobytes

Details

For more information on CMIP5 filename structure and data description, see http://cmip-pcmdi.llnl.gov/cmip5/data_description.html

See Also

checkTimePeriod

Examples

Run this code
getFileInfo()
getFileInfo('.', recursive=FALSE)

Run the code above in your browser using DataLab