Skip to content

Commit

Permalink
Create/Add geoparquet files
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 3, 2023
1 parent d782400 commit 2a0549c
Show file tree
Hide file tree
Showing 16 changed files with 4,038 additions and 3,930 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/geoparquet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
stac geoparquet-items create disasters/ disasters/stac-items.geoparquet --collection disasters/collection.json
stac geoparquet-items create education/bloom/ education/bloom/stac-items.geoparquet --collection education/bloom/collection.json
stac geoparquet-items create fusion/14N/29E-188N/ fusion/14N/29E-188N/stac-items.geoparquet --collection fusion/14N/29E-188N/collection.json
stac geoparquet-items create open-skysat-data/ open-skysat-data/stac-items.geoparquet --collection open-skysat-data/collection.json
stac geoparquet-items create spacenet7/sn7_test_source/ spacenet7/sn7_test_source/stac-items.geoparquet --collection spacenet7/sn7_test_source/collection.json
stac geoparquet-items create spacenet7/sn7_train_labels/ spacenet7/sn7_train_labels/stac-items.geoparquet --collection spacenet7/sn7_train_labels/collection.json
stac geoparquet-items create spacenet7/sn7_train_source/ spacenet7/sn7_train_source/stac-items.geoparquet --collection spacenet7/sn7_train_source/collection.json
20 changes: 20 additions & 0 deletions .github/workflows/geoparquet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Create GeoParquet files

on:
push:
tags: true

jobs:
create:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install stactools-geoparquet-items
- run: cd stac
- run: bash ../.github/workflows/geoparquet.sh
- uses: stefanzweifel/[email protected]
with:
commit_message: Update GeoParquet files
122 changes: 66 additions & 56 deletions stac/disasters/collection.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,27 @@
{
"stac_version": "1.0.0",
"stac_extensions": [],
"type": "Collection",
"id": "planet-disaster-data",
"title": "Planet Disaster Data",
"stac_version": "1.0.0",
"description": "[Planet Disaster Data](https://www.planet.com/disasterdata/) makes imagery available directly to the public, volunteers, humanitarian organizations, and other coordinating bodies in support of the International Charter for Space and Major Disasters. Data is released for individual disaster events, providing a 30 day window pre- and post-disaster. Imagery is provided under Creative Commons licenses, free of charge, with either CC-BY-SA or CC-BY-NC. This STAC catalog provides fully public access of a very small subset of the imagery, as a proof of concept.",
"keywords": [
"disaster",
"open"
],
"summaries": {
"platform": [
"SS02",
"SSC1",
"101c"
],
"constellation": [
"skysat",
"planetscope"
],
"eo:cloud_cover": {
"maximum": 24,
"minimum": 0
},
"eo:gsd": {
"maximum": 3.7,
"minimum": 0.9
},
"view:off_nadir": {
"maximum": 27.3,
"minimum": 0.2
"links": [
{
"rel": "self",
"href": "./collection.json",
"type": "application/json"
},
"view:sun_azimuth": {
"maximum": 231.9,
"minimum": 122
{
"rel": "root",
"href": "../catalog.json",
"type": "application/json",
"title": "Planet Root STAC Catalog"
},
"view:sun_elevation": {
"maximum": 65.1,
"minimum": 56.3
{
"rel": "child",
"href": "./hurricane-harvey/catalog.json",
"title": "Hurricane Harvey"
}
},
],
"title": "Planet Disaster Data",
"extent": {
"spatial": {
"bbox": [
Expand All @@ -60,49 +42,77 @@
]
}
},
"links": [
{
"href": "../catalog.json",
"rel": "root",
"type": "application/json"
},
{
"href": "./hurricane-harvey/catalog.json",
"rel": "child",
"title": "Hurricane Harvey"
},
{
"href": "./collection.json",
"rel": "self",
"type": "application/json"
}
],
"license": "CC-BY-SA-4.0",
"keywords": [
"disaster",
"open"
],
"providers": [
{
"description": "Contact Planet at https://www.planet.com/contact-sales/",
"name": "Planet Labs PBC",
"description": "Contact Planet at https://www.planet.com/contact-sales/",
"roles": [
"producer",
"processor"
],
"url": "https://www.planet.com"
},
{
"description": "The Planet Disaster Data Team has released this data as CC-BY-SA-4.0 to help disaster response",
"name": "Planet Disaster Team <[email protected]>",
"description": "The Planet Disaster Data Team has released this data as CC-BY-SA-4.0 to help disaster response",
"roles": [
"licensor"
],
"url": "https://www.planet.com/disasterdata/"
},
{
"description": "Hosting is done on a GCP storage bucket owned by the Planet Disaster Data team",
"name": "Google Cloud Platform",
"description": "Hosting is done on a GCP storage bucket owned by the Planet Disaster Data team",
"roles": [
"host"
],
"url": "https://storage.googleapis.com/pdd-stac/"
}
]
],
"summaries": {
"platform": [
"SS02",
"SSC1",
"101c"
],
"constellation": [
"skysat",
"planetscope"
],
"eo:cloud_cover": {
"minimum": 0,
"maximum": 24
},
"eo:gsd": {
"minimum": 0.9,
"maximum": 3.7
},
"view:off_nadir": {
"minimum": 0.2,
"maximum": 27.3
},
"view:sun_azimuth": {
"minimum": 122,
"maximum": 231.9
},
"view:sun_elevation": {
"minimum": 56.3,
"maximum": 65.1
}
},
"assets": {
"geoparquet-items": {
"href": "disasters/stac-items.geoparquet",
"type": "application/x-parquet",
"title": "GeoParquet STAC Items",
"roles": [
"stac-items"
]
}
}
}
Binary file added stac/disasters/stac-items.geoparquet
Binary file not shown.
23 changes: 19 additions & 4 deletions stac/education/bloom/collection.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"type": "Collection",
"id": "Panama Bloom",
"title": "Panama Bloom",
"stac_version": "1.0.0",
"description": "This collection consists of two Planetscope scenes to be used in an lab exercise from [Planet University](https://university.planet.com/) which is designed to give new users practical experience performing imagery analysis on Planet data. Both scenes are of Monumento Natural Barro Colorado, in Panama from early 2022 and together they show the island pre and mid bloom of a particularly striking tree species.",
"links": [
{
"rel": "self",
"href": "./collection.json",
"type": "application/json"
},
{
"rel": "root",
"href": "../../catalog.json",
"type": "application/json"
"type": "application/json",
"title": "Planet Root STAC Catalog"
},
{
"rel": "item",
Expand All @@ -28,7 +33,7 @@
"type": "application/json"
}
],
"stac_extensions": [],
"title": "Panama Bloom",
"extent": {
"spatial": {
"bbox": [
Expand All @@ -49,5 +54,15 @@
]
}
},
"license": "CC-BY-SA-4.0"
"license": "CC-BY-SA-4.0",
"assets": {
"geoparquet-items": {
"href": "education/bloom/stac-items.geoparquet",
"type": "application/x-parquet",
"title": "GeoParquet STAC Items",
"roles": [
"stac-items"
]
}
}
}
Binary file added stac/education/bloom/stac-items.geoparquet
Binary file not shown.
Loading

0 comments on commit 2a0549c

Please sign in to comment.