get.split.filename.cmip5: Splits up a CMIP5 filename
Description
Splits up a CMIP5 filename into its component parts.
Usage
get.split.filename.cmip5(cmip5.file)
Value
A vector containing the variable (var), time resolution (tres), model (model), emissions scenario (emissions), run (run), time range (trange), time start (tstart) and time end (tend) for the file.
Arguments
cmip5.file
The filename to be split.
Details
As the CMIP5 conventions define the format of filenames, quite a bit of data can be extracted from the filename alone. This function makes that process easier by splitting up the given CMIP5 filename, returning a named vector consisting of the variable, time resolution, model, emissions scenario, run, time range, and time start and end.