Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nldas prod config #168

Merged
merged 4 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions ingestion-data/production/collections/nldas2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"id": "nldas2",
"type": "Collection",
"title": "NLDAS2 precipitation",
"links": [],
"description": "NLDAS-2 provides a fine-scale (1 km) meteorological forcing (precipitation) in both retrospective and near real-time over North and Central America, including Alaska, Hawaii, and Puerto Rico, by leveraging high-quality gauge, satellite, and model datasets through advanced data assimilation methods. Read more: https://ldas.gsfc.nasa.gov/nldas/v2",
"extent": {
"spatial": {
"bbox": [
[
-41.2,
-82.6,
9.8,
-59
]
]
},
"temporal": {
"interval": [
[
"2001-01-01T00:00:00Z",
"2023-06-01T00:00:00Z"
]
]
}
},
"license": "MIT",
"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"
],
"assets": {
"thumbnail": {
"href": "https://thumbnails.openveda.cloud/nldas-cover.png",
"type": "image/jpeg",
"roles": ["thumbnail"],
"title": "Thumbnail",
"description": "Photo by [LDAS-NASA](https://eoimages.gsfc.nasa.gov/images/imagerecords/151000/151897/mississippi_oli_2023259_lrg.jpg) (Landsat 8 — OLI image of the Mississippi River below Memphis, Tennessee on September 16, 2023 at near record low water levels, limiting barge shipments, threatening drinking water supplies, agriculture, and ecosystems.)"
}
},
"item_assets": {
"cog_default": {
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": [
"data",
"layer"
],
"title": "Default COG Layer",
"description": "Cloud optimized default layer to display on map"
}
},
"dashboard:is_periodic": false,
"dashboard:time_density": "month",
"stac_version": "1.0.0",
"renders": {
"dashboard": {
"colormap": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the veda-config dashboard preview, the collections are rendered with magma

    sourceParams:
      colormap_name: magma
      rescale:
        - 0
        - 200
      nodata: 0

https://github.com/NASA-IMPACT/veda-config/pull/441/files#diff-3fd4b26d4ca66c030eec51a4fc0506e4e1f6fe620649d619bcb2ee43df3e62a7R30

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anayeaye does this look good?

{
    "id": "nldas2",
    "type": "Collection",
    "title": "NLDAS-2 Precipitation Forcing Dataset",
    "links": [],
    "description": "NLDAS-2 provides a fine-scale (1 km) meteorological forcing (precipitation) in both retrospective and near real-time over North and Central America, including Alaska, Hawaii, and Puerto Rico, by leveraging high-quality gauge, satellite, and model datasets through advanced data assimilation methods. Read more: https://ldas.gsfc.nasa.gov/nldas/v2",
    "extent": {
        "spatial": {
            "bbox": [
                [
                    -41.2,
                    -82.6,
                    9.8,
                    -59
                ]
            ]
        },
        "temporal": {
            "interval": [
                [
                    "2001-01-01T00:00:00Z",
                    "2023-06-01T00:00:00Z"
                ]
            ]
        }
    },
    "license": "MIT",
    "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"
    ],
    "assets": {
        "thumbnail": {
            "href": "https://thumbnails.openveda.cloud/nldas-cover.png",
            "type": "image/jpeg",
            "roles": [ "thumbnail" ],
            "title": "Thumbnail",
            "description": "Photo by [LDAS-NASA](https://eoimages.gsfc.nasa.gov/images/imagerecords/151000/151897/mississippi_oli_2023259_lrg.jpg) (Landsat 8 — OLI image of the Mississippi River below Memphis, Tennessee on September 16, 2023 at near record low water levels, limiting barge shipments, threatening drinking water supplies, agriculture, and ecosystems.)"
        }
    },
    "item_assets": {
        "cog_default": {
            "type": "image/tiff; application=geotiff; profile=cloud-optimized",
            "roles": [
                "data",
                "layer"
            ],
            "title": "Default COG Layer",
            "description": "Cloud optimized default layer to display on map"
        }
    },
    "dashboard:is_periodic": false,
    "dashboard:time_density": "month",
    "stac_version": "1.0.0",
    "renders": {
        "dashboard": {
            "assets": [
                "cog_default"
            ],
            "colormap_name": "magma",
            "rescale": [
                [
                    0,
                    200
                ]
            ]
        }
    },
    "providers": [
        {
            "name": "NLDAS",
            "url": "https://ldas.gsfc.nasa.gov/nldas",
            "roles": [
                "producer",
                "processor",
                "licensor"
            ]
        },
        {
            "name": "NASA VEDA",
            "url": "https://www.earthdata.nasa.gov/dashboard/",
            "roles": [
                "host"
            ]
        }
    ]
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slesaad I'm comparing to a collection in prod and maybe also bidx is needed? Plus a we're using a pretty default title it looks like. But think bidx is not needed and the title is certainly optional

curl -X 'GET' \
  'https://openveda.cloud/api/stac/collections/nightlights-hd-1band' \
  -H 'accept: application/json' | jq .renders

{
  "dashboard": {
    "bidx": [
      1
    ],
    "title": "VEDA Dashboard Render Parameters",
    "assets": [
      "cog_default"
    ],
    "rescale": [
      [
        0,
        255
      ]
    ],
    "colormap_name": "inferno"
  }
}

"1": [
120,
120,
120
],
"2": [
130,
65,
0
],
"3": [
66,
207,
56
],
"4": [
245,
239,
0
],
"5": [
241,
89,
32
],
"6": [
168,
0,
0
],
"7": [
0,
143,
201
]
},
"bidx": [
1
],
"unscale": false,
"resampling": "nearest",
"max_size": 1024,
"return_mask": true,
"assets": [
"cog_default"
],
"title": "VEDA Dashboard Render Parameters"
}
},
"providers": [
{
"name": "NLDAS",
"url": "https://ldas.gsfc.nasa.gov/nldas",
"roles": [
"producer",
"processor",
"licensor"
]
},
{
"name": "NASA VEDA",
"url": "https://www.earthdata.nasa.gov/dashboard/",
"roles": [
"host"
]
}
]
}
125 changes: 125 additions & 0 deletions ingestion-data/production/collections/nldas3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"id": "nldas3",
"type": "Collection",
"title": "NLDAS3 precipitation",
"links": [],
"description": "NLDAS-3 provides a fine-scale (1 km) meteorological forcing (precipitation) in both retrospective and near real-time over North and Central America, including Alaska, Hawaii, and Puerto Rico, by leveraging high-quality gauge, satellite, and model datasets through advanced data assimilation methods. Read more: https://ldas.gsfc.nasa.gov/nldas/v3",
"extent": {
"spatial": {
"bbox": [
[
-41.2,
-82.6,
9.8,
-59
]
]
},
"temporal": {
"interval": [
[
"2001-01-01T00:00:00Z",
"2023-06-01T00:00:00Z"
]
]
}
},
"license": "MIT",
"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"
],
"assets": {
"thumbnail": {
"href": "https://thumbnails.openveda.cloud/nldas-cover.png",
"type": "image/jpeg",
"roles": ["thumbnail"],
"title": "Thumbnail",
"description": "Photo by [LDAS-NASA](https://eoimages.gsfc.nasa.gov/images/imagerecords/151000/151897/mississippi_oli_2023259_lrg.jpg) (Landsat 8 — OLI image of the Mississippi River below Memphis, Tennessee on September 16, 2023 at near record low water levels, limiting barge shipments, threatening drinking water supplies, agriculture, and ecosystems.)"
}
},
"item_assets": {
"cog_default": {
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": [
"data",
"layer"
],
"title": "Default COG Layer",
"description": "Cloud optimized default layer to display on map"
}
},
"dashboard:is_periodic": false,
"dashboard:time_density": "month",
"stac_version": "1.0.0",
"renders": {
"dashboard": {
"colormap": {
"1": [
120,
120,
120
],
"2": [
130,
65,
0
],
"3": [
66,
207,
56
],
"4": [
245,
239,
0
],
"5": [
241,
89,
32
],
"6": [
168,
0,
0
],
"7": [
0,
143,
201
]
},
"bidx": [
1
],
"unscale": false,
"resampling": "nearest",
"max_size": 1024,
"return_mask": true,
"assets": [
"cog_default"
],
"title": "VEDA Dashboard Render Parameters"
}
},
"providers": [
{
"name": "NLDAS",
"url": "https://ldas.gsfc.nasa.gov/nldas",
"roles": [
"producer",
"processor",
"licensor"
]
},
{
"name": "NASA VEDA",
"url": "https://www.earthdata.nasa.gov/dashboard/",
"roles": [
"host"
]
}
]
}
9 changes: 9 additions & 0 deletions ingestion-data/production/discovery-items/nldas2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bucket": "veda-data-store",
"collection": "nldas2",
"datetime_range": "month",
"discovery": "s3",
"filename_regex": ".*_\\d{6}.tif$",
"id_template": "{}",
"prefix": "nldas2/"
}
9 changes: 9 additions & 0 deletions ingestion-data/production/discovery-items/nldas3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bucket": "veda-data-store",
"collection": "nldas3",
"datetime_range": "month",
"discovery": "s3",
"filename_regex": ".*_\\d{6}.tif$",
"id_template": "{}",
"prefix": "nldas3/"
}
9 changes: 9 additions & 0 deletions ingestion-data/production/transfer-config/nldas2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"collection": "nldas2",
"filename_regex": ".*_\\d{6}.tif$",
"origin_bucket": "veda-data-store-staging",
"origin_prefix": "EIS/nldas2monthly/",
"target_bucket": "veda-data-store",
"cogify": false,
"dry_run": false
}
9 changes: 9 additions & 0 deletions ingestion-data/production/transfer-config/nldas3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"collection": "nldas3",
"origin_prefix": "EIS/nldas3monthly/",
"origin_bucket": "veda-data-store-staging",
"filename_regex": ".*_\\d{6}.tif$",
"target_bucket": "veda-data-store",
"cogify": false,
"dry_run": false
}
Loading