Skip to content

Commit 06d16b8

Browse files
committed
Adjust ENS time correctly for 21z MEPS
1 parent 8e95ef3 commit 06d16b8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

himan-scripts/meps-ml-adjust-temperature.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ function FetchInfoFromENS(param, level)
153153
-- 18 00
154154
-- 21 12
155155

156-
if (meps_hour >= 0 and meps_hour <= 6) or meps_hour == 21 then
156+
if meps_hour >= 0 and meps_hour <= 6 then
157157
-- use previous 12 UTC analysis
158-
adjust_hours = -12 - meps_hour
158+
adjust_hours = -12 - meps_hour
159+
elseif meps_hour == 21 then
160+
-- use current day 12 UTC analysis
161+
adjust_hours = 12 - meps_hour
159162
else
160163
-- use current day 00 UTC analysis
161164
adjust_hours = -meps_hour

0 commit comments

Comments
 (0)