Skip to content

Commit

Permalink
fixed unintended removal of rh_*_ice_or_water from the daily and mont…
Browse files Browse the repository at this point in the history
…hly dataset
  • Loading branch information
BaptisteVandecrux committed Nov 12, 2024
1 parent 65be4f0 commit c764560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pypromice/process/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def prepare_and_write(
elif t == 86400:
# removing instantaneous values from daily and monthly files
for v in col_names:
if ("_i" in v) and ("_i_" not in v):
if v in ['p_i', 't_i', 'rh_i', 'wspd_i', 'wdir_i', 'wspd_x_i', 'wspd_y_i']:
col_names.remove(v)
out_csv = output_dir / f"{name}_day.csv"
out_nc = output_dir / f"{name}_day.nc"
else:
# removing instantaneous values from daily and monthly files
for v in col_names:
if ("_i" in v) and ("_i_" not in v):
if v in ['p_i', 't_i', 'rh_i', 'wspd_i', 'wdir_i', 'wspd_x_i', 'wspd_y_i']:
col_names.remove(v)
out_csv = output_dir / f"{name}_month.csv"
out_nc = output_dir / f"{name}_month.nc"
Expand Down

0 comments on commit c764560

Please sign in to comment.