Hi Zach-
Thanks for the reply. Unfortunately this problem went away while I was trying different settings. I backed everything out and was unable to replicate the problem! I'm half-convinced that the dithering may have been an artifact of one of the tools I was using to view the images on my mac.
Thanks again for your help in any case.
For completeness, and in case anyone ever wants to use a color scale with discrete color bins (mimics how the National Weather Service displays reflectivity), here it is and I've attached a sample image:
# Segmented dBZ colormap
dbz_colors=[
(0.39, 0.39, 0.39),
(0.39, 0.39, 0.39),
(0.81, 1, 1),
(0.80, 0.61, 0.80),
(0.60, 0.41, 0.60),
(0.40, 0.21, 0.38),
(0.80, 0.80, 0.61),
(0.60, 0.60, 0.41),
(0.39, 0.39, 0.39),
(0.16, 0.91, 0.90),
(0.09, 0.63, 0.95),
(0.05, 0.13, 0.94),
(0.16, 0.98, 0.18),
(0.12, 0.76, 0.13),
(0.07, 0.55, 0.08),
(0.99, 0.96, 0.22),
(0.89, 0.73, 0.16),
(0.98, 0.58, 0.15),
(0.98, 0.05, 0.11),
(0.82, 0.04, 0.08),
(0.73, 0.03, 0.07),
(0.96, 0.16, 0.98),
(0.59, 0.35, 0.77),
(0.99, 0.99, 0.99),
(0.99, 0.99, 0.99),
(0.99, 0.99, 0.99),
(0.99, 0.99, 0.99),
(0.99, 0.99, 0.99)
]
n_dbz_colors = len(dbz_colors)
dbz_cbar_limits = [0.0, 0.03571, 0.07143, 0.1429, 0.1786, 0.2143, 0.25,
0.2857, 0.3214, 0.3571, 0.3929, 0.4286, 0.4643, 0.5,
0.5357, 0.5714, 0.6071, 0.6429, 0.6786, 0.7143, 0.75,
0.7857, 0.8214, 0.8571, 0.8929, 0.9286, 0.9643, 1]
n_dbz_limits = len(dbz_cbar_limits)
dbz_ticks = [
-40, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 100
]
dbz_ticklabs = [
'-40', '-30', '-25', '-20', '-15', '-10', '-5', '0', '5', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55', '60', '65', '70', '75', '100'
]
dbz_cmap = colors.LinearSegmentedColormap.from_list('test', dbz_colors, n_dbz_colors)
