Comments (4)
I was able to regrid the data with xesmf (with the help of this notebook). I plan on writing up a tutorial to add to the Project Pythia CMIP6 Cookbook, which is a slightly modified version of the one in the Pangeo gallery. Thanks again for the help!
from xmip.
Hi @r-ford, thanks for using xMIP! The interpolate_grid_label
function is a specific use case for general regridding. It will regrid outputs on different grids 'per model', e.g. if you have variable_a on grid_label 'gn'
and variable_b on grid_label 'gr'
this will attempt to return both variables on the same grid. This will however still leave the grid between different models incompatible (which I think is what you are experiencing here).
I think what you are trying to achieve is actually simpler. I would suggest to use xesmf(which is what we are using here under the hood) to regrid all models to a common lat/lon grid of your choice, and then you should be able to average them together on the new grid.
Let me know if that works for you
from xmip.
Thanks @jbusecke! That makes sense. xesmf seems like my best option, though I've been running into some issues getting results so far (one example is in this other notebook, where the regridded data is all nan
). Do you know of any examples on GitHub or elsewhere of someone regridding this CMIP6 data? Also @brian-rose
from xmip.
There are some common tricks (I think there is a 'masking' or similar argument that might help you here). But generally this case would be a nice demonstration to include either in the xMIP docs or the pangeo gallery.
from xmip.
Related Issues (20)
- Trimming grid halo as part of the preprocessing HOT 1
- Drop Python 3.7
- Missing dependency for cf-xarray
- Docs build broken
- use datatree instead of dictionary of datasets HOT 2
- Pint issue for undecoded times HOT 4
- Change license badge
- manually changing dataframe for catalog HOT 3
- Change license type in feedstock
- CI failing due to ESMF import error HOT 1
- Construct 'member_id' as part of the preprocessing
- XMIP Initial Reprocessing Does Not Work as Expected
- `replace_x_y_nominal_lat_lon` does not work for > 360 `lon` coordinates HOT 2
- `longitude` and `latitude` dimensions lost in `rename_cmip6`
- CI is failing due to upstream error in xarrrayutils HOT 1
- Eliminate `xarrayutils` dependency
- Make `_drop_duplicate_grid_labels` public
- Renaming dimensions 'i'/'j' not working properly HOT 1
- Add convenience function to apply Hausfather et al. 2022 'screening' methodology
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 xmip.