Skip to content

Commit 6ef692c

Browse files
committed
Set negative values in the ANVIL nowcasts to zero
1 parent b2385be commit 6ef692c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pysteps/nowcasts/anvil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ def worker(vil, i):
316316
r_f_ = vil_f
317317
r_f_[rainrate_mask] = 0.0
318318

319+
r_f_[r_f_ < 0.0] = 0.0
320+
319321
# extrapolate to the current nowcast lead time
320322
extrap_kwargs.update(
321323
{"D_prev": dp, "return_displacement": True, "allow_nonfinite_values": True}

0 commit comments

Comments
 (0)