Format-class | R Documentation |
This class encapsulates all the specific details of a supported model or dataset. This comprises functions to read the data off the disk,
and metadata describing certain pre-defined Quantity
and Layer
objects. From a user-perspective, these are used as the Format
argument to
defineSource
function.
GUESS
- a Format for reading standard LPJ-GUESS(-SPITFIRE) model output
NetCDF
- a Format object defined here for reading NetCDF files.
It is essentially CF-compliant netCDF with a couple of extra attributes defined.
aDGVM
- a Format for reading standard aDGVM model output
aDGVM2
- a Format for reading aDGVM2 model output
GUESS
NetCDF
aDGVM
aDGVM2
A Format
object is an S4 class.
A Format
object is an S4 class.
A Format
object is an S4 class.
A Format
object is an S4 class.
Format objects which are included in the package are listed below:
For DGVMTools to support a particular model or dataset, this is the object that needs to be defined. But normally a user won't need to deal with this class since it defines model/dataset specific metadata and functions which should be defined once and then 'just work' (haha) in the future. If someone wants their model to be supported by DGVMTools then this is the object that needs to be defined correctly.
Note that the 'predefined.layers' and 'quantities' arguments are just default values, it is easy to add new ones. Equally they don't all need to be available for a particular run or dataset. You can define your own for your own data format if you, for example, want to include a new model type.
id
Simple character string to gave an uniquely identify this format
predefined.layers
'Standard' Layer type that this format uses, as a list of Layer
objects.
This is most likely applicable to formats describing DGVM output, but also for some data sets.
This is just a default Layer set available for convenience, can be easily over-ridden when defining a Source object (see defineSource
).
quantities
'Standard' quantities (as a list of Quantity
objects) which might be availably from the model output or dataset.
availableQuantities
A function to determine which quantities are actually available from the model run or dataset.
getField
A function to retrieve actually data from the model output or dataset. This is likely to be a fairly complex function, and really depends on the specifics and idiosynchrasies of the model output format or dataset.
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.