Code Monkey home page Code Monkey logo

Comments (4)

r-ford avatar r-ford commented on June 21, 2024 1

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.

jbusecke avatar jbusecke commented on June 21, 2024

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.

r-ford avatar r-ford commented on June 21, 2024

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.

jbusecke avatar jbusecke commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.