Giter Club home page Giter Club logo

Comments (9)

clyne avatar clyne commented on July 16, 2024 1

from wrf-python.

snowman2 avatar snowman2 commented on July 16, 2024

It would be nice to have this as an extension to xarray. That way you could call something like

with xr.open_dataset('/path/to/file.nc') as xd:
    t = xd.wrf.getvar('temp')
    proj4 = xd.wrf.proj4
    cart_proj = xd.wrf.cartopy

See: http://xarray.pydata.org/en/stable/internals.html#extending-xarray

I have used it here:
https://github.com/snowman2/pangaea/blob/master/pangaea/xlsm.py

from wrf-python.

snowman2 avatar snowman2 commented on July 16, 2024

Looks like it would not be bad to try to merge with salem. See: fmaussion/salem#82

from wrf-python.

honnorat avatar honnorat commented on July 16, 2024

Any news about an improved xarray support ?
It would be nice at first to be able to get data from xarray datasets, like

with xr.open_dataset('/path/to/file.nc') as ds:
    t = wrf.getvar(ds, 'temp')

from wrf-python.

Timothy-W-Hilton avatar Timothy-W-Hilton commented on July 16, 2024

I'm also wondering about this one. It's not straightforward to use getvar on a large number of WRF output files (see issue 94); seems xarray could help with this.

from wrf-python.

jthielen avatar jthielen commented on July 16, 2024

@Timothy-W-Hilton Thanks for bumping this!

I'd be interested in hearing about the wrf-python maintainers' perspective on this as well. I've been working a fair bit with WRF output in xarray (especially in the context of MetPy and CF conventions, see this abstract), and would be glad to collaborate on these efforts going forward if it seems to be a good fit.

from wrf-python.

clyne avatar clyne commented on July 16, 2024

We, the GeoCAT team at NCAR, do have plans to refactor wrf-python to be compatible with Xarray. However, the team's priority at the moment is rolling out model-agnostic computational routines (called GeoCAT.comp). These new functions operate directly on Xarray data arrays. The repo for these new functions is here: https://github.com/NCAR/geocat-comp

We don't yet have a timeframe for turning our focus back to wrf-python. However, if this is something that someone in the community wanted to bite off we'd be happy to provide guidance.

from wrf-python.

jthielen avatar jthielen commented on July 16, 2024

@clyne Thank you for the update! After the hecticness of the AMS Meeting and a few pending projects settle down, I'll see if (and in what ways) I could be of any help with this.

from wrf-python.

Timothy-W-Hilton avatar Timothy-W-Hilton commented on July 16, 2024

Thanks, @clyne, for the update! It's nice to know that the slowdown in wrf-python development these past six months doesn't indicate it's being phased out. I'm also open to helping out, though 2020 doesn't really have a lot of space for a large new project for me.

from wrf-python.

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.