Comments (2)
In order to subset by months or years, you should use the function subsetGrid
. In your case, something along these lines should do the job, returning a list of 12 elements, corresponding to the Jan-Dec climatologies:
test <- loadGridData("test.ncml", var = "tasmax", dictionary = dictionary, aggr.m = "mean")
l <- lapply(1:12, function(i) {
subsetGrid(test, season = i) %>% climatology()
})
After this, you can "stack" all the monthly climatologies together in the same grid using makeMultiGrid
, for instance for plotting purposes:
mg <- do.call("makeMultiGrid", c(l, skip.temporal.check = TRUE))
require(visualizeR)
spatialPlot(mg, names.attr = month.abb, backdrop.theme = "coastline")
Hope this helps
from climate4r.
Thanks for that. That's very helpful.
from climate4r.
Related Issues (20)
- Error when trying to load daily precipitation data
- Howcan I address this error: Error in aperm.default(grid$Data, perm) : 'perm' is of wrong length 6 (!= 4) HOT 1
- How to use a generic time-series for downscaling? HOT 6
- fillGridDates :: Error in aperm.default(grid$Data, perm) HOT 1
- loadGridData() doesn't recognize vertical levels HOT 1
- Is it possible to use loadGridData with a polygon shapefile?
- conda install fails, biasCorrection isimip3 fails HOT 6
- loadGridData fails to find named variable in netCDF file HOT 7
- Can't load models from UDG.datasets()
- PackagesNotFoundError: The following packages are not available from current channels: Climate4R HOT 4
- Why does climate4R use too many cpu? TOO SLOW
- biasCorrection() show eorror about data dimension HOT 2
- Error in (min(piece, na.rm = TRUE) - head):(max(piece, na.rm = TRUE) + : result would be too long a vector
- Singular results of biascorrection() HOT 1
- Error doing bias correction for CMIP6 tasmax HOT 1
- How to save biascorrected grids? HOT 1
- Site is unavailable for the http://opendap.knmi.nl/ HOT 1
- cannot access cordex datasets
- Problems with the functions biasCorrection() and downscaleCV()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from climate4r.