Skip to content

Commit a3b5fcb

Browse files
committed
Fix index
1 parent 3df94cb commit a3b5fcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/plot_extrapolation_nowcast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
R, metadata = conversion.to_rainrate(Z, metadata, 223.0, 1.53)
5050

5151
# Plot the rainfall field
52-
plot_precip_field(R, geodata=metadata)
52+
plot_precip_field(R[-1, :, :], geodata=metadata)
5353

5454
# Store the last frame for polotting it later later
5555
R_ = R[-1, :, :].copy()
@@ -126,5 +126,5 @@
126126
xlabel("Lead time [min]")
127127
ylabel("FSS ( > 1.0 mm/h ) ")
128128
title("Fractions skill score")
129-
129+
show()
130130
# sphinx_gallery_thumbnail_number = 2

examples/plot_steps_nowcast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
R, metadata = dimension.aggregate_fields_space(R, metadata, 2000)
5959

6060
# Plot the rainfall field
61-
plot_precip_field(R, geodata=metadata)
61+
plot_precip_field(R[-1, :, :], geodata=metadata)
6262

6363
# Log-transform the data to unit of dBR, set the threshold to 0.1 mm/h
6464
R = transformation.dB_transform(R, threshold=0.1, zerovalue=-15.0)[0]

0 commit comments

Comments
 (0)