Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anayeaye committed Sep 10, 2024
1 parent e7d90e5 commit 73d097b
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 66 deletions.
51 changes: 47 additions & 4 deletions ingestion-data/production/collections/nlcd-annual-conus.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"license": "CC0-1.0",
"description": "National Land Cover Database Land Use Land Cover Classification datasets for CONUS 2001-2021",
"item_assets": {
"cog_default": {
"landcover": {
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": [
"data",
"layer"
],
"title": "Default COG Layer",
"description": "Cloud optimized default layer to display on map"
"title": "Land Cover",
"description": "National Land Cover Database (NLCD) annual land cover data for the United States."
}
},
"stac_version": "1.0.0",
Expand All @@ -48,6 +48,7 @@
}
},
"stac_extensions": [
"https://stac-extensions.github.io/render/v1.0.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
],
"providers": [
Expand All @@ -58,5 +59,47 @@
],
"url": "https://www.earthdata.nasa.gov/dashboard/"
}
]
],
"renders": {
"dashboard": {
"assets": [
"landcover"
],
"colormap": {
"0": "#00BFFF",
"11": "#486DA2",
"12": "#E7EFFC",
"21": "#E1CDCE",
"22": "#DC9881",
"23": "#F10100",
"24": "#AB0101",
"31": "#B3AFA4",
"41": "#6BA966",
"42": "#1D6533",
"43": "#BDCC93",
"51": "#B29C46",
"52": "#D1BB82",
"71": "#EDECCD",
"72": "#D0D181",
"73": "#A4CC51",
"74": "#82BA9D",
"81": "#DDD83E",
"82": "#AE7229",
"90": "#BBD7ED",
"95": "#71A4C1"
},
"nodata": 0,
"rescale": [
[
0,
255
]
],
"bidx": [
1
],
"title": "VEDA Dashboard Render Parameters",
"resampling": "nearest"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
"license": "CC0-1.0",
"description": "National Land Cover Database Land Use Land Cover Classification new urbanization 2001-2021",
"item_assets": {
"cog_default": {
"landcover": {
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": [
"data",
"layer"
],
"title": "Default COG Layer",
"description": "Cloud optimized default layer to display on map"
"title": "NLCD Urbanization",
"description": "National Land Cover Database newly classified urban land use between 2001-2021"
}
},
"stac_version": "1.0.0",
"datetime_range": "year",
"dashboard:is_periodic": false,
"dashboard:time_density": "year",
"dashboard:time_density": null,
"assets": {
"thumbnail": {
"title": "Thumbnail",
Expand All @@ -45,6 +45,7 @@
}
},
"stac_extensions": [
"https://stac-extensions.github.io/render/v1.0.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
],
"providers": [
Expand Down
62 changes: 9 additions & 53 deletions ingestion-data/production/dataset-config/nlcd-annual-conus.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@
"discovery_items": [
{
"discovery": "s3",
"cogify": false,
"upload": false,
"dry_run": false,
"prefix": "NLCD/",
"dry_run": true,
"prefix": "nlcd-annual-conus/",
"bucket": "veda-data-store",
"filename_regex": "(.*)nlcd_(.*).tif$",
"use_multithreading": false
"filename_regex": "^(.*)nlcd_\\d{4}_cog.tif$"
}
],
"data_type": "cog",
Expand Down Expand Up @@ -88,53 +85,12 @@
0,
255
]
]
},
"legend": {
"type": "categorical",
"min": "0",
"max": "255",
"stops": [
{
"color": "#E1CDCE",
"label": "Urban"
},
{
"color": "#DC9881"
},
{
"color": "#F10100"
},
{
"color": "#AB0101"
},
{
"color": "#6BA966",
"label": "Vegetation"
},
{
"color": "#1D6533"
},
{
"color": "#BDCC93"
},
{
"color": "#D1BB82"
},
{
"color": "#EDECCD"
},
{
"color": "#D0D181"
},
{
"color": "#A4CC51"
},
{
"color": "#AE7229",
"label": "Agriculture"
}
]
],
"bidx": [
1
],
"title": "VEDA Dashboard Render Parameters",
"resampling": "nearest"
}
},
"assets": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@
"cogify": false,
"upload": false,
"dry_run": false,
"prefix": "NLCD/",
"prefix": "nlcd-new-urbanization/",
"bucket": "veda-data-store",
"filename_regex": "(.*)nlcd_urbanization_2001_2021_cog.tif$",
"use_multithreading": false
}
],
"data_type": "cog",
"datetime_range": "year"
"providers": [
{
"name": "NASA VEDA",
"roles": [
"host"
],
"url": "https://www.earthdata.nasa.gov/dashboard/"
}
]
}
15 changes: 14 additions & 1 deletion ingestion-data/production/discovery-items/nlcd-annual-conus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@
"collection": "nlcd-annual-conus",
"prefix": "nlcd-annual-conus/",
"bucket": "veda-data-store",
"filename_regex": "^(.*)nlcd_\\d{4}_cog.tif$"
"filename_regex": "^(.*).tif$",
"id_template": "{}",
"datetime_range": "year",
"discovery": "s3",
"assets": {
"landcover": {
"roles": [
"data",
"layer"
],
"title": "Land Cover",
"description": "National Land Cover Database (NLCD) annual land cover data for the United States."
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,16 @@
"prefix": "nlcd-new-urbanization/",
"bucket": "veda-data-store",
"filename_regex": "^(.*)nlcd_urbanization_2001_2021_cog.tif$",
"dry_run": true
"id_template": "{}",
"discovery": "s3",
"assets": {
"landcover": {
"roles": [
"data",
"layer"
],
"title": "NLCD Urbanization",
"description": "National Land Cover Database newly classified urban land use between 2001-2021"
}
}
}

0 comments on commit 73d097b

Please sign in to comment.