Skip to content

Commit 972eb55

Browse files
authored
fix land zenith computation (#1355)
1 parent 1a412ea commit 972eb55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared_utilities/drivers.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,14 @@ function default_zenith_angle(
292292
else
293293
start_date + Dates.Second(round(t))
294294
end
295+
# This is hardcoded because it is not currently in ClimaParams.
296+
# Please see https://github.com/CliMA/Insolation.jl/issues/41
297+
date0 = DateTime("2000-01-01T11:58:56.816")
295298
d, δ, η_UTC =
296299
FT.(
297300
Insolation.helper_instantaneous_zenith_angle(
298301
current_datetime,
299-
start_date,
302+
date0,
300303
insol_params,
301304
)
302305
)

0 commit comments

Comments
 (0)