Skip to content

Commit f9c0158

Browse files
fix failing QC function by using internal var names
1 parent 40cd98f commit f9c0158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pysonde/readers/readers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ def check_TU_sensor(self, snd):
137137
a mismatch between T, Td and RH
138138
"""
139139
idx = np.where(
140-
snd.Temperature == snd.Dewpoint
140+
snd.temperature == snd.dew_point
141141
) # might need conversion to kelvin
142142
_snd = snd.iloc[idx]
143143
idx_pd = _snd.index
144144
if np.any(
145-
snd.loc[idx_pd, "Humidity"] != 100
145+
snd.loc[idx_pd, "humidity"] != 100
146146
): # might need conversion to percent
147147
logging.warning("Humidity mismatch, setting Td to nan")
148-
snd.loc[idx_pd, "Dewpoint"] = np.nan
148+
snd.loc[idx_pd, "dew_point"] = np.nan
149149
return snd
150150

151151
def read(self, cor_file, bufr_file=None, round_like_bufr=False):

0 commit comments

Comments
 (0)