From abcb2d8461f880d467247251f1ea35326eda4eb0 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Thu, 17 Aug 2023 14:57:21 -0500 Subject: [PATCH] Add NDVI/EVI/LST/AOD colormaps for VIIRS --- etc/enhancements/viirs.yaml | 153 ++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/etc/enhancements/viirs.yaml b/etc/enhancements/viirs.yaml index e9d08ee0..5a09d7f9 100644 --- a/etc/enhancements/viirs.yaml +++ b/etc/enhancements/viirs.yaml @@ -45,3 +45,156 @@ enhancements: # name: WaterDetection # sensor: viirs # operations: {} + + veg_index: + standard_name: normalized_difference_vegetation_index + sensor: viirs + operations: + - name: colorize + method: !!python/name:polar2grid.enhancements.colorize + kwargs: + palettes: + - { + values: [ + 0.00000, + 0.06000, + 0.06001, + 0.29210, + 0.29211, + 0.35000, + 0.35001, + 0.40999, + 0.41000, + 0.47000, + 0.47001, + 0.52700, + 0.52701, + 0.58600, + 0.58601, + 0.64500, + 0.64501, + 0.70400, + 0.70401, + 0.76200, + 0.76201, + 0.81000, + 0.81001, + 0.88000, + 0.88001, + 0.93900, + 0.93901, + 0.99599, + 0.99600, + 1.00000, + ], + colors: [ + [235,235,235,255], + [235,235,235,255], + [202,108,32,255], + [255,222,104,255], + [126,156,44,255], + [126,156,44,255], + [150,182,19,255], + [150,182,19,255], + [117,170,0,255], + [117,170,0,255], + [103,161,0,255], + [103,161,0,255], + [82,148,0,255], + [82,148,0,255], + [61,134,1,255], + [61,134,1,255], + [28,115,1,255], + [28,115,1,255], + [0,95,1,255], + [0,95,1,255], + [0,72,0,255], + [0,72,0,255], + [2,55,1,255], + [2,55,1,255], + [0,41,1,255], + [0,41,1,255], + [1,19,1,255], + [1,19,1,255], + [235,235,235,255], + [0,0,0,255], + ] + } + + vlst: + name: VLST + sensor: viirs + operations: + - name: colorize + method: !!python/name:polar2grid.enhancements.colorize + kwargs: + palettes: + # AWIPS "VTRSB.cmap" + - min_value: 223.15 + max_value: 429.15 + values: [ + 0.0, + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6, + 0.7, + 0.8, + 0.9, + 1.0, + ] + colors: [ + [0.0, 0.0, 0.0], + [0.5, 0.0, 1.0], + [0.0, 0.0, 1.0], + [0.0, 0.5, 1.0], + [0.0, 1.0, 1.0], + [0.0, 1.0, 0.5], + [0.0, 1.0, 0.0], + [0.5, 1.0, 0.0], + [1.0, 1.0, 0.0], + [1.0, 0.5, 0.0], + [1.0, 0.0, 0.0], + ] + color_scale: 1.0 + + aod550: + name: AOD550 + sensor: viirs + operations: + - name: colorize + method: !!python/name:polar2grid.enhancements.colorize + kwargs: + # AWIPS "VTRSB.cmap" + palettes: + - min_value: 0.0 + max_value: 1.0 + values: [ + 0.0, + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6, + 0.7, + 0.8, + 0.9, + 1.0, + ] + colors: [ + [0.0, 0.0, 0.0], + [0.5, 0.0, 1.0], + [0.0, 0.0, 1.0], + [0.0, 0.5, 1.0], + [0.0, 1.0, 1.0], + [0.0, 1.0, 0.5], + [0.0, 1.0, 0.0], + [0.5, 1.0, 0.0], + [1.0, 1.0, 0.0], + [1.0, 0.5, 0.0], + [1.0, 0.0, 0.0], + ] + color_scale: 1.0