Open mccabete opened 2 years ago
@mdietze or @ankurdesai, and I interpreting the inputs to the rh2qair() function correctly?
@mccabete Yes, the function expect RH has a proportion 0-1. e <- rh * es -> this estimates the vapor pressure as a proportion of saturation vapor pressure, that proportion is rh
Thanks for confirming!
From: Ankur Desai @.> Sent: Wednesday, November 17, 2021 6:05 PM To: PecanProject/pecan @.> Cc: Mccabe, Tempest @.>; Mention @.> Subject: Re: [PecanProject/pecan] RH calculation ans Specific humidity calculation discrepancy in met2cf.ERA5.R (Issue #2897)
@mccabetehttps://github.com/mccabete Yes, the function expect RH has a proportion 0-1. e <- rh * es -> this estimates the vapor pressure as a proportion of saturation vapor pressure, that proportion is rh
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/PecanProject/pecan/issues/2897#issuecomment-972237148, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFCH6F6STSXWWSSNW466T6TUMQYNJANCNFSM5IHZNBUQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Is it worth adding an argument to specify the units (proportion or percent) that RH is returned in.
Poked my head in and also noticed that rh2qair takes pressure in Pa, and qair2rh takes it in mb.
This issue is stale because it has been open 365 days with no activity.
Bug Description
@DongchenZ Is the one who found this, I am just writing it up. The relative humidity calculation in met2cf.ERA5 has a * 100 term that put relative humidity in terms of percent, rather than proportion.
According to the comments, this is copied from weathermetric's conversion function, which labels that RH is in \%.
Our RH to specific humidity function is expecting a proportion, not a \%.
@DongchenZ's PR #2886 contains the fix, but I wanted to document the bug in case 1) I misinterpreted the use of
\%
in the descriptions, or 2) this affects anyone else