From afe6229a1be3ed826adc3c5a96c4bad92d926ef4 Mon Sep 17 00:00:00 2001 From: "pin.jin@ga.gov.au" Date: Wed, 17 Mar 2021 05:33:56 +0000 Subject: [PATCH 1/2] add fmask to wi --- .../wms/ows_refactored/c3/ows_c3_cfg.py | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py b/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py index 899db9e88..cf456eb86 100644 --- a/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py +++ b/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py @@ -84,6 +84,7 @@ "invert": True, } ], + "additional_bands": ["oa_fmask"], } style_c3_false_colour = { @@ -103,6 +104,7 @@ "invert": True, } ], + "additional_bands": ["oa_fmask"], } style_c3_ndvi = { @@ -129,6 +131,20 @@ {"value": 0.9, "color": "#237100"}, {"value": 1.0, "color": "#114D04"}, ], + "pq_masks": [ + { + "band": "oa_fmask", + "enum": 1, + }, + { + "band": "oa_fmask", + "enum": 4, + }, + { + "band": "oa_fmask", + "enum": 5, + }, + ], "legend": legend_idx_0_1_5ticks, } @@ -163,6 +179,20 @@ "color": "#08306b", }, ], + "pq_masks": [ + { + "band": "oa_fmask", + "enum": 1, + }, + { + "band": "oa_fmask", + "enum": 4, + }, + { + "band": "oa_fmask", + "enum": 5, + }, + ], "legend": { "begin": "0.0", "end": "0.5", @@ -196,6 +226,20 @@ {"value": 0.8, "color": "#1563aa"}, {"value": 1.0, "color": "#08306b"}, ], + "pq_masks": [ + { + "band": "oa_fmask", + "enum": 1, + }, + { + "band": "oa_fmask", + "enum": 4, + }, + { + "band": "oa_fmask", + "enum": 5, + }, + ], "legend": legend_idx_0_1_5ticks, } From 7ce2f5f16303c45b6213f06420b30836ba59e21f Mon Sep 17 00:00:00 2001 From: "pin.jin@ga.gov.au" Date: Wed, 17 Mar 2021 05:34:58 +0000 Subject: [PATCH 2/2] cleanup --- dev/services/wms/ows_refactored/c3/ows_c3_cfg.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py b/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py index cf456eb86..43dbe696e 100644 --- a/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py +++ b/dev/services/wms/ows_refactored/c3/ows_c3_cfg.py @@ -84,7 +84,6 @@ "invert": True, } ], - "additional_bands": ["oa_fmask"], } style_c3_false_colour = { @@ -104,7 +103,6 @@ "invert": True, } ], - "additional_bands": ["oa_fmask"], } style_c3_ndvi = {