Add HRRR virtual pressure_level skew-T notebook#37
Closed
aldenks wants to merge 3 commits into
Closed
Conversation
Add a quickstart notebook that builds a skew-T log-P diagram from the NOAA HRRR 48 hour forecast "virtual" dataset. It opens the dataset's pressure_level group (39 isobaric levels) from the staging STAC catalog, extracts a vertical profile at a lon/lat point via the Lambert Conformal projection, and renders the sounding with MetPy (temperature/dew-point curves, surface parcel path, CAPE/CIN, LCL, and wind barbs). Reading the virtual store requires the gribberish zarr codec (decodes the virtual GRIB chunk references) and zarr >= 3.2 (built-in scale_offset codec), plus metpy for the plot; these are added to pyproject.toml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016Gxiz1eWxK8cy4gt3LAm9n
dynamical-catalog 0.7.0 now declares gribberish~=1.5.0 and zarr~=3.2 as runtime dependencies, so the virtual dataset's GRIB decoding and the scale_offset codec are pulled in transitively. Bump the floor to >=0.7.0 and drop the explicit gribberish and zarr pins that are no longer needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016Gxiz1eWxK8cy4gt3LAm9n
Use MetPy's .metpy accessor (quantify / unit_array) to pull units directly from each variable's CF `units` attribute instead of attaching hPa/degC/m-s by hand. The dataset already carries correct CF units on the pressure_level group, so this removes the manual unit bookkeeping. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016Gxiz1eWxK8cy4gt3LAm9n
Member
Author
|
going to wrap this into the official quickstart for this dataset. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a quickstart notebook that builds a skew-T log-P diagram from the NOAA
HRRR 48 hour forecast "virtual" dataset. It opens the dataset's
pressure_level group (39 isobaric levels) from the staging STAC catalog,
extracts a vertical profile at a lon/lat point via the Lambert Conformal
projection, and renders the sounding with MetPy (temperature/dew-point
curves, surface parcel path, CAPE/CIN, LCL, and wind barbs).