RCMIP5
RCMIP5 copied to clipboard
Update demo/vignette to reflect changes in function syntax
> ## Create random (dummy) data
> historical <- cmip5data(2001:2005, randomize=T)
> print(historical)
CMIP5: var, model experiment, 10 x 10 x 0 x 60, 2001 to 2005, from 1 ensemble
> ## Printing a monthly data set displays a one-line summary, showing
> ## the variable, model, experiment, years, data matrix dimensions
> ## (here 10 longitude cells by 10 latitude cells by 0 Z levels,
> ## over 5 years or 60 months) and number of ensembles.
> readline("<return>")
<return>
[1] ""
> ## Limiting to the tropics
> historical <- filterDimensions(historical, lats=-30:30, verbose=T)
Error in filterDimensions(historical, lats = -30:30, verbose = T) :
unused argument (lats = -30:30)
>
I am getting an "unused argument" error running the demo or attempting to subset CMIP5 output.
Aha! The syntax changed but some of the manual text hasn't ben updated....
subset <- filterDimensions(cmip_data, latRange=c(-30,30), verbose=T)
worldPlot(subset)

So I think the demo needs to be updated to reflect the changes in function syntax....
Sorry about that @serbinsh . It's true that, since discovering CDO, neither @ktoddbrown nor I have invested much time in RCMIP5. Reopening this to remind us to update the documentation/manual.