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

Examine wet bulb temperature implementation #3386

Open
dopplershift opened this issue Feb 5, 2024 · 4 comments
Open

Examine wet bulb temperature implementation #3386

dopplershift opened this issue Feb 5, 2024 · 4 comments
Labels
Area: Calc Pertains to calculations Subarea: Thermo Pertains to thermodynamic calculations and their physical correctness Type: Enhancement Enhancement to existing functionality

Comments

@dopplershift
Copy link
Member

There was a poster at AGU comparing our implementation (among others) of wet bulb temperature and comparing to Davies-Jones 2008 and a new "NEWT" implementation--both of the latter showing better error characteristics. At some point, it would be worth seeing if there's low hanging fruit to improve ours.

@dopplershift dopplershift added Type: Enhancement Enhancement to existing functionality Area: Calc Pertains to calculations Subarea: Thermo Pertains to thermodynamic calculations and their physical correctness labels Feb 5, 2024
@alioacar
Copy link

Hi @dopplershift ,
I've been tinkering the wet bulb temperature implementation for a bit. Here is the comparison of MetPy and the other two (Davies-Jones(Colin Raymond's DJ08) and NEWT).
Image
It seems like MetPy has a bias compared the other two while they have a good agreement with each other. I think the difference comes from the temperature dependence of the latent heat of vaporization.(it should decrease if T increases and increase if T decreases). So I directly implemented it (Lv0 - (cpv-cpl)*(T-T0)) into to the moist lapse rate calculation and now it's really close what DJ08 and NEWT produce. Note that the different scales for the figure above and below.
Image
However most tests related to the pseudo-adiabats(moist lapse) have failed now. So I'm not entirely sure it is correct.

@dopplershift
Copy link
Member Author

I'm not shocked that updating the formula causes test failures; you are producing different values, and thus plots.

@alioacar
Copy link

I'm asking because I have no experience in this field—are there any validated datasets or measurements against which these calculations can be compared? (Not only for WBT but also like LCL or LFC ...) Also, I'm not sure if this level of accuracy is even desired but if it's needed, I can put in some effort here with some metrics and validation plots maybe.

@dopplershift
Copy link
Member Author

None that I'm aware of. You could try comparing curves to e.g. those from the National Weather Service, but it's usually really hard to match since you don't know what set of assumptions is going into those curves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Subarea: Thermo Pertains to thermodynamic calculations and their physical correctness Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants