Skip to content

Commit

Permalink
Updating Scorecards Zonal
Browse files Browse the repository at this point in the history
  • Loading branch information
bpstewar committed Mar 19, 2024
1 parent 975314e commit 36bee34
Show file tree
Hide file tree
Showing 47 changed files with 5,944 additions and 551 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# repo-specific to ignore
data/config/LOCAL_FILES/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
37 changes: 37 additions & 0 deletions data/config/chirps_rainfall_differenceanomaly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"rainfall_differenceanomaly": {
"source": "Derived from CHIRPS data",
"source_link": "https://www.chc.ucsb.edu/data/chirps",
"description": "Difference Anomaly movingby Dekad",
"coverage": {
"description": "Global",
"bounding_box": {
"min_longitude": -180,
"min_latitude": -50,
"max_longitude": 180,
"max_latitude": 50
}
},
"period": {
"start_year": 1981,
"end_year": 2022
},
"coordinate_system": "EPSG:4326",
"spatial_resolution": "0.05deg",
"temporal_resolution": "dekad",
"format": "GeoTIFF",
"units": "mm",
"missing_value": "NaN",
"cdm_data_type": "GRID",
"s3_bucket_base": "s3://wbgdecinternal-ntl/climate/products/rainfall-differenceanomaly-chirps",
"notes": "This datasets developed by GOST/DECAT/DEC Data Group of The World Bank",
"references": "https://doi.org/10.1038/sdata.2015.66",
"timescales": {
"1_month": {
"description": "1-month rainfall difference anomaly",
"s3_path": "1month-movingby-dekad",
"naming_convention": "wld_cli_chirps_diffanom_1mo_yyyymmdd.tif"
}
}
}
}
150 changes: 150 additions & 0 deletions data/config/chirps_rainfall_ratioanomaly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"rainfall_ratioanomaly": {
"source": "Derived from CHIRPS data",
"source_link": "https://www.chc.ucsb.edu/data/chirps",
"description": "Ratio Anomaly movingby Dekad",
"coverage": {
"description": "Global",
"bounding_box": {
"min_longitude": -180,
"min_latitude": -50,
"max_longitude": 180,
"max_latitude": 50
}
},
"period": {
"start_year": 1981,
"end_year": 2022
},
"coordinate_system": "EPSG:4326",
"spatial_resolution": "0.05deg",
"temporal_resolution": "dekad",
"format": "GeoTIFF",
"units": "percent",
"missing_value": "NaN",
"cdm_data_type": "GRID",
"s3_bucket_base": "s3://wbgdecinternal-ntl/climate/products/rainfall-ratioanomaly-chirps",
"notes": "This datasets developed by GOST/DECAT/DEC Data Group of The World Bank",
"references": "https://doi.org/10.1038/sdata.2015.66",
"timescales": {
"dekad": {
"description": "Dekad rainfall ratio anomaly",
"s3_path": "dekad",
"naming_convention": "wld_cli_chirps_ratioanom_dekad_yyyymmdd.tif"
},
"1_month": {
"description": "1-month rainfall ratio anomaly",
"s3_path": "1month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_1mo_yyyymmdd.tif"
},
"3_month": {
"description": "3-month rainfall ratio anomaly",
"s3_path": "3month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_3mo_yyyymmdd.tif"
},
"6_month": {
"description": "6-month rainfall ratio anomaly",
"s3_path": "6month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_6mo_yyyymmdd.tif"
},
"9_month": {
"description": "9-month rainfall ratio anomaly",
"s3_path": "9month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_9mo_yyyymmdd.tif"
},
"12_month": {
"description": "12-month rainfall ratio anomaly",
"s3_path": "12month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_12mo_yyyymmdd.tif"
},
"24_month": {
"description": "24-month rainfall ratio anomaly",
"s3_path": "24month-movingby-dekad",
"naming_convention": "wld_cli_chirps_ratioanom_24mo_yyyymmdd.tif"
}
},
"symbology": [
{
"class": "20% and below",
"threshold": {
"min": 0,
"max": 20
},
"hex": "#d73027",
"rgb": "rgb(215,48,39)"
},
{
"class": "20 to 50%",
"threshold": {
"min": 20,
"max": 50
},
"hex": "#f46d43",
"rgb": "rgb(244,109,67)"
},
{
"class": "50 to 70%",
"threshold": {
"min": 50,
"max": 70
},
"hex": "#fdae61",
"rgb": "rgb(253,174,97)"
},
{
"class": "70 to 90%",
"threshold": {
"min": 70,
"max": 90
},
"hex": "#fee090",
"rgb": "rgb(254,224,144)"
},
{
"class": "90 to 110%",
"threshold": {
"min": 90,
"max": 110
},
"hex": "#ffffbf",
"rgb": "rgb(255,255,191)"
},
{
"class": "110 to 130%",
"threshold": {
"min": 110,
"max": 130
},
"hex": "#e0f3f8",
"rgb": "rgb(224,243,248)"
},
{
"class": "130 to 150%",
"threshold": {
"min": 130,
"max": 150
},
"hex": "#abd9e9",
"rgb": "rgb(171,217,233)"
},
{
"class": "150 to 180%",
"threshold": {
"min": 150,
"max": 180
},
"hex": "#74add1",
"rgb": "rgb(116,173,209)"
},
{
"class": "180% and above",
"threshold": {
"min": 180,
"max": 400
},
"hex": "#4575b4",
"rgb": "rgb(69,117,180)"
}
]
}
}
193 changes: 193 additions & 0 deletions data/config/chirps_spi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"spi": {
"source": "Derived from CHIRPS data",
"source_link": "https://www.chc.ucsb.edu/data/chirps",
"description": "Standardized Precipitation Index",
"coverage": {
"description": "Global",
"bounding_box": {
"min_longitude": -180,
"min_latitude": -50,
"max_longitude": 180,
"max_latitude": 50
}
},
"period": {
"start_year": 1981,
"end_year": 2022
},
"coordinate_system": "EPSG:4326",
"spatial_resolution": "0.05deg",
"temporal_resolution": "monthly",
"format": "GeoTIFF",
"units": "unitless",
"missing_value": "NaN",
"cdm_data_type": "GRID",
"s3_bucket_base": "s3://wbgdecinternal-ntl/climate/products/spi-chirps/geotiff",
"notes": "This datasets developed by GOST/DECAT/DEC Data Group of The World Bank",
"references": "https://doi.org/10.1038/sdata.2015.66",
"timescales": {
"1_month": {
"description": "1-month SPI",
"s3_path": "spi01",
"naming_convention": "wld_cli_chirps_spi01_yyyymmdd.tif"
},
"2_month": {
"description": "2-month SPI",
"s3_path": "spi02",
"naming_convention": "wld_cli_chirps_spi02_yyyymmdd.tif"
},
"3_month": {
"description": "3-month SPI",
"s3_path": "spi03",
"naming_convention": "wld_cli_chirps_spi03_yyyymmdd.tif"
},
"6_month": {
"description": "6-month SPI",
"s3_path": "spi06",
"naming_convention": "wld_cli_chirps_spi06_yyyymmdd.tif"
},
"9_month": {
"description": "9-month SPI",
"s3_path": "spi09",
"naming_convention": "wld_cli_chirps_spi09_yyyymmdd.tif"
},
"12_month": {
"description": "12-month SPI",
"s3_path": "spi12",
"naming_convention": "wld_cli_chirps_spi12_yyyymmdd.tif"
},
"18_month": {
"description": "18-month SPI",
"s3_path": "spi18",
"naming_convention": "wld_cli_chirps_spi18_yyyymmdd.tif"
},
"24_month": {
"description": "24-month SPI",
"s3_path": "spi24",
"naming_convention": "wld_cli_chirps_spi24_yyyymmdd.tif"
},
"36_month": {
"description": "36-month SPI",
"s3_path": "spi36",
"naming_convention": "wld_cli_chirps_spi36_yyyymmdd.tif"
},
"48_month": {
"description": "48-month SPI",
"s3_path": "spi48",
"naming_convention": "wld_cli_chirps_spi48_yyyymmdd.tif"
},
"60_month": {
"description": "60-month SPI",
"s3_path": "spi60",
"naming_convention": "wld_cli_chirps_spi60_yyyymmdd.tif"
},
"72_month": {
"description": "72-month SPI",
"s3_path": "spi72",
"naming_convention": "wld_cli_chirps_spi72_yyyymmdd.tif"
}
},
"symbology": [
{
"class": "Exceptionally Dry",
"threshold": {
"min": -3.09,
"max": -2.00
},
"hex": "#760005",
"rgb": "rgb(118, 0, 5)"
},
{
"class": "Extremely Dry",
"threshold": {
"min": -2.00,
"max": -1.50
},
"hex": "#ec0013",
"rgb": "rgb(236, 0, 19)"
},
{
"class": "Severely Dry",
"threshold": {
"min": -1.50,
"max": -1.20
},
"hex": "#ffa938",
"rgb": "rgb(255, 169, 56)"
},
{
"class": "Moderately Dry",
"threshold": {
"min": -1.20,
"max": -0.70
},
"hex": "#fdd28a",
"rgb": "rgb(253, 210, 138)"
},
{
"class": "Abnormally Dry",
"threshold": {
"min": -0.70,
"max": -0.50
},
"hex": "#fefe53",
"rgb": "rgb(254, 254, 83)"
},
{
"class": "Near Normal",
"threshold": {
"min": -0.50,
"max": 0.50
},
"hex": "#ffffff",
"rgb": "rgb(255, 255, 255)"
},
{
"class": "Abnormally Moist",
"threshold": {
"min": 0.50,
"max": 0.70
},
"hex": "#a2fd6e",
"rgb": "rgb(162, 253, 110)"
},
{
"class": "Moderately Moist",
"threshold": {
"min": 0.70,
"max": 1.20
},
"hex": "#00b44a",
"rgb": "rgb(0, 180, 74)"
},
{
"class": "Very Moist",
"threshold": {
"min": 1.20,
"max": 1.50
},
"hex": "#008180",
"rgb": "rgb(0, 129, 128)"
},
{
"class": "Extremely Moist",
"threshold": {
"min": 1.50,
"max": 2.00
},
"hex": "#2a23eb",
"rgb": "rgb(42, 35, 235)"
},
{
"class": "Exceptionally Moist",
"threshold": {
"min": 2.00,
"max": 3.09
},
"hex": "#a21fec",
"rgb": "rgb(162, 31, 236)"
}
]
}
}
Loading

0 comments on commit 36bee34

Please sign in to comment.