Skip to content

Commit f80de3b

Browse files
committed
Deprecate baseline and generation time
1 parent e73fe90 commit f80de3b

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Deprecated
1515

16+
- `s2:generation_time` in favor of `processing:datetime`
17+
18+
- `s2:processing_baseline` in favor of `processing:version`
19+
1620
### Removed
1721

1822
### Fixed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ The fields in the table below can be used in these parts of STAC documents:
3939
| s2:datastrip_id | string | Datastrip Identifier |
4040
| s2:product_type | string | Product Type |
4141
| s2:datatake_type | string | Datatake Type |
42-
| s2:generation_time | datetime | Generation Time |
43-
| s2:processing_baseline | string | [Processing Baseline](https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-2-msi/processing-baseline) |
4442
| s2:reflectance_conversion_factor | number | Reflectance Conversion Factor |
4543
| s2:water_percentage | number | Water Percentage |
4644
| s2:snow_ice_percentage | number | Snow and Ice Percentage |
@@ -55,13 +53,19 @@ The fields in the table below can be used in these parts of STAC documents:
5553
| s2:high_proba_clouds_percentage | number | High Probability Clouds Percentage |
5654
| s2:medium_proba_clouds_percentage | number | Medium Probability Clouds Percentage |
5755
| s2:saturated_defective_pixel_percentage | number | Saturated Defective Pixel Percentage |
56+
| s2:generation_time | datetime | **DEPRECATED** Generation Time |
57+
| s2:processing_baseline | string | **DEPRECATED** [Processing Baseline](https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-2-msi/processing-baseline) |
5858
| s2:granule_id | string | **DEPRECATED** Granule Identifier |
5959
| s2:mgrs_tile | string | **DEPRECATED** Sentinel-2 MGRS Tile Identifier |
6060
| s2:mean_solar_zenith | number | **DEPRECATED** Mean Solar Zenith |
6161
| s2:mean_solar_azimuth | number | **DEPRECATED** Mean Solar Azimuth |
6262

6363
### Additional Field Information
6464

65+
**s2:generation_time** is deprecated in favor of `processing:datetime`
66+
67+
**s2:processing_baseline** is deprecated in favor of `processing:version`
68+
6569
**s2:granule_id** is deprecated in favor of `s2:tile_id`
6670

6771
**s2:mean_solar_zenith** is deprecated in favor of the View Extension field `view:sun_elevation`

examples/item.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,10 @@
712712
"s2:product_type": "S2MSI2A",
713713
"sat:orbit_state": "descending",
714714
"s2:datatake_type": "INS-NOBS",
715-
"s2:generation_time": "2023-11-07T18:21:59.14490Z",
715+
"processing:datetime": "2023-11-07T18:21:59.14490Z",
716716
"sat:relative_orbit": 139,
717717
"s2:water_percentage": 95.782292,
718-
"s2:processing_baseline": "05.09",
718+
"processing:baseline": "05.09",
719719
"s2:snow_ice_percentage": 0,
720720
"s2:vegetation_percentage": 0,
721721
"s2:thin_cirrus_percentage": 0.774645,
@@ -734,7 +734,8 @@
734734
"https://stac-extensions.github.io/sentinel-2/v1.0.0/schema.json",
735735
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
736736
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
737-
"https://stac-extensions.github.io/projection/v1.1.0/schema.json"
737+
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
738+
"https://stac-extensions.github.io/processing/v1.2.0/schema.json"
738739
],
739740
"stac_version": "1.0.0"
740741
}

examples/item2.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"eo:cloud_cover": 51.580326,
2424
"sat:orbit_state": "descending",
2525
"sat:relative_orbit": 13,
26+
"processing:datetime": "2020-10-07T16:08:57.135Z",
27+
"processing:version": "02.12",
2628
"proj:epsg": 32707,
2729
"proj:centroid": {
2830
"lat": -31.6824,
@@ -35,8 +37,6 @@
3537
"view:sun_azimuth": 62.3286549448294,
3638
"view:sun_elevation": 57.292926148638,
3739
"s2:product_uri": "S2A_MSIL2A_20190212T192651_N0212_R013_T07HFE_20201007T160857.SAFE",
38-
"s2:generation_time": "2020-10-07T16:08:57.135Z",
39-
"s2:processing_baseline": "02.12",
4040
"s2:product_type": "S2MSI2A",
4141
"s2:datatake_id": "GS2A_20190212T192651_019029_N02.12",
4242
"s2:datatake_type": "INS-NOBS",
@@ -1785,6 +1785,7 @@
17851785
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
17861786
"https://stac-extensions.github.io/raster/v1.1.0/schema.json",
17871787
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
1788+
"https://stac-extensions.github.io/processing/v1.2.0/schema.json",
17881789
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
17891790
"https://stac-extensions.github.io/mgrs/v1.0.0/schema.json",
17901791
"https://stac-extensions.github.io/grid/v1.1.0/schema.json",

json-schema/schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
{ "required": ["s2:datastrip_id"] },
5959
{ "required": ["s2:product_type"] },
6060
{ "required": ["s2:datatake_type"] },
61-
{ "required": ["s2:generation_time"] },
62-
{ "required": ["s2:processing_baseline"] },
6361
{ "required": ["s2:water_percentage"] },
6462
{ "required": ["s2:snow_ice_percentage"] },
6563
{ "required": ["s2:vegetation_percentage"] },
@@ -111,12 +109,14 @@
111109
"s2:generation_time": {
112110
"title": "Generation Time",
113111
"type": "string",
114-
"format": "date-time"
112+
"format": "date-time",
113+
"deprecated": true
115114
},
116115
"s2:processing_baseline": {
117116
"title": "Processing Baseline",
118117
"type": "string",
119-
"pattern": "^\\d\\d\\.\\d\\d$"
118+
"pattern": "^\\d\\d\\.\\d\\d$",
119+
"deprecated": true
120120
},
121121
"s2:water_percentage": {
122122
"title": "Water Percentage",

0 commit comments

Comments
 (0)