Description Usage Arguments Details Value Author(s) See Also Examples
Function to add validation data for a specific magpie outpout to the library.
1 |
func |
Name of the magpie library function that this data belongs to. |
... |
Values for arguments that func takes. If an argument is not specified the default value are used if existing. Otherwise an error will occur. The two arguments "file" and "level" can be omitted without causing problems. |
data |
A magpie object containing the data. If uncertainty information is available, one dimension with the following dimnames has to exist:
It is only possible to specify both, 'up' and 'lo' or neither of the two. |
aggr_type |
A string specifying the aggregation type to be used for the dataset. You can see available aggregation types using |
aggr_args |
Sometimes aggr_type will require additional arguments such as weights. They are specified here as a list. |
datasource |
A string specifying the name of the data source. Must not contain blank spaces. |
historical |
Flag indicating if the added data is historical (TRUE) or based on other model projections (FALSE) |
unit |
The unit of the dataset in the format c(10^6,"tC/a") |
citation |
The citation for the dataset, preferably in bibtex format. |
comment |
A free text comment. This should contain information about data source and quality. |
ignore.args |
A vector of strings, specifying arguments for which it does not matter what value they have. |
choose.args |
A vector of strings. A call of |
overwrite |
Boolean. By default (FALSE) an error is issued if a dataset named 'datasource' already exists for func(...). If you want to overwrite this a dataset, you have to set this flag to TRUE. |
internal |
Boolean. By default (FALSE) the library is checked out, updated and committed. If TRUE, only the valdata object in the workspace is modified. |
svn_path |
Path of the svn repository. If NULL, common paths are being tried. |
The function tries to add the desired dataset to the validation library. Additionally, the aggregation routine for data is specified. Each dataset in the library can only have one common aggregation type. Each aggregation level shares one set of aggr_args
, so that all entries are aggregated exactly the same way.
No value is returned. Instead the data is saved in the valdata
object of the library and the library is updated and committed.
Markus Bonsch
validationPlot
,getData
,add_aggrType
,show_aggrTypes
,addMapping
1 | ## Not run: addData(func=land,gdx="fulldata.gdx",ignore.args=c("sum","siclass"),type="crop",data=cropland_object,aggr_type="sum",datasource="FAO",historical=TRUE,comment=c("FAO historical cropland","source:www.fao.org","data_quality: good"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.