Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

A question about the equation used in wrf.rh

Aperta
#259 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
fortran, python
Ambito
data

Direzione di ricerca

Inizia da wrf_user.f90 e dalla subroutine DCOMPUTERH, quindi traccia come wrf.rh espone questo calcolo. Confronta la sua equazione qvs, incluso il termine (1.D0 - EPS), con metpy.calc.relative_humidity_from_mixing_ratio e con le definizioni documentate. Il lavoro è concluso quando si determina se il termine è corretto e si documenta o corregge la discrepanza con un controllo di regressione mirato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I recently converted mixing ratio (qv) to relative humidity (RH) by using wf-python and metpy. I compared the results from wrf.rh and metpy.calc.relative_humidity_from_mixing_ratio, and found that the RH from wrf-python is overall higher than the one from metpy.

Although the definitions of relative humidity are different between wrf-python (qv/qvs) and metpy (WMO standard), there is another significant difference between these two libraries. In both libraries, related functions compute the saturation vapor pressure using an empirical equation and then the saturation mixing ratio (qvs). However, in wrf_user.f90, there is another term (1.D0 - EPS) in subroutine DCOMPUTERH.
qvs = EPS*es/(0.01D0*pressure - (1.D0 - EPS)*es)
I am wondering whether this term should appear here.

Lingua principale
Python
Stelle
498
Fork
178
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAR/wrf-python

Tutte le issue di NCAR/wrf-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.