|
265 | 265 |
|
266 | 266 | precip_forecast = blending.steps.forecast( |
267 | 267 | precip=radar_precip, |
268 | | - precip_nowcast=fc_lagrangian_extrapolation, |
| 268 | + precip_nowcast=np.array( |
| 269 | + [fc_lagrangian_extrapolation] |
| 270 | + ), # Add an extra dimension, becuase precip_nowcast has to be 4-dimensional |
269 | 271 | precip_models=nwp_precip, |
270 | 272 | velocity=velocity_radar, |
271 | 273 | velocity_models=velocity_nwp, |
|
304 | 306 | # forecast has become more important and the forecast starts to resemble the |
305 | 307 | # NWP forecast more. |
306 | 308 |
|
307 | | -fig = plt.figure(figsize=(5, 12)) |
| 309 | +fig = plt.figure(figsize=(6, 12)) |
308 | 310 |
|
309 | 311 | leadtimes_min = [30, 60, 90, 120, 150, 180] |
310 | 312 | n_leadtimes = len(leadtimes_min) |
|
329 | 331 | plot_precip_field( |
330 | 332 | fc_lagrangian_extrapolation_mmh[idx, :, :], |
331 | 333 | geodata=radar_metadata, |
332 | | - title=f"Extrapolated +{leadtime} min", |
| 334 | + title=f"NWC +{leadtime} min", |
333 | 335 | axis="off", |
334 | 336 | colorscale="STEPS-NL", |
335 | 337 | colorbar=False, |
|
355 | 357 |
|
356 | 358 | precip_forecast = blending.steps.forecast( |
357 | 359 | precip=radar_precip, |
358 | | - precip_nowcast=fc_lagrangian_extrapolation, |
| 360 | + precip_nowcast=np.array( |
| 361 | + [fc_lagrangian_extrapolation] |
| 362 | + ), # Add an extra dimension, becuase precip_nowcast has to be 4-dimensional |
359 | 363 | precip_models=nwp_precip, |
360 | 364 | velocity=velocity_radar, |
361 | 365 | velocity_models=velocity_nwp, |
|
387 | 391 | # Visualize the output |
388 | 392 | # ~~~~~~~~~~~~~~~~~~~~ |
389 | 393 |
|
390 | | -fig = plt.figure(figsize=(5, 12)) |
| 394 | +fig = plt.figure(figsize=(8, 12)) |
391 | 395 |
|
392 | 396 | leadtimes_min = [30, 60, 90, 120, 150, 180] |
393 | 397 | n_leadtimes = len(leadtimes_min) |
|
422 | 426 | # Raw extrapolated nowcast |
423 | 427 | ax3 = plt.subplot(n_leadtimes, 4, n * 4 + 3) |
424 | 428 | plot_precip_field( |
425 | | - fc_lagrangian_extrapolation_mmh[0, idx, :, :], |
| 429 | + fc_lagrangian_extrapolation_mmh[idx, :, :], |
426 | 430 | geodata=radar_metadata, |
427 | 431 | title=f"NWC + {leadtime} min", |
428 | 432 | axis="off", |
|
0 commit comments