Skip to content

Commit

Permalink
Merge pull request GeoscienceAustralia#277 from GeoscienceAustralia/nbr
Browse files Browse the repository at this point in the history
Flip it and simplify the color scheme
  • Loading branch information
mergify[bot] authored Feb 26, 2019
2 parents 511fc96 + 4fd8ef0 commit 53c25a9
Showing 1 changed file with 9 additions and 48 deletions.
57 changes: 9 additions & 48 deletions dev/services/wms/thredds/wms_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,30 +281,17 @@
"name": "nbr",
"title": "NBR",
"abstract": "The Normalized burn ratio (NBR) is used to identify burned areas. The formula is similar to a normalized difference vegetation index (NDVI), except that it uses near-infrared (NIR) and shortwave-infrared (SWIR) portions of the electromagnetic spectrum (Lopez, 1991; Key and Benson, 1995)",
"index_function": lambda data: (data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"]),
"index_function": lambda data: -1 * ((data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"])),
"needed_bands": ["nbart_swir_3", "nbart_nir_1"],
"color_ramp": [
{
"value": -0.0,
"color": "#0fc421",
"color": "#f48653",
"alpha": 0.0
},
{
"value": 0.0,
"color": "#0fc421",
"alpha": 1.0
},
{
"value": 0.088,
"color": "#0fc421"
},
{
"value": 0.22,
"color": "#acefb3"
},
{
"value": 0.32,
"color": "#CEAC0E"
"color": "#f48653"
},
{
"value": 1.0,
Expand Down Expand Up @@ -738,30 +725,17 @@
"name": "nbr",
"title": "NBR",
"abstract": "The Normalized burn ratio (NBR) is used to identify burned areas. The formula is similar to a normalized difference vegetation index (NDVI), except that it uses near-infrared (NIR) and shortwave-infrared (SWIR) portions of the electromagnetic spectrum (Lopez, 1991; Key and Benson, 1995)",
"index_function": lambda data: (data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"]),
"index_function": lambda data: -1 * ((data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"])),
"needed_bands": ["nbart_swir_3", "nbart_nir_1"],
"color_ramp": [
{
"value": -0.0,
"color": "#0fc421",
"color": "#f48653",
"alpha": 0.0
},
{
"value": 0.0,
"color": "#0fc421",
"alpha": 1.0
},
{
"value": 0.088,
"color": "#0fc421"
},
{
"value": 0.22,
"color": "#acefb3"
},
{
"value": 0.32,
"color": "#CEAC0E"
"color": "#f48653"
},
{
"value": 1.0,
Expand Down Expand Up @@ -1196,30 +1170,17 @@
"name": "nbr",
"title": "NBR",
"abstract": "The Normalized burn ratio (NBR) is used to identify burned areas. The formula is similar to a normalized difference vegetation index (NDVI), except that it uses near-infrared (NIR) and shortwave-infrared (SWIR) portions of the electromagnetic spectrum (Lopez, 1991; Key and Benson, 1995)",
"index_function": lambda data: (data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"]),
"index_function": lambda data: -1 * ((data["nbart_nir_1"] - data["nbart_swir_3"]) / (data["nbart_nir_1"] + data["nbart_swir_3"])),
"needed_bands": ["nbart_swir_3", "nbart_nir_1"],
"color_ramp": [
{
"value": -0.0,
"color": "#0fc421",
"color": "#f48653",
"alpha": 0.0
},
{
"value": 0.0,
"color": "#0fc421",
"alpha": 1.0
},
{
"value": 0.088,
"color": "#0fc421"
},
{
"value": 0.22,
"color": "#acefb3"
},
{
"value": 0.32,
"color": "#CEAC0E"
"color": "#f48653"
},
{
"value": 1.0,
Expand Down

0 comments on commit 53c25a9

Please sign in to comment.