Skip to content

Commit

Permalink
json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed May 13, 2024
1 parent cf09846 commit 5353f3a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ It will often be combined with other extensions that describe the actual data, s

## Item Properties

| Field Name | Type | Description |
| ------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sat:platform_international_designator | string | The International Designator, also known as COSPAR ID, and NSSDCA ID |
| sat:orbit_state | string | The state of the orbit. Either `ascending` or `descending` for polar orbiting satellites, or `geostationary` for geosynchronous satellites |
| sat:absolute_orbit | integer | The absolute orbit number at the time of acquisition. |
| sat:relative_orbit | integer | The relative orbit number at the time of acquisition. |
| sat:anx_datetime | string | The [Ascending Node](https://en.wikipedia.org/wiki/Orbital_node) Crossing (ANX) time, in UTC. It is formatted according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). |
| sat:orbit_cycle | integer | The number of repeat cycle done by the satellite at the time of the acquisition. [Repeat cycle](https://ltb.itc.utwente.nl/page/498/concept/81577) is the time between two successive identical orbits. |
| sat:orbit_state_vectors | Map<string, double[][]> | The state vectors of the satellite at the time of acquisition. |
| Field Name | Type | Description |
| ------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sat:platform_international_designator | string | The International Designator, also known as COSPAR ID, and NSSDCA ID |
| sat:orbit_state | string | The state of the orbit. Either `ascending` or `descending` for polar orbiting satellites, or `geostationary` for geosynchronous satellites |
| sat:absolute_orbit | integer | The absolute orbit number at the time of acquisition. |
| sat:relative_orbit | integer | The relative orbit number at the time of acquisition. |
| sat:anx_datetime | string | The [Ascending Node](https://en.wikipedia.org/wiki/Orbital_node) Crossing (ANX) time, in UTC. It is formatted according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). |
| sat:orbit_cycle | integer | The number of repeat cycle done by the satellite at the time of the acquisition. [Repeat cycle](https://ltb.itc.utwente.nl/page/498/concept/81577) is the time between two successive identical orbits. |
| sat:orbit_state_vectors | Map<string, double[]> | The state vectors of the satellite at the time of acquisition. |

*At least one of the fields must be specified.*

Expand Down
28 changes: 14 additions & 14 deletions examples/example-sentinel1.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,28 @@
"sat:orbit_cycle": 407,
"sat:orbit_state_vectors": {
"2015-03-05T05:19:40.103Z": [
5082939.4189831074,
1595651.7369050409,
4648033.5588545678,
5173.8779329387489,
5082939.418983107,
1595651.736905041,
4648033.558854568,
5173.877932938749,
-269.5432365485845,
-5550.246440359806
],
"2015-03-05T05:19:45.449Z": [
5110519.0376543682,
5110519.037654368,
1594174.328112772,
4618284.7202579351,
5143.1200754073143,
-283.12343661734587,
-5578.2160610647188
4618284.720257935,
5143.120075407314,
-283.1234366173459,
-5578.216061064719
],
"2015-03-05T05:19:50.449Z": [
5136162.3887853986,
5136162.388785399,
1592727.024757518,
4590328.5904560406,
5114.1961953273549,
-295.79384304587683,
-5604.2108611458289
4590328.590456041,
5114.196195327355,
-295.7938430458768,
-5604.210861145829
]
},
"sar:instrument_mode": "IW",
Expand Down
19 changes: 19 additions & 0 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"required": [
"sat:orbit_cycle"
]
},
{
"required": [
"sat:orbit_state_vectors"
]
}
]
},
Expand Down Expand Up @@ -149,6 +154,20 @@
"sat:orbit_cycle": {
"type": "integer",
"minimum": 1
},
"sat:orbit_state_vectors": {
"type": "object",
"patternProperties": {
"^.*$": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 6,
"maxItems": 9
}
},
"additionalProperties": false
}
},
"patternProperties": {
Expand Down

0 comments on commit 5353f3a

Please sign in to comment.