From 481a781bc2489e790f14a340613072c0d9ace28d Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 12 Sep 2023 12:55:26 -0500 Subject: [PATCH] Add normalized burn ratio composite (nbr) for VIIRS --- etc/composites/viirs.yaml | 15 +++++++++++++++ etc/enhancements/viirs.yaml | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/etc/composites/viirs.yaml b/etc/composites/viirs.yaml index 41083f45..e14f5bd9 100644 --- a/etc/composites/viirs.yaml +++ b/etc/composites/viirs.yaml @@ -318,3 +318,18 @@ composites: standard_name: equalized_radiance units: "1" saturation_correction: true + + nbr: + compositor: !!python/name:satpy.composites.viirs.GenericCompositor + prerequisites: + - compositor: !!python/name:satpy.composites.RatioCompositor + prerequisites: + - compositor: !!python/name:satpy.composites.DifferenceCompositor + prerequisites: + - name: M11 + - name: M07 + - compositor: !!python/name:satpy.composites.SumCompositor + prerequisites: + - name: M11 + - name: M07 + standard_name: normalized_burn_ratio diff --git a/etc/enhancements/viirs.yaml b/etc/enhancements/viirs.yaml index eb7e1314..72a3ac4f 100644 --- a/etc/enhancements/viirs.yaml +++ b/etc/enhancements/viirs.yaml @@ -166,3 +166,11 @@ enhancements: - filename: colormaps/abi_l2_modified_cloud_top.cmap min_value: 300 max_value: 200 + + nbr: + sensor: viirs + standard_name: normalized_burn_ratio + operations: + - name: linear_stretch + method: !!python/name:satpy.enhancements.stretch + kwargs: { stretch: 'crude', min_stretch: -1.0, max_stretch: 1.0 }