Skip to content

Commit 661d2f2

Browse files
author
Mostafa Daoud
committed
add Trap to BMI
1 parent 3f1fd58 commit 661d2f2

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

PyStemmusScope/bmi/variable_reference.py

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ class BmiVariable:
2626
units="cm s-1",
2727
grid=0,
2828
keys=["fluxes", "Resp"],
29+
),
30+
BmiVariable(
31+
name="precipitation",
32+
dtype="float64",
33+
input=True,
34+
output=False,
35+
units="cm s-1",
36+
grid=0,
37+
keys=["ForcingData", "Precip_msr"],
38+
all_timesteps=True,
39+
),
40+
BmiVariable(
41+
name="applied_infiltration",
42+
dtype="float64",
43+
input=False,
44+
output=True,
45+
units="cm s-1",
46+
grid=0,
47+
keys=["ForcingData", "applied_inf"],
48+
all_timesteps=True,
2949
),
3050
BmiVariable(
3151
name="evaporation_total",
@@ -34,7 +54,7 @@ class BmiVariable:
3454
output=True,
3555
units="cm s-1",
3656
grid=0,
37-
keys=["EVAP"],
57+
keys=["Evap"],
3858
),
3959
BmiVariable(
4060
name="transpiration_total",
@@ -44,7 +64,6 @@ class BmiVariable:
4464
units="cm s-1",
4565
grid=0,
4666
keys=["Trap"],
47-
all_timesteps=True,
4867
),
4968
# soil vars:
5069
BmiVariable(
@@ -104,26 +123,6 @@ class BmiVariable:
104123
keys=["ForcingData", "R_Hort"],
105124
all_timesteps=True,
106125
),
107-
BmiVariable(
108-
name="precipitation",
109-
dtype="float64",
110-
input=True,
111-
output=False,
112-
units="cm s-1",
113-
grid=0,
114-
keys=["ForcingData", "Precip_msr"],
115-
all_timesteps=True,
116-
),
117-
BmiVariable(
118-
name="applied_infiltration",
119-
dtype="float64",
120-
input=False,
121-
output=True,
122-
units="cm s-1",
123-
grid=0,
124-
keys=["ForcingData", "applied_inf"],
125-
all_timesteps=True,
126-
),
127126
# groundwater vars (STEMMUS_SCOPE)
128127
BmiVariable(
129128
name="groundwater_root_water_uptake",

0 commit comments

Comments
 (0)