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 file extension #9

Merged
merged 6 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added

- `file` extension

## [0.1.3] - 2022-01-03

### Added
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
- Owner: @gadomski
- Dataset homepage: http://github.com/stactools-packages/noaa-c-cap
- STAC extensions used:
- [proj](https://github.com/stac-extensions/projection/)
- [label](https://github.com/stac-extensions/label/)
- [label](https://github.com/stac-extensions/label)
- [item-assets](https://github.com/stac-extensions/item-assets)
- [file](https://github.com/stac-extensions/file)
- [proj](https://github.com/stac-extensions/projection)
- [scientific](https://github.com/stac-extensions/scientific)
- Extra fields: None

Create STAC Items and Collections for NOAA C-CAP data.
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RUN pip install -r requirements-dev.txt \
&& rm -r /opt/conda/lib/python$PYTHON_VERSION/site-packages/$DOCKER_NAMESPACE_PACKAGE_DIR

COPY . ./
RUN pip install -e .
RUN pip uninstall -y pystac && pip install -e .
161 changes: 160 additions & 1 deletion examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"rel": "root",
"href": "./collection.json",
"type": "application/json"
"type": "application/json",
"title": "C-CAP Regional Land Cover and Change"
},
{
"rel": "item",
Expand Down Expand Up @@ -77,6 +78,164 @@
"item_assets": {
"data": {
"type": "image/tiff; application=geotiff",
"file:values": [
{
"values": [
0
],
"summary": "Background"
},
{
"values": [
1
],
"summary": "Unclassified (Cloud, Shadow, etc)"
},
{
"values": [
2
],
"summary": "High Intensity Developed"
},
{
"values": [
3
],
"summary": "Medium Intensity Developed"
},
{
"values": [
4
],
"summary": "Low Intensity Developed"
},
{
"values": [
5
],
"summary": "Developed Open Space"
},
{
"values": [
6
],
"summary": "Cultivated Land"
},
{
"values": [
7
],
"summary": "Pasture/Hay"
},
{
"values": [
8
],
"summary": "Grassland"
},
{
"values": [
9
],
"summary": "Deciduous Forest"
},
{
"values": [
10
],
"summary": "Evergreen Forest"
},
{
"values": [
11
],
"summary": "Mixed Forest"
},
{
"values": [
12
],
"summary": "Scrub/Shrub"
},
{
"values": [
13
],
"summary": "Palustrine Forested Wetland"
},
{
"values": [
14
],
"summary": "Palustrine Scrub/Shrub Wetland"
},
{
"values": [
15
],
"summary": "Palustrine Emergent Wetland"
},
{
"values": [
16
],
"summary": "Estuarine Forested Wetland"
},
{
"values": [
17
],
"summary": "Estuarine Scrub/Shrub Wetland"
},
{
"values": [
18
],
"summary": "Estuarine Emergent Wetland"
},
{
"values": [
19
],
"summary": "Unconsolidated Shore"
},
{
"values": [
20
],
"summary": "Bare Land"
},
{
"values": [
21
],
"summary": "Open Water"
},
{
"values": [
22
],
"summary": "Palustrine Aquatic Bed"
},
{
"values": [
23
],
"summary": "Estuarine Aquatic Bed"
},
{
"values": [
24
],
"summary": "Tundra"
},
{
"values": [
25
],
"summary": "Snow/Ice"
}
],
"roles": [
"data"
]
Expand Down
Loading