Unidata / MetPy

MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.
https://unidata.github.io/MetPy/
BSD 3-Clause "New" or "Revised" License
1.23k stars 412 forks source link

calculate PBL height from soundings #1515

Open bsu-wrudisill opened 3 years ago

bsu-wrudisill commented 3 years ago

Hello metpy community,

Would a function to calculate PBL height from sounding information be within the scope of metpy? Hennemuth and Lammert (2006) describe some of the common approaches, which include 1) a bulk richardson number, 2) parcel theory, and a 3) humidity/potential temperature gradient based approach. Maybe there are some other methods that I don't know about. This is something that I can try and contribute if it is within scope. Thanks!

Hennemuth, B., Lammert, A. Determination of the Atmospheric Boundary Layer Height from Radiosonde and Lidar Backscatter. Boundary-Layer Meteorol 120, 181–200 (2006). https://doi.org/10.1007/s10546-005-9035-3 https://link.springer.com/article/10.1007/s10546-005-9035-3

dopplershift commented 3 years ago

Sure, that's something that's in scope--especially since you have a publication to point to, so we know we're not adding some ad-hoc method. If you decide to work on it, it might make sense to create a new file/module: src/metpy/calc/boundarylayer.py.

cc @lesserwhirls

bsu-wrudisill commented 3 years ago

Right on -- I have put this on my to-do list!

XiaSun-Atmos commented 2 years ago

Hello, I am wondering if MetPy has included this feature to calculate the PBL height? Thanks,

dopplershift commented 2 years ago

@XiaSun-Atmos This issue remains to be done. Happy to accept a contribution adding it!

ThomasRieutord commented 2 years ago

Hi! It happens we have a code that is ready and that would tackle this issue! We will try to push it in the next few days.

Peshal1067 commented 2 years ago

@ThomasRieutord , Eagerly waiting for the code. It would be very nice!

jeremiahop95 commented 2 years ago

@ThomasRieutord - any updates on the PBL height function? Thanks!

ThomasRieutord commented 2 years ago

Sorry, the code is ready but the unitary tests are missing. I thought I would have the time to do it "in the next few days" but I didn't! Probably next week, I will have more time.

Thanangka commented 1 month ago

@ThomasRieutord any update on the PBL function?

ThomasRieutord commented 1 month ago

Sorry for the massive delay! I just made a pull request with what I have. You can have the module the PBL estimation functions on my fork: https://github.com/ThomasRieutord/MetPy/blob/add_boundarylayer_module/src/metpy/calc/boundarylayer.py

Note that I listed a few things to do in the PR to fully intergrate this contribution in MetPy. Feel free to help and contribute.