Skip to content

Commit e62762d

Browse files
committed
Revert change
1 parent 4b5a722 commit e62762d

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

ext/fluxnet_simulations/forcing.jl

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function prescribed_forcing_fluxnet(
4242
start_date, # in UTC
4343
earth_param_set,
4444
FT;
45-
periodic = false,
4645
split_precip = true,
4746
gustiness = 1,
4847
c_co2 = TimeVaryingInput((t) -> 4.2e-4),
@@ -82,36 +81,31 @@ function prescribed_forcing_fluxnet(
8281
column_name_map,
8382
seconds_since_start_date;
8483
preprocess_func = (x) -> x + 273.15,
85-
periodic,
8684
)
8785
atmos_P = time_varying_input_from_data(
8886
data,
8987
"PA_F",
9088
column_name_map,
9189
seconds_since_start_date;
9290
preprocess_func = (x) -> x * 1000,
93-
periodic,
9491
)
9592
atmos_u = time_varying_input_from_data(
9693
data,
9794
"WS_F",
9895
column_name_map,
99-
seconds_since_start_date;
100-
periodic,
96+
seconds_since_start_date,
10197
)
10298
LW_d = time_varying_input_from_data(
10399
data,
104100
"LW_IN_F",
105101
column_name_map,
106-
seconds_since_start_date;
107-
periodic,
102+
seconds_since_start_date,
108103
)
109104
SW_d = time_varying_input_from_data(
110105
data,
111106
"SW_IN_F",
112107
column_name_map,
113-
seconds_since_start_date;
114-
periodic,
108+
seconds_since_start_date,
115109
)
116110

117111
# Specific humidity is computed from P, VPD, and T using `compute_q`
@@ -124,7 +118,6 @@ function prescribed_forcing_fluxnet(
124118
column_name_map,
125119
seconds_since_start_date;
126120
preprocess_func = q_closure,
127-
periodic,
128121
)
129122

130123
# Next is precipitation, which is reported as an accumulation over
@@ -145,15 +138,13 @@ function prescribed_forcing_fluxnet(
145138
column_name_map,
146139
seconds_since_start_date;
147140
preprocess_func = compute_rain,
148-
periodic,
149141
)
150142
atmos_P_snow = time_varying_input_from_data(
151143
data,
152144
["TA_F", "VPD_F", "P_F"],
153145
column_name_map,
154146
seconds_since_start_date;
155147
preprocess_func = compute_snow,
156-
periodic,
157148
)
158149
else
159150
atmos_P_liq = time_varying_input_from_data(
@@ -162,15 +153,13 @@ function prescribed_forcing_fluxnet(
162153
column_name_map,
163154
seconds_since_start_date;
164155
preprocess_func = (x) -> -x / 1000 / data_dt,
165-
periodic,
166156
)
167157
atmos_P_snow = time_varying_input_from_data(
168158
data,
169159
"P_F",
170160
column_name_map,
171161
seconds_since_start_date;
172162
preprocess_func = (x) -> zero(x),
173-
periodic,
174163
) # no snow
175164
end
176165

0 commit comments

Comments
 (0)