From def9ffc801c918ec9917ac63956e71fecd5d3192 Mon Sep 17 00:00:00 2001 From: Carl Schreck Date: Wed, 18 Sep 2019 12:00:32 -0400 Subject: [PATCH] Revert "Final products for August (patched non-zero infinities)" This reverts commit fc85bee1298e0fdbabb7d0c6887c0f06185d8c7c --- prcp_map.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/prcp_map.py b/prcp_map.py index 97f94b7..5187e48 100644 --- a/prcp_map.py +++ b/prcp_map.py @@ -20,8 +20,8 @@ from datetime import datetime # These are some parameters that could be useful to have up top year = 2019 month = 8 -first_day = 22 -last_day = 30 +first_day = 1 +last_day = 7 time_range = slice(f'{year}-{month:02}-{first_day:02}', f'{year}-{month:02}-{last_day:02}') @@ -67,8 +67,6 @@ for shape in shapereader.Reader(shp_path).records(): edgecolor='dimgrey', facecolor='none') anom_data = 100. * total_data / clim_data -# Take care of infinities when the observed prcp is nonzero -anom_data = anom_data.where((total_data == 0) | (clim_data != 0), 600) levels = [5, 10, 25, 50, 75, 100, 125, 150, 200, 300, 500] # plot = anom_data.plot(levels=levels, ax=ax, transform=ccrs.PlateCarree(), # cmap='BrBG', zorder=2, -- GitLab