Unidata / python-training

Notebooks teaching Python for use meteorology and atmospheric and climate sciences.
https://unidata.github.io/python-training
BSD 3-Clause "New" or "Revised" License
126 stars 69 forks source link

Update MetPy Case Study to use MetPy v1.0 API and features #127

Open jthielen opened 2 years ago

jthielen commented 2 years ago

As revealed by this StackOverflow question the MetPy Case Study workshop notebook uses out-of-date API for mpcalc.advection (like https://github.com/Unidata/python-training/issues/125), but also has a now-horrifying amount of boiler-plate code for things cleaned up with xarray handling in v1.0. So, I think this notebook could use a good update or overhaul!

xref (for other updates I could find in issue tracker): https://github.com/Unidata/python-training/issues/44, https://github.com/Unidata/python-training/issues/81

jsillin commented 2 years ago

I also found this to be the case (at least with regards to using the outdated Metpy Calc API) in the Frontogenesis example https://unidata.github.io/python-training/gallery/850hpa_frontogenesis/