Skip to content

Commit

Permalink
Add mrd collection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Mar 14, 2024
1 parent b20ff13 commit bd96960
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 0 deletions.
85 changes: 85 additions & 0 deletions collections/dep_s2s1_mrd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"type": "Collection",
"id": "dep_s2s1_mrd",
"stac_version": "1.0.0",
"description": "Mineral resource detection in Fiji.",
"links": [
{
"rel": "root",
"href": "https://stac.staging.digitalearthpacific.org/collections/dep_s2s1_mrd",
"type": "application/json",
"title": "Mineral Resource Detection"
},
{
"rel": "self",
"href": "https://stac.staging.digitalearthpacific.org/collections/dep_s2s1_mrd",
"type": "application/json"
}
],
"title": "Mineral Resource Detection",
"extent": {
"spatial": {
"bbox": [
[
-180,
-90,
180,
90
]
]
},
"temporal": {
"interval": [
[
"1980-01-01T00:00:00Z",
null
]
]
}
},
"license": "CC-BY-4.0",
"keywords": [
"Sentinel-1",
"Sentinel-2",
"Land-use/Land-cover",
"Pacific"
],
"providers": [
{
"name": "Digital Earth Pacific",
"roles": [
"processor",
"host"
],
"url": "https://digitalearthpacific.org"
}
],
"summaries": {
"gsd": [
10
],
"eo:bands": [
{
"name": "class",
"common_name": "classification",
"description": "Land use classification",
"min": 0,
"max": 8,
"nodata": 255
},
{
"name": "proba",
"common_name": "probability",
"description": "Probability of land use classification",
"min": 0,
"max": 100,
"nodata": 255
}
],
"platform": [
"Sentinel-1",
"Sentinel-2",
"esa-30m"
]
}
}
2 changes: 2 additions & 0 deletions create_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from dep_collections.dep_s1_mosaic import dep_s1_mosaic
from dep_collections.dep_s2_geomad import dep_s2_geomad
from dep_collections.dep_s2_mangroves import dep_s2_mangroves
from dep_collections.dep_s2s1_mrd import dep_s2s1_mrd

STAGING_URL = "https://stac.staging.digitalearthpacific.org"
OUT_FOLDER = "collections"
Expand All @@ -20,6 +21,7 @@
dep_s2_geomad,
dep_s2_mangroves,
dep_s1_mosaic,
dep_s2s1_mrd
)

for collection in all_collections:
Expand Down
55 changes: 55 additions & 0 deletions dep_collections/dep_s2s1_mrd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
from pystac import (
Collection,
Extent,
SpatialExtent,
TemporalExtent,
Provider,
Summaries,
)
from datetime import datetime, timezone

extent = Extent(
SpatialExtent([[-180, -90, 180, 90]]),
TemporalExtent([[datetime(1980, 1, 1, 0, 0, 0, 0, timezone.utc), None]]),
)

# Create a Collection
dep_s2s1_mrd = Collection(
id="dep_s2s1_mrd",
description="Mineral resource detection in Fiji.",
title="Mineral Resource Detection",
extent=extent,
license="CC-BY-4.0",
keywords=["Sentinel-1", "Sentinel-2", "Land-use/Land-cover", "Pacific"],
providers=[
Provider(
name="Digital Earth Pacific",
roles=["processor", "host"],
url="https://digitalearthpacific.org",
),
],
summaries=Summaries(
{
"gsd": [10],
"eo:bands": [
{
"name": "class",
"common_name": "classification",
"description": "Land use classification",
"min": 0,
"max": 8,
"nodata": 255,
},
{
"name": "proba",
"common_name": "probability",
"description": "Probability of land use classification",
"min": 0,
"max": 100,
"nodata": 255,
},
],
"platform": ["Sentinel-1", "Sentinel-2", "esa-30m"],
},
),
)

0 comments on commit bd96960

Please sign in to comment.