generated from stac-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 changed file
with
202 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,202 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://stac-extensions.github.io/sar/v1.1.0/schema.json", | ||
"title": "SAR Extension", | ||
"description": "STAC SAR Extension to a STAC Item", | ||
"type": "object", | ||
"required": [ | ||
"stac_extensions" | ||
], | ||
"properties": { | ||
"stac_extensions": { | ||
"type": "array", | ||
"contains": { | ||
"const": "https://stac-extensions.github.io/sar/v1.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": [ | ||
{ | ||
"required": [ | ||
"sar:instrument_mode", | ||
"sar:frequency_band", | ||
"sar:polarizations" | ||
], | ||
"properties": { | ||
"sar:polarizations": { | ||
"type": "array", | ||
"maxItems": 4, | ||
"uniqueItems": true | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "#/definitions/fields" | ||
} | ||
] | ||
}, | ||
"assets": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"$comment": "This is the schema for STAC Collections.", | ||
"type": "object", | ||
"required": [ | ||
"type" | ||
], | ||
"properties": { | ||
"type": { | ||
"const": "Collection" | ||
}, | ||
"assets": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/fields" | ||
} | ||
}, | ||
"item_assets": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/fields" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"definitions": { | ||
"fields": { | ||
"$comment": "Add your new fields here. Don't require them here, do that above in the item schema.", | ||
"type": "object", | ||
"properties": { | ||
"sar:instrument_mode": { | ||
"title": "Instrument Mode", | ||
"type": "string", | ||
"examples": [ | ||
"WV" | ||
], | ||
"minLength": 1 | ||
}, | ||
"sar:frequency_band": { | ||
"title": "Frequency Band", | ||
"type": "string", | ||
"enum": [ | ||
"P", | ||
"L", | ||
"S", | ||
"C", | ||
"X", | ||
"Ku", | ||
"K", | ||
"Ka" | ||
] | ||
}, | ||
"sar:center_frequency": { | ||
"title": "Center Frequency (GHz)", | ||
"type": "number" | ||
}, | ||
"sar:polarizations": { | ||
"title": "Polarizations", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/polarizations" | ||
} | ||
}, | ||
"sar:product_type": { | ||
"title": "Product type", | ||
"type": "string", | ||
"minLength": 1, | ||
"examples": [ | ||
"SSC", | ||
"MGD", | ||
"SGC" | ||
] | ||
}, | ||
"sar:resolution_range": { | ||
"title": "Resolution range (m)", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"sar:resolution_azimuth": { | ||
"title": "Resolution azimuth (m)", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"sar:pixel_spacing_range": { | ||
"title": "Pixel spacing range (m)", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"sar:pixel_spacing_azimuth": { | ||
"title": "Pixel spacing azimuth (m)", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"sar:looks_range": { | ||
"title": "Looks range", | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"sar:looks_azimuth": { | ||
"title": "Looks azimuth", | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"sar:looks_equivalent_number": { | ||
"title": "Equivalent number of looks (ENL)", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"sar:observation_direction": { | ||
"title": "Antenna pointing direction", | ||
"type": "string", | ||
"enum": [ | ||
"left", | ||
"right" | ||
] | ||
}, | ||
"sar:beam_ids": { | ||
"title": "Beam identifiers", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^(?!sar:)": { | ||
"$comment": "Do not allow unspecified fields prefixed with sar:" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"polarizations": { | ||
"type": "string", | ||
"enum": [ | ||
"HH", | ||
"VV", | ||
"HV", | ||
"VH" | ||
] | ||
} | ||
} | ||
} |