Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getvar compatibility with xarray #202

Open
nathane1 opened this issue Feb 9, 2023 · 3 comments
Open

getvar compatibility with xarray #202

nathane1 opened this issue Feb 9, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@nathane1
Copy link

nathane1 commented Feb 9, 2023

Greetings,

I've been attempting to use WRF-Python recently to compute diagnostic variables from WRF output in netCDF4 format. However, as things currently stand, it is not clear how the getvar method can be used with large volumes of WRF output accessed through opening multiple files simultaneously. This results from a two-pronged problem:

  • getvar is not currently compatible with xarray; attempting to use them together results in a TypeError. The proposed fix under the FAQs section of the website for using an xarray dataset as input to WRF-Python functions is now deprecated; the attribute in question has been removed from the xarray.Dataset API.
  • Using the netCDF4 package to load in a dataset is an alternative option, but it does not currently support concurrent reads of multiple netCDF4 files (only netCDF3/netCDF4 classic)

As such, I wanted to know if there are any planned updates for integrating xarray with WRF-Python. Any insight would be greatly appreciated!

@erogluorhan
Copy link
Collaborator

Hi @nathane1 ,

Thanks very much for reaching out!

We believe Xarray compatibility for WRF efforts is vital, and we'd like to explore things like if we can make getvar() so, or if there is similar WRF capability of other packages/groups in the scientific Python ecosystem that is Xarray-compatible, etc. We are hoping to look into this in the near future and at least come up with some thoughts. Please let us know if you have any thoughts, ideas as well.

@kafitzgerald kafitzgerald added the enhancement New feature or request label May 25, 2023
@FalseFeint
Copy link

FalseFeint commented Nov 14, 2024

Hi @erogluorhan, is there currently a plan in place to implement this? I would find this immensely useful.

@erogluorhan
Copy link
Collaborator

Hi @FalseFeint , while we believe there is value in it, we don't have the staff resources to prioritize it for a foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants