Skip to content

Commit

Permalink
Deprecated s2:product_type in favor of product:type #2 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Jun 10, 2024
1 parent cec60ef commit 1f27ab9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Deprecated

- `s2:product_type` in favor of `product:type`
- `s2:snow_ice_percentage` in favor of `eo:snow_cover`
- `s2:generation_time` in favor of `processing:datetime`

- `s2:processing_baseline` in favor of `processing:version`

### Removed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ The fields in the table below can be used in these parts of STAC documents:
| s2:datatake_id | string | Datatake Identifier |
| s2:product_uri | string | Product URI |
| s2:datastrip_id | string | Datastrip Identifier |
| s2:product_type | string | Product Type |
| s2:datatake_type | string | Datatake Type |
| s2:reflectance_conversion_factor | number | Reflectance Conversion Factor |
| s2:water_percentage | number | Water Percentage |
Expand All @@ -52,6 +51,7 @@ The fields in the table below can be used in these parts of STAC documents:
| s2:high_proba_clouds_percentage | number | High Probability Clouds Percentage |
| s2:medium_proba_clouds_percentage | number | Medium Probability Clouds Percentage |
| s2:saturated_defective_pixel_percentage | number | Saturated Defective Pixel Percentage |
| s2:product_type | string | **DEPRECATED** in favor of `product:type`. Product Type |
| s2:snow_ice_percentage | number | **DEPRECATED** in favor of `eo:snow_cover`. Snow and Ice Percentage |
| s2:generation_time | datetime | **DEPRECATED** in favor of `processing:datetime`. Generation Time |
| s2:processing_baseline | string | **DEPRECATED** in favor of `processing:version`. [Processing Baseline](https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-2-msi/processing-baseline) |
Expand Down
5 changes: 3 additions & 2 deletions examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
"s2:datatake_id": "GS2A_20231107T144731_043751_N05.09",
"s2:product_uri": "S2A_MSIL2A_20231107T144731_N0509_R139_T20QRF_20231107T182159.SAFE",
"s2:datastrip_id": "S2A_OPER_MSI_L2A_DS_MSFT_20231107T182159_S20231107T144729_N05.09",
"s2:product_type": "S2MSI2A",
"product:type": "S2MSI2A",
"sat:orbit_state": "descending",
"s2:datatake_type": "INS-NOBS",
"processing:datetime": "2023-11-07T18:21:59.14490Z",
Expand All @@ -735,7 +735,8 @@
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
"https://stac-extensions.github.io/processing/v1.2.0/schema.json"
"https://stac-extensions.github.io/processing/v1.2.0/schema.json",
"https://stac-extensions.github.io/product/v0.1.0/schema.json"
],
"stac_version": "1.0.0"
}
5 changes: 3 additions & 2 deletions examples/item2.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"view:sun_azimuth": 62.3286549448294,
"view:sun_elevation": 57.292926148638,
"s2:product_uri": "S2A_MSIL2A_20190212T192651_N0212_R013_T07HFE_20201007T160857.SAFE",
"s2:product_type": "S2MSI2A",
"product:type": "S2MSI2A",
"s2:datatake_id": "GS2A_20190212T192651_019029_N02.12",
"s2:datatake_type": "INS-NOBS",
"s2:datastrip_id": "S2A_OPER_MSI_L2A_DS_ESRI_20201007T160858_S20190212T192646_N02.12",
Expand Down Expand Up @@ -1789,7 +1789,8 @@
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
"https://stac-extensions.github.io/mgrs/v1.0.0/schema.json",
"https://stac-extensions.github.io/grid/v1.1.0/schema.json",
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
"https://stac-extensions.github.io/view/v1.0.0/schema.json",
"https://stac-extensions.github.io/product/v0.1.0/schema.json"
],
"collection": "sentinel2-l2a-example"
}
4 changes: 2 additions & 2 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
{ "required": ["s2:datatake_id"] },
{ "required": ["s2:product_uri"] },
{ "required": ["s2:datastrip_id"] },
{ "required": ["s2:product_type"] },
{ "required": ["s2:datatake_type"] },
{ "required": ["s2:water_percentage"] },
{ "required": ["s2:vegetation_percentage"] },
Expand Down Expand Up @@ -99,7 +98,8 @@
},
"s2:product_type": {
"title": "Product Type",
"type": "string"
"type": "string",
"deprecated": true
},
"s2:datatake_type": {
"title": "Datatake Type",
Expand Down

0 comments on commit 1f27ab9

Please sign in to comment.