Skip to content

Commit 64c9eef

Browse files
committed
fix: Fix bug in dry air density calculation
Duplicated from pull request NOAA-PSL#3 from @milancurcic
1 parent 604bc5a commit 64c9eef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/COARE3.5/meteo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ def rhod(t, p):
109109
110110
inputs: t (deg C), and p (mb or hPa)
111111
112-
output: Rd = dry air density in kg/m3
112+
output: Rdry = dry air density in kg/m3
113113
114114
"""
115115
Rd = 287.058 # gas const for dry air in J/kg K
116-
tk = t+273.15 # deg Kelvin
116+
Tk = t+273.15 # deg Kelvin
117117
Pa = p*100 # Pascals
118118
Rdry = Pa/(Rd*Tk) # dry air density, kg/m3
119-
return Rd
119+
return Rdry
120120

121121

122122
def grv(latitude):

0 commit comments

Comments
 (0)