-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b20ff13
commit bd96960
Showing
3 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
}, | ||
), | ||
) |