Skip to content

Commit

Permalink
deploy: 33d199d
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 18, 2024
1 parent 6727602 commit 73791de
Showing 1 changed file with 202 additions and 0 deletions.
202 changes: 202 additions & 0 deletions v1.1.0/schema.json
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"
]
}
}
}

0 comments on commit 73791de

Please sign in to comment.