Skip to content

Commit

Permalink
Add error control
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Jan 3, 2025
1 parent 1f680ba commit 66da830
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions himan-scripts/precipitation-form-fix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ local l2 = level(HPLevelType.kHeight, 2)
local prec = luatool:Fetch(current_time, l0, par_prec, current_forecast_type)
local t = luatool:Fetch(current_time, l2, par_t, current_forecast_type)

if not prec or not t then
return
end

for i=1, #prec do
t[i] = t[i] - 273.15
-- freezing to rain
Expand Down

0 comments on commit 66da830

Please sign in to comment.