NCAR / NCAR/wrf-python

support xarray.Dataset as input to get_cartopy and getvar

Open
#6 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement low priority
Dominant language
Python
Stars
498
Forks
178
PR merge metrics
No merged PRs in 30d

Description

it would be great if the get_cartopy and getvar functions would accept a xarray.Dataset as var input. Obviously, this can only work properly if the Dataset was loaded with a standard xarray.open_dataset call and the metadata were not modified, but still, it would be very convenient.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the get_cartopy and getvar entry points and reviewing how they currently handle var inputs. Compare that path with metadata produced by a standard xarray.open_dataset call. Done means both functions accept an unmodified xarray.Dataset where the required metadata are available, while existing inputs continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.