Skip to content

Commit

Permalink
ENS minimum step length 3h
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Apr 17, 2024
1 parent 2a422c9 commit 8d3e9e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions himan-scripts/max-thunderprob-24h.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ function MaxThunderprob(curTime)
local count = 0

while true do
local stepAdjustment = -1
-- for ENS we have smallest step 3h
local stepAdjustment = -3

if step >= 150 then
stepAdjustment = -6
elseif step >= 93 then
stepAdjustment = -3
end

curTime:GetValidDateTime():Adjust(HPTimeResolution.kHourResolution, stepAdjustment)
Expand Down
5 changes: 2 additions & 3 deletions himan-scripts/rajuilma-24h.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ function TimeMax(curTime,param_csi)
local count = 0

while true do
local stepAdjustment = -1
-- for ENS we have smallest step 3h
local stepAdjustment = -3

if step >= 150 then
stepAdjustment = -6
elseif step >= 93 then
stepAdjustment = -3
end

myTime:GetValidDateTime():Adjust(HPTimeResolution.kHourResolution, stepAdjustment)
Expand Down

0 comments on commit 8d3e9e8

Please sign in to comment.