Skip to content

Adding hierarchical radar data #35

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

Merged
merged 2 commits into from
Jul 6, 2025

Conversation

aladinor
Copy link
Contributor

@aladinor aladinor commented Jul 2, 2025

  • updated the docstring for xarray.tutorial.open_dataset
  • partially closes #321

@aladinor aladinor changed the title adding radar dat hihierarchical data Adding hierarchical radar data Jul 2, 2025
@TomNicholas
Copy link
Member

Thanks @aladinor !

Can I see what that radar data looks like (i.e. a printed representation of the tree structure) before I merge it?

Also can we rename the file? Currently you would access this like xr.tutorial.open_datatree('radar-dtree'), which says tree twice. I think radar is fine, or even nexrad or similar.

@aladinor
Copy link
Contributor Author

aladinor commented Jul 3, 2025

Hi @TomNicholas

This is the content of the radar file

xarray.DataTree structure
<xarray.DataTree>
Group: /Dimensions:              ()
│   Data variables:
│       volume_number        int64 8B ...
│       platform_type        <U5 20B ...
│       instrument_type      <U5 20B ...
│       time_coverage_start  <U20 80B ...
│       time_coverage_end    <U20 80B ...
│       longitude            float64 8B ...
│       altitude             int64 8B ...
│       latitude             float64 8B ...
│   Attributes:
│       Conventions:      Noneinstrument_name:  KVNX
│       ...
├── Group: /sweep_0Dimensions: (azimuth: 720, range: 1832)
│       Coordinates:
│         * azimuth   (azimuth) float64 ...
│         * range     (range) float32 ...
│         time        (azimuth) datetime64[ns] ...
│         ...
│       Data variables:
│         DBZH, ZDR, PHIDP, RHOHV, ...
├── Group: /sweep_1Dimensions: (azimuth: 720, range: 1192)
│       ...
│       Data variables:
│         DBZH, VRADH, WRADH, ...
├── Group: /sweep_2Dimensions: (azimuth: 720, range: 1832)
│       ...
├── Group: /radar_parametersDimensions: ()
│       Coordinates: longitude, latitude, altitude
├── Group: /georeferencing_correctionDimensions: ()
│       Coordinates: longitude, latitude, altitude
└── Group: /radar_calibration

and I renamed the file to radar.nc

@keewis
Copy link
Contributor

keewis commented Jul 6, 2025

shall we go ahead and merge this? It would be super helpful to have a native example dataset with multiple data groups somewhere.

@TomNicholas TomNicholas merged commit 363e28b into pydata:master Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants