Skip to content

Commit

Permalink
Merge pull request #386 from digitalearthafrica/ndvi_prod
Browse files Browse the repository at this point in the history
Add NDVI clim to prod products list
  • Loading branch information
cbur24 authored Feb 11, 2022
2 parents 0adb987 + ac0233c commit c936d38
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
1 change: 1 addition & 0 deletions prod/products_prod.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ crop_mask_western,https://raw.githubusercontent.com/digitalearthafrica/config/ma
crop_mask_northern,https://raw.githubusercontent.com/digitalearthafrica/config/master/products/crop_mask_northern.odc-product.yaml
crop_mask_sahel,https://raw.githubusercontent.com/digitalearthafrica/config/master/products/crop_mask_sahel.odc-product.yaml
crop_mask_southern,https://raw.githubusercontent.com/digitalearthafrica/config/master/products/crop_mask_southern.odc-product.yaml
ndvi_climatology_ls,https://raw.githubusercontent.com/digitalearthafrica/config/master/products/ndvi_climatology_ls.odc-product.yaml
dem_cop_30,https://raw.githubusercontent.com/opendatacube/datacube-dataset-config/main/products/dem_cop_30.odc-product.yaml
dem_cop_90,https://raw.githubusercontent.com/opendatacube/datacube-dataset-config/main/products/dem_cop_90.odc-product.yaml
dem_srtm,https://raw.githubusercontent.com/digitalearthafrica/config/master/products/dem_srtm.odc-product.yaml
Expand Down
2 changes: 1 addition & 1 deletion services/ows_refactored/vegetation/ows_ndvi_clim_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"name": "ndvi_climatology_ls",
"abstract": """
Standardised NDVI Anomalies provide a measure of vegetation health relative to long term average conditions by measuring the departure, in units of standard devaiations, away from the long-term average. These NDVI climatologies (both mean and standard deviation) represent the long-term average conditions of vegetation condition. NDVI climatologies are available for each month, and were calculated by aggregating data from 1984-2020.
Standardised NDVI Anomalies provide a measure of vegetation health relative to long term average conditions by measuring the departure, in units of standard devaiations, away from the long-term average. These NDVI climatologies (both mean and standard deviation) represent the long-term average baseline conditions of vegetation condition. NDVI climatologies are available for each month, and were calculated by aggregating data from 1984-2020.
""",
"product_name": "ndvi_climatology_ls",
Expand Down
30 changes: 13 additions & 17 deletions services/ows_refactored/vegetation/styles_ndvi_clim.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,19 @@
]

std_cr = [
{"value": 0.0, "color": "#000004"},
{"value": 0.025, "color": "#0a0822"},
{"value": 0.05, "color": "#1d1147"},
{"value": 0.075, "color": "#36106b"},
{"value": 0.1, "color": "#51127c"},
{"value": 0.125, "color": "#6a1c81"},
{"value": 0.15, "color": "#832681"},
{"value": 0.175, "color": "#9c2e7f"},
{"value": 0.2, "color": "#b73779"},
{"value": 0.225, "color": "#d0416f"},
{"value": 0.25, "color": "#e75263"},
{"value": 0.275, "color": "#f56b5c"},
{"value": 0.3, "color": "#fc8961"},
{"value": 0.325, "color": "#fea772"},
{"value": 0.35, "color": "#fec488"},
{"value": 0.375, "color": "#fde2a3"},
{"value": 0.4, "color": "#fcfdbf"},
{'value': 0.0, 'color': '#000004'},
{'value': 0.025, 'color': '#100b2d'},
{'value': 0.05, 'color': '#2c115f'},
{'value': 0.075, 'color': '#51127c'},
{'value': 0.1, 'color': '#721f81'},
{'value': 0.125, 'color': '#932b80'},
{'value': 0.15, 'color': '#b73779'},
{'value': 0.175, 'color': '#d8456c'},
{'value': 0.2, 'color': '#f1605d'},
{'value': 0.225, 'color': '#fc8961'},
{'value': 0.25, 'color': '#feb078'},
{'value': 0.275, 'color': '#fed799'},
{'value': 0.3, 'color': '#fcfdbf'},
]

count_cr = [
Expand Down

0 comments on commit c936d38

Please sign in to comment.