Skip to content

Commit

Permalink
Better integrate example
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Apr 23, 2021
1 parent ee8022b commit b74d5b8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 28 deletions.
6 changes: 6 additions & 0 deletions examples/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
"type": "application/json",
"title": "Collection with no items (standalone)"
},
{
"rel": "child",
"href": "./collection-only/collection-with-schemas.json",
"type": "application/json",
"title": "Collection with no items (standalone with JSON Schemas)"
},
{
"rel": "item",
"href": "./collectionless-item.json",
Expand Down
46 changes: 19 additions & 27 deletions examples/collection-only/collection-with-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
],
"id": "S2",
"id": "sentinel-2",
"type": "Collection",
"title": "Level 1C Sentinel-2 images",
"title": "Sentinel-2 MSI: MultiSpectral Instrument, Level-2A",
"description": "The SENTINEL-2 mission is a land monitoring constellation of two satellites each equipped with a MSI (Multispectral Imager) instrument covering 13 spectral bands providing high resolution optical imagery (i.e., 10m, 20m, 60 m) every 10 days with one satellite and 5 days with two satellites",
"license": "proprietary",
"extent": {
Expand All @@ -32,14 +32,12 @@
},
"links": [
{
"rel": "self",
"type": "application/json",
"href": "https://tamn.snapplanet.io/collections/S2"
"rel": "parent",
"href": "../catalog.json"
},
{
"rel": "root",
"type": "application/json",
"href": "https://tamn.snapplanet.io"
"href": "../catalog.json"
},
{
"rel": "license",
Expand Down Expand Up @@ -73,67 +71,61 @@
],
"summaries": {
"datetime": {
"minimum": "2017-04-12T02:57:21.459000Z",
"maximum": "2021-04-22T11:30:12.767000Z"
},
"collection": {
"type": "string",
"const": "sentinel-2",
"title": "Sentinel 2",
"count": 6613407
"minimum": "2017-04-12T02:57:21Z",
"maximum": "2021-04-22T11:30:12Z"
},
"instruments": {
"type": "string",
"const": "msi",
"title": "MSI",
"title": "Multispectral Intrument",
"count": 6613431
},
"landcover": {
"resto:landcover": {
"type": "string",
"oneOf": [
{
"const": "landcover:cultivated",
"const": "cultivated",
"title": "Cultivated",
"count": 490750
},
{
"const": "landcover:desert",
"const": "desert",
"title": "Desert",
"count": 543120
},
{
"const": "landcover:flooded",
"const": "flooded",
"title": "Flooded",
"count": 5187
},
{
"const": "landcover:forest",
"const": "forest",
"title": "Forest",
"count": 767807
},
{
"const": "landcover:herbaceous",
"const": "herbaceous",
"title": "Herbaceous",
"count": 674281
},
{
"const": "landcover:ice",
"const": "ice",
"title": "Ice",
"count": 231285
},
{
"const": "landcover:urban",
"const": "urban",
"title": "Urban",
"count": 1219
},
{
"const": "landcover:water",
"const": "water",
"title": "Water",
"count": 2303314
}
]
},
"location": {
"resto:location": {
"type": "string",
"oneOf": [
{
Expand Down Expand Up @@ -178,7 +170,7 @@
}
]
},
"season": {
"resto:season": {
"type": "integer",
"oneOf": [
{
Expand Down
7 changes: 6 additions & 1 deletion examples/collection-only/collection.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"type": "Collection",
"stac_version": "1.0.0-rc.2",
"stac_extensions": [],
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
"https://stac-extensions.github.io/projection/v1.0.0/schema.json",
"https://stac-extensions.github.io/scientific/v1.0.0/schema.json",
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
],
"id": "sentinel-2",
"title": "Sentinel-2 MSI: MultiSpectral Instrument, Level-1C",
"description": "Sentinel-2 is a wide-swath, high-resolution, multi-spectral\nimaging mission supporting Copernicus Land Monitoring studies,\nincluding the monitoring of vegetation, soil and water cover,\nas well as observation of inland waterways and coastal areas.\n\nThe Sentinel-2 data contain 13 UINT16 spectral bands representing\nTOA reflectance scaled by 10000. See the [Sentinel-2 User Handbook](https://sentinel.esa.int/documents/247904/685211/Sentinel-2_User_Handbook)\nfor details. In addition, three QA bands are present where one\n(QA60) is a bitmask band with cloud mask information. For more\ndetails, [see the full explanation of how cloud masks are computed.](https://sentinel.esa.int/web/sentinel/technical-guides/sentinel-2-msi/level-1c/cloud-masks)\n\nEach Sentinel-2 product (zip archive) may contain multiple\ngranules. Each granule becomes a separate Earth Engine asset.\nEE asset ids for Sentinel-2 assets have the following format:\nCOPERNICUS/S2/20151128T002653_20151128T102149_T56MNN. Here the\nfirst numeric part represents the sensing date and time, the\nsecond numeric part represents the product generation date and\ntime, and the final 6-character string is a unique granule identifier\nindicating its UTM grid reference (see [MGRS](https://en.wikipedia.org/wiki/Military_Grid_Reference_System)).\n\nFor more details on Sentinel-2 radiometric resoltuon, [see this page](https://earth.esa.int/web/sentinel/user-guides/sentinel-2-msi/resolutions/radiometric).\n",
Expand Down
1 change: 1 addition & 0 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"id": "simple-collection",
"type": "Collection",
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
],
"stac_version": "1.0.0-rc.2",
Expand Down

0 comments on commit b74d5b8

Please sign in to comment.