最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

python - Confusion with metpy water vapor functions - Stack Overflow

matteradmin7PV0评论

I'm trying to solve for surface turbulent latent heat flux and I need surface saturation humidity (qs) and surface air humidity (qa)

I currently have the 2m dew point temperature and 2m temperature from the ERA5 dataset.

If what I'm thinking is correct, surface saturation humidity (qs) is just the specific humidity at the dew point. I therefore used metpy's specific_humidity_from_dewpoint function.

But isn't the specific humidity at the dew point also just the saturation mixing ratio at the dew point? I used metpy's saturation_mixing_ratio function but it gave me a ever so slightly different result from the first one.

I'm also trying to solve for the surface air humidity. I thought of doing relative_humidity_from_dewpoint, mixing_ratio_from_relative_humidity, and then finally specific_humidity_from_mixing_ratio

Am I doing this correctly?

I'm trying to solve for surface turbulent latent heat flux and I need surface saturation humidity (qs) and surface air humidity (qa)

I currently have the 2m dew point temperature and 2m temperature from the ERA5 dataset.

If what I'm thinking is correct, surface saturation humidity (qs) is just the specific humidity at the dew point. I therefore used metpy's specific_humidity_from_dewpoint function.

But isn't the specific humidity at the dew point also just the saturation mixing ratio at the dew point? I used metpy's saturation_mixing_ratio function but it gave me a ever so slightly different result from the first one.

I'm also trying to solve for the surface air humidity. I thought of doing relative_humidity_from_dewpoint, mixing_ratio_from_relative_humidity, and then finally specific_humidity_from_mixing_ratio

Am I doing this correctly?

Share Improve this question asked Nov 18, 2024 at 19:42 mEXsACHINEmEXsACHINE 193 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1
  • Specific humidity is the ratio of the mass of water vapor to the mass of all air: $q = m_v / (m_v + m_d)$)
  • Water vapor mixing ratio is the ratio of the mass of water vapor to the mass of dry air: $w = m_v / m_d$

See here for more information. So no, the specific humidity at the dewpoint is not the saturation mixing ratio at the dew point.

I'm rusty on my heat flux calculations, but I think you need to stick with the specific humidity functions for your needs.

Post a comment

comment list (0)

  1. No comments so far