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

Add Cross Sections for Observed Soundings #3190

Open
sgdecker opened this issue Sep 13, 2023 · 2 comments
Open

Add Cross Sections for Observed Soundings #3190

sgdecker opened this issue Sep 13, 2023 · 2 comments
Labels
Area: Cross-sections Pertains to making cross-sections through data Type: Feature New functionality

Comments

@sgdecker
Copy link
Contributor

What should we add?

GEMPAK provides the program SNCROSS, which draws cross sections through observed sounding data. MetPy offers metpy.interpolate.cross_section, which assists in the generation of cross sections for gridded data (analogous to GEMPAK's GDCROSS), but I'm not aware of any ready-made way to generate the plots SNCROSS does with MetPy.

The basic algorithm GEMPAK seems to use is to:

  1. Determine where in view coordinates (i.e., along the x-axis) each sounding station is located
  2. Calculate the desired parameters at each level for each sounding
  3. Contour the resulting irregular grid(s), and/or plot the resulting vectors (barbs or arrows)
  4. Add extra stuff like the curve showing what portion of the cross-section is underground
    Various options are provided such as whether you want the y-axis logarithmic with respect to pressure or linear with respect to pressure.

Reference

No response

@sgdecker sgdecker added the Type: Feature New functionality label Sep 13, 2023
@dopplershift dopplershift added the Area: Cross-sections Pertains to making cross-sections through data label Sep 13, 2023
@kgoebber
Copy link
Collaborator

Thanks for submitting this, it would be a great addition. In the mean time, we have an example of this on the Unidata Python Gallery (which will be incorporated into the new MetPy Cookbook we are working and will be hosted through Project Pythia).

https://unidata.github.io/python-training/gallery/observational_data_cross_section/

There is an function created in the example that could serve as a starting point for making a plotting class for an observational cross section.

@sgdecker
Copy link
Contributor Author

Thanks for the example! That would definitely serve as a good start for a MetPy implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Cross-sections Pertains to making cross-sections through data Type: Feature New functionality
Projects
None yet
Development

No branches or pull requests

3 participants