Skip to content

Commit 1a521ce

Browse files
Merge pull request #88 from EcoExtreML/fix_ws
Move wind speed masking from stemmus_scope to pystemmusscope
2 parents fc1513a + 744f0cb commit 1a521ce

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

PyStemmusScope/forcing_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def read_forcing_data_plumber2(forcing_file: Path, start_time: str, end_time: st
7575
data["precip_conv"] = ds_forcing["Precip"] / 10 # conversion from mm/s to cm/s
7676
data["lw_down"] = ds_forcing["LWdown"]
7777
data["sw_down"] = ds_forcing["SWdown"]
78-
data["wind_speed"] = ds_forcing["Wind"]
78+
data["wind_speed"] = vc.mask_data(ds_forcing["Wind"], min_value=0.05)
7979
data["rh"] = ds_forcing["RH"]
8080
data["vpd"] = ds_forcing["VPD"]
8181
data["lai"] = vc.mask_data(ds_forcing["LAI"], min_value=0.01)

PyStemmusScope/global_data/global_data_selection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def collect_datasets(
4545

4646
data = {**data, **era5_data}
4747

48+
data["wind_speed"] = vc.mask_data(data["wind_speed"], min_value=0.05)
49+
4850
data["co2_conv"] = (
4951
vc.co2_mass_fraction_to_kg_per_m3(
5052
gd.cams_co2.retrieve_co2_data(

0 commit comments

Comments
 (0)