Skip to content

Commit

Permalink
Add product:timeliness_category
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed May 8, 2024
1 parent 0669740 commit eea5ac4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ The fields in the table below can be used in these parts of STAC documents:
- [x] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)
- [ ] Links

| Field Name | Type | Description |
| ------------------ | ------ | ----------------- |
| product:type | string | The product type. |
| product:timeliness | string | The average expected timeliness of the product as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
| Field Name | Type | Description |
| --------------------------- | ------ | ----------------- |
| product:type | string | The product type. |
| product:timeliness | string | The average expected timeliness of the product as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
| product:timeliness_category | string | A proprietary category identifier for the timeliness of the product. |

> \[!IMPORTANT]
> `product:timeliness` is REQUIRED if `product:timeliness_category` is provided.
### Additional Field Information

Expand Down
3 changes: 3 additions & 0 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
],
"product:timeliness": [
"PT3H"
],
"product:timeliness_category": [
"NRT"
]
},
"links": [
Expand Down
3 changes: 2 additions & 1 deletion examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"c-sar"
],
"product:type": "GRD",
"product:timeliness": "PT3H"
"product:timeliness": "PT3H",
"product:timeliness_category": "NRT"
},
"geometry": {
"type": "Polygon",
Expand Down
11 changes: 11 additions & 0 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,20 @@
"definitions": {
"fields": {
"type": "object",
"dependencies": {
"product:timeliness_category": [
"product:timeliness"
]
},
"properties": {
"product:type": {
"$ref": "#/definitions/product:type"
},
"product:timeliness": {
"$ref": "#/definitions/product:timeliness"
},
"product:timeliness_category": {
"$ref": "#/definitions/product:timeliness_category"
}
},
"patternProperties": {
Expand All @@ -126,6 +134,9 @@
"type": "string",
"format": "duration"
},
"product:timeliness_category": {
"type": "string"
},
"json_schema": {
"$comment": "JSON Schema",
"type": "object"
Expand Down

0 comments on commit eea5ac4

Please sign in to comment.