This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
generated from stac-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
261 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://stac-extensions.github.io/sentinel-3/v0.1.0/schema.json#", | ||
"title": "Sentinel-3 Extension", | ||
"description": "STAC Sentinel-3 Extension for STAC Items and STAC Collection Summaries.", | ||
"type": "object", | ||
"required": [ | ||
"stac_extensions" | ||
], | ||
"properties": { | ||
"stac_extensions": { | ||
"type": "array", | ||
"contains": { | ||
"const": "https://stac-extensions.github.io/sentinel-3/v0.1.0/schema.json" | ||
} | ||
} | ||
}, | ||
"oneOf": [ | ||
{ | ||
"$comment": "This is the schema for STAC Items.", | ||
"type": "object", | ||
"required": [ | ||
"type", | ||
"properties", | ||
"assets" | ||
], | ||
"properties": { | ||
"type": { | ||
"const": "Feature" | ||
}, | ||
"properties": { | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/require_any" | ||
}, | ||
{ | ||
"$ref": "#/definitions/fields" | ||
} | ||
] | ||
}, | ||
"assets": { | ||
"$ref": "#/definitions/assets" | ||
} | ||
} | ||
}, | ||
{ | ||
"$comment": "This is the schema for STAC Collections, or more specifically only Collection Summaries in this case. By default, only checks the existence of the properties, but not the schema of the summaries.", | ||
"type": "object", | ||
"required": [ | ||
"type", | ||
"summaries" | ||
], | ||
"properties": { | ||
"type": { | ||
"const": "Collection" | ||
}, | ||
"summaries": { | ||
"$ref": "#/definitions/require_any" | ||
}, | ||
"item_assets": { | ||
"$ref": "#/definitions/assets" | ||
}, | ||
"assets": { | ||
"$ref": "#/definitions/assets" | ||
} | ||
} | ||
} | ||
], | ||
"definitions": { | ||
"require_any": { | ||
"$comment": "Please list all fields here so that we can force the existence of one of them in other parts of the schemas.", | ||
"anyOf": [ | ||
{"required": ["s3:product_type"]}, | ||
{"required": ["s3:product_name"]}, | ||
{"required": ["s3:processing_timeliness"]}, | ||
{"required": ["s3:gsd"]}, | ||
{"required": ["s3:lrm_mode"]}, | ||
{"required": ["s3:sar_mode"]}, | ||
{"required": ["s3:bright"]}, | ||
{"required": ["s3:closed_sea"]}, | ||
{"required": ["s3:coastal"]}, | ||
{"required": ["s3:continental_ice"]}, | ||
{"required": ["s3:cosmetic"]}, | ||
{"required": ["s3:dubious_samples"]}, | ||
{"required": ["s3:duplicated"]}, | ||
{"required": ["s3:fresh_inland_water"]}, | ||
{"required": ["s3:invalid"]}, | ||
{"required": ["s3:land"]}, | ||
{"required": ["s3:open_ocean"]}, | ||
{"required": ["s3:out_of_range"]}, | ||
{"required": ["s3:saline_water"]}, | ||
{"required": ["s3:saturated"]}, | ||
{"required": ["s3:tidal_region"]} | ||
] | ||
}, | ||
"fields": { | ||
"$comment": " Don't require fields here, do that above in the corresponding schema.", | ||
"type": "object", | ||
"properties": { | ||
"s3:product_type": { | ||
"type": "string" | ||
}, | ||
"s3:product_name": { | ||
"type": "string" | ||
}, | ||
"s3:processing_timeliness": { | ||
"type": "string" | ||
}, | ||
"s3:gsd": { | ||
"oneOf": [ | ||
{ | ||
"type": "integer" | ||
}, | ||
{ | ||
"title": "SRAL GSD Object", | ||
"type": "object", | ||
"required": ["along-track", "across-track"], | ||
"properties": { | ||
"along-track": { | ||
"type": "integer" | ||
}, | ||
"across-track": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"title": "Synergy GSD Object", | ||
"type": "object", | ||
"required": ["OLCI", "SLSTR"], | ||
"properties": { | ||
"OLCI": { | ||
"type": "integer" | ||
}, | ||
"SLSTR": { | ||
"$ref": "#/definitions/SLSTR" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"$ref": "#/definitions/SLSTR" | ||
} | ||
] | ||
}, | ||
"s3:lrm_mode": { | ||
"type": "number" | ||
}, | ||
"s3:sar_mode": { | ||
"type": "number" | ||
}, | ||
"s3:bright": { | ||
"type": "number" | ||
}, | ||
"s3:closed_sea": { | ||
"type": "number" | ||
}, | ||
"s3:coastal": { | ||
"type": "number" | ||
}, | ||
"s3:continental_ice": { | ||
"type": "number" | ||
}, | ||
"s3:cosmetic": { | ||
"type": "number" | ||
}, | ||
"s3:dubious_samples": { | ||
"type": "number" | ||
}, | ||
"s3:duplicated": { | ||
"type": "number" | ||
}, | ||
"s3:fresh_inland_water": { | ||
"type": "number" | ||
}, | ||
"s3:invalid": { | ||
"type": "number" | ||
}, | ||
"s3:land": { | ||
"type": "number" | ||
}, | ||
"s3:open_ocean": { | ||
"type": "number" | ||
}, | ||
"s3:out_of_range": { | ||
"type": "number" | ||
}, | ||
"s3:saline_water": { | ||
"type": "number" | ||
}, | ||
"s3:saturated": { | ||
"type": "number" | ||
}, | ||
"s3:tidal_region": { | ||
"type": "number" | ||
}, | ||
"s3:snow_or_ice": { | ||
"type": "number" | ||
} | ||
}, | ||
"patternProperties": { | ||
"^(?!s3:)": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"SLSTR": { | ||
"title": "SLSTR GSD Object", | ||
"type": "object", | ||
"required": ["S1-S6", "S7-S9 and F1-F2"], | ||
"properties": { | ||
"S1-S6": { | ||
"type": "integer" | ||
}, | ||
"S7-S9 and F1-F2": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"assets": { | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"s3:shape": { | ||
"type": "array", | ||
"items": { | ||
"type": "integer" | ||
} | ||
}, | ||
"s3:spatial_resolution": { | ||
"type": "array", | ||
"items": { | ||
"type": "integer" | ||
} | ||
}, | ||
"s3:altimetry_bands": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"band_width": { | ||
"type": "number" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"frequency_band": { | ||
"type": "string" | ||
}, | ||
"center_frequency": { | ||
"type": "number" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |