Skip to content

Commit

Permalink
move wind speed masking from stemmus_scope to pystemmusscope
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAlidoost committed Jun 30, 2023
1 parent fc1513a commit 744f0cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PyStemmusScope/forcing_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def read_forcing_data_plumber2(forcing_file: Path, start_time: str, end_time: st
data["precip_conv"] = ds_forcing["Precip"] / 10 # conversion from mm/s to cm/s
data["lw_down"] = ds_forcing["LWdown"]
data["sw_down"] = ds_forcing["SWdown"]
data["wind_speed"] = ds_forcing["Wind"]
data["wind_speed"] = vc.mask_data(ds_forcing["Wind"], min_value=0.05)
data["rh"] = ds_forcing["RH"]
data["vpd"] = ds_forcing["VPD"]
data["lai"] = vc.mask_data(ds_forcing["LAI"], min_value=0.01)
Expand Down
2 changes: 2 additions & 0 deletions PyStemmusScope/global_data/global_data_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def collect_datasets(

data = {**data, **era5_data}

data["wind_speed"] = vc.mask_data(data["wind_speed"], min_value=0.05)

data["co2_conv"] = (
vc.co2_mass_fraction_to_kg_per_m3(
gd.cams_co2.retrieve_co2_data(
Expand Down

0 comments on commit 744f0cb

Please sign in to comment.