File: TestValidate.test_validate_examples%5Bexample118%5D.yaml

package info (click to toggle)
pystac 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,904 kB
  • sloc: python: 24,370; makefile: 124; sh: 7
file content (399 lines) | stat: -rw-r--r-- 23,462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
interactions:
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - schemas.stacspec.org
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://schemas.stacspec.org/v1.0.0/collection-spec/json-schema/collection.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"https://schemas.stacspec.org/v1.0.0/collection-spec/json-schema/collection.json#\",\n
        \ \"title\": \"STAC Collection Specification\",\n  \"description\": \"This
        object represents Collections in a SpatioTemporal Asset Catalog.\",\n  \"allOf\":
        [\n    {\n      \"$ref\": \"#/definitions/collection\"\n    }\n  ],\n  \"definitions\":
        {\n    \"collection\": {\n      \"title\": \"STAC Collection\",\n      \"description\":
        \"These are the fields specific to a STAC Collection. All other fields are
        inherited from STAC Catalog.\",\n      \"type\": \"object\",\n      \"required\":
        [\n        \"stac_version\",\n        \"type\",\n        \"id\",\n        \"description\",\n
        \       \"license\",\n        \"extent\",\n        \"links\"\n      ],\n      \"properties\":
        {\n        \"stac_version\": {\n          \"title\": \"STAC version\",\n          \"type\":
        \"string\",\n          \"const\": \"1.0.0\"\n        },\n        \"stac_extensions\":
        {\n          \"title\": \"STAC extensions\",\n          \"type\": \"array\",\n
        \         \"uniqueItems\": true,\n          \"items\": {\n            \"title\":
        \"Reference to a JSON Schema\",\n            \"type\": \"string\",\n            \"format\":
        \"iri\"\n          }\n        },\n        \"type\": {\n          \"title\":
        \"Type of STAC entity\",\n          \"const\": \"Collection\"\n        },\n
        \       \"id\": {\n          \"title\": \"Identifier\",\n          \"type\":
        \"string\",\n          \"minLength\": 1\n        },\n        \"title\": {\n
        \         \"title\": \"Title\",\n          \"type\": \"string\"\n        },\n
        \       \"description\": {\n          \"title\": \"Description\",\n          \"type\":
        \"string\",\n          \"minLength\": 1\n        },\n        \"keywords\":
        {\n          \"title\": \"Keywords\",\n          \"type\": \"array\",\n          \"items\":
        {\n            \"type\": \"string\"\n          }\n        },\n        \"license\":
        {\n          \"title\": \"Collection License Name\",\n          \"type\":
        \"string\",\n          \"pattern\": \"^[\\\\w\\\\-\\\\.\\\\+]+$\"\n        },\n
        \       \"providers\": {\n          \"type\": \"array\",\n          \"items\":
        {\n            \"type\": \"object\",\n            \"required\": [\n              \"name\"\n
        \           ],\n            \"properties\": {\n              \"name\": {\n
        \               \"title\": \"Organization name\",\n                \"type\":
        \"string\"\n              },\n              \"description\": {\n                \"title\":
        \"Organization description\",\n                \"type\": \"string\"\n              },\n
        \             \"roles\": {\n                \"title\": \"Organization roles\",\n
        \               \"type\": \"array\",\n                \"items\": {\n                  \"type\":
        \"string\",\n                  \"enum\": [\n                    \"producer\",\n
        \                   \"licensor\",\n                    \"processor\",\n                    \"host\"\n
        \                 ]\n                }\n              },\n              \"url\":
        {\n                \"title\": \"Organization homepage\",\n                \"type\":
        \"string\",\n                \"format\": \"iri\"\n              }\n            }\n
        \         }\n        },\n        \"extent\": {\n          \"title\": \"Extents\",\n
        \         \"type\": \"object\",\n          \"required\": [\n            \"spatial\",\n
        \           \"temporal\"\n          ],\n          \"properties\": {\n            \"spatial\":
        {\n              \"title\": \"Spatial extent object\",\n              \"type\":
        \"object\",\n              \"required\": [\n                \"bbox\"\n              ],\n
        \             \"properties\": {\n                \"bbox\": {\n                  \"title\":
        \"Spatial extents\",\n                  \"type\": \"array\",\n                  \"minItems\":
        1,\n                  \"items\": {\n                    \"title\": \"Spatial
        extent\",\n                    \"type\": \"array\",\n                    \"oneOf\":
        [\n                      {\n                        \"minItems\":4,\n                        \"maxItems\":4\n
        \                     },\n                      {\n                        \"minItems\":6,\n
        \                       \"maxItems\":6\n                      }\n                    ],\n
        \                   \"items\": {\n                      \"type\": \"number\"\n
        \                   }\n                  }\n                }\n              }\n
        \           },\n            \"temporal\": {\n              \"title\": \"Temporal
        extent object\",\n              \"type\": \"object\",\n              \"required\":
        [\n                \"interval\"\n              ],\n              \"properties\":
        {\n                \"interval\": {\n                  \"title\": \"Temporal
        extents\",\n                  \"type\": \"array\",\n                  \"minItems\":
        1,\n                  \"items\": {\n                    \"title\": \"Temporal
        extent\",\n                    \"type\": \"array\",\n                    \"minItems\":
        2,\n                    \"maxItems\": 2,\n                    \"items\": {\n
        \                     \"type\": [\n                        \"string\",\n                        \"null\"\n
        \                     ],\n                      \"format\": \"date-time\",\n
        \                     \"pattern\": \"(\\\\+00:00|Z)$\"\n                    }\n
        \                 }\n                }\n              }\n            }\n          }\n
        \       },\n        \"assets\": {\n          \"$ref\": \"../../item-spec/json-schema/item.json#/definitions/assets\"\n
        \       },\n        \"links\": {\n          \"title\": \"Links\",\n          \"type\":
        \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/link\"\n
        \         }\n        },\n        \"summaries\": {\n          \"$ref\": \"#/definitions/summaries\"\n
        \       }\n      }\n    },\n    \"link\": {\n      \"type\": \"object\",\n
        \     \"required\": [\n        \"rel\",\n        \"href\"\n      ],\n      \"properties\":
        {\n        \"href\": {\n          \"title\": \"Link reference\",\n          \"type\":
        \"string\",\n          \"format\": \"iri-reference\",\n          \"minLength\":
        1\n        },\n        \"rel\": {\n          \"title\": \"Link relation type\",\n
        \         \"type\": \"string\",\n          \"minLength\": 1\n        },\n
        \       \"type\": {\n          \"title\": \"Link type\",\n          \"type\":
        \"string\"\n        },\n        \"title\": {\n          \"title\": \"Link
        title\",\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"summaries\":
        {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\":
        [\n          {\n            \"title\": \"JSON Schema\",\n            \"type\":
        \"object\",\n            \"minProperties\": 1,\n            \"allOf\": [\n
        \             {\n                \"$ref\": \"http://json-schema.org/draft-07/schema\"\n
        \             }\n            ]\n          },\n          {\n            \"title\":
        \"Range\",\n            \"type\": \"object\",\n            \"required\": [\n
        \             \"minimum\",\n              \"maximum\"\n            ],\n            \"properties\":
        {\n              \"minimum\": {\n                \"title\": \"Minimum value\",\n
        \               \"type\": [\n                  \"number\",\n                  \"string\"\n
        \               ]\n              },\n              \"maximum\": {\n                \"title\":
        \"Maximum value\",\n                \"type\": [\n                  \"number\",\n
        \                 \"string\"\n                ]\n              }\n            }\n
        \         },\n          {\n            \"title\": \"Set of values\",\n            \"type\":
        \"array\",\n            \"minItems\": 1,\n            \"items\": {\n              \"description\":
        \"For each field only the original data type of the property can occur (except
        for arrays), but we can't validate that in JSON Schema yet. See the sumamry
        description in the STAC specification for details.\"\n            }\n          }\n
        \       ]\n      }\n    }\n  }\n}"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Age:
      - '1'
      Cache-Control:
      - max-age=600
      Connection:
      - close
      Content-Length:
      - '7209'
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Thu, 23 Jan 2025 15:04:56 GMT
      ETag:
      - '"66e1651c-1c29"'
      Last-Modified:
      - Wed, 11 Sep 2024 09:38:36 GMT
      Server:
      - GitHub.com
      Vary:
      - Accept-Encoding
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '1'
      X-Fastly-Request-ID:
      - eb976ac4705c59b76b793e2c2256348b7d4daef3
      X-GitHub-Request-Id:
      - 2D0C:EEC2E:118BF48:1417D6B:67925A96
      X-Served-By:
      - cache-den-kden1300071-DEN
      X-Timer:
      - S1737644696.382715,VS0,VE1
      expires:
      - Thu, 23 Jan 2025 15:14:55 GMT
      x-origin-cache:
      - HIT
      x-proxy-cache:
      - MISS
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - stac-extensions.github.io
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://stac-extensions.github.io/eo/v1.1.0/schema.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"https://stac-extensions.github.io/eo/v1.1.0/schema.json#\",\n  \"title\":
        \"EO Extension\",\n  \"description\": \"STAC EO Extension for STAC Items.\",\n
        \ \"oneOf\": [\n    {\n      \"$comment\": \"This is the schema for STAC Items.\",\n
        \     \"allOf\": [\n        {\n          \"type\": \"object\",\n          \"required\":
        [\n            \"type\",\n            \"properties\",\n            \"assets\"\n
        \         ],\n          \"properties\": {\n            \"type\": {\n              \"const\":
        \"Feature\"\n            },\n            \"properties\": {\n              \"$ref\":
        \"#/definitions/fields\"\n            },\n            \"assets\": {\n              \"type\":
        \"object\",\n              \"additionalProperties\": {\n                \"$ref\":
        \"#/definitions/fields\"\n              }\n            }\n          },\n          \"$comment\":
        \"The if-then-else below checks whether the eo:bands is given in assets or
        not. If yes, allows eo:bands in properties (else), otherwise, disallows eo:bands
        in properties (then).\",\n          \"if\": {\n            \"required\": [\n
        \             \"assets\"\n            ],\n            \"properties\": {\n
        \             \"assets\": {\n                \"type\": \"object\",\n                \"additionalProperties\":
        {\n                  \"properties\": {\n                    \"eo:bands\":
        false\n                  }\n                }\n              }\n            }\n
        \         },\n          \"then\": {\n            \"properties\": {\n              \"properties\":
        {\n                \"properties\": {\n                  \"eo:bands\": false\n
        \               }\n              }\n            }\n          },\n          \"else\":
        {\n            \"properties\": {\n              \"properties\": {\n                \"properties\":
        {\n                  \"eo:bands\": {\n                    \"$ref\": \"#/definitions/bands\"\n
        \                 }\n                }\n              }\n            }\n          }\n
        \       },\n        {\n          \"$ref\": \"#/definitions/stac_extensions\"\n
        \       }\n      ]\n    },\n    {\n      \"$comment\": \"This is the schema
        for STAC Collections.\",\n      \"allOf\": [\n        {\n          \"type\":
        \"object\",\n          \"required\": [\n            \"type\"\n          ],\n
        \         \"properties\": {\n            \"type\": {\n              \"const\":
        \"Collection\"\n            },\n            \"assets\": {\n              \"type\":
        \"object\",\n              \"additionalProperties\": {\n                \"$ref\":
        \"#/definitions/fields\"\n              }\n            },\n            \"item_assets\":
        {\n              \"type\": \"object\",\n              \"additionalProperties\":
        {\n                \"$ref\": \"#/definitions/fields\"\n              }\n            }\n
        \         }\n        },\n        {\n          \"$ref\": \"#/definitions/stac_extensions\"\n
        \       }\n      ]\n    }\n  ],\n  \"definitions\": {\n    \"stac_extensions\":
        {\n      \"type\": \"object\",\n      \"required\": [\n        \"stac_extensions\"\n
        \     ],\n      \"properties\": {\n        \"stac_extensions\": {\n          \"type\":
        \"array\",\n          \"contains\": {\n            \"const\": \"https://stac-extensions.github.io/eo/v1.1.0/schema.json\"\n
        \         }\n        }\n      }\n    },\n    \"fields\": {\n      \"type\":
        \"object\",\n      \"properties\": {\n        \"eo:cloud_cover\": {\n          \"title\":
        \"Cloud Cover\",\n          \"type\": \"number\",\n          \"minimum\":
        0,\n          \"maximum\": 100\n        },\n        \"eo:snow_cover\": {\n
        \         \"title\": \"Snow and Ice Cover\",\n          \"type\": \"number\",\n
        \         \"minimum\": 0,\n          \"maximum\": 100\n        },\n        \"eo:bands\":
        {\n          \"$ref\": \"#/definitions/bands\"\n        }\n      },\n      \"patternProperties\":
        {\n        \"^(?!eo:)\": {}\n      },\n      \"additionalProperties\": false\n
        \   },\n    \"bands\": {\n      \"title\": \"Bands\",\n      \"type\": \"array\",\n
        \     \"minItems\": 1,\n      \"items\": {\n        \"title\": \"Band\",\n
        \       \"type\": \"object\",\n        \"minProperties\": 1,\n        \"properties\":
        {\n          \"name\": {\n            \"title\": \"Name of the band\",\n            \"type\":
        \"string\"\n          },\n          \"common_name\": {\n            \"title\":
        \"Common Name of the band\",\n            \"type\": \"string\",\n            \"enum\":
        [\n              \"coastal\",\n              \"blue\",\n              \"green\",\n
        \             \"red\",\n              \"rededge\",\n              \"yellow\",\n
        \             \"pan\",\n              \"nir\",\n              \"nir08\",\n
        \             \"nir09\",\n              \"cirrus\",\n              \"swir16\",\n
        \             \"swir22\",\n              \"lwir\",\n              \"lwir11\",\n
        \             \"lwir12\"\n            ]\n          },\n          \"description\":
        {\n            \"title\": \"Description of the band\",\n            \"type\":
        \"string\",\n            \"minLength\": 1\n          },\n          \"center_wavelength\":
        {\n            \"title\": \"Center Wavelength\",\n            \"type\": \"number\",\n
        \           \"minimumExclusive\": 0\n          },\n          \"full_width_half_max\":
        {\n            \"title\": \"Full Width Half Max (FWHM)\",\n            \"type\":
        \"number\",\n            \"minimumExclusive\": 0\n          },\n          \"solar_illumination\":
        {\n            \"title\": \"Solar Illumination\",\n            \"type\": \"number\",\n
        \           \"minimum\": 0\n          }\n        }\n      }\n    }\n  }\n}\n"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Age:
      - '47'
      Cache-Control:
      - max-age=600
      Connection:
      - close
      Content-Length:
      - '5052'
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Thu, 23 Jan 2025 15:04:56 GMT
      ETag:
      - '"66df1c53-13bc"'
      Last-Modified:
      - Mon, 09 Sep 2024 16:03:31 GMT
      Server:
      - GitHub.com
      Strict-Transport-Security:
      - max-age=31556952
      Vary:
      - Accept-Encoding
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '3'
      X-Fastly-Request-ID:
      - a583b17a746329f6c2dd47b92ce860a30647f91a
      X-GitHub-Request-Id:
      - D7BA:338B06:10BABDB:12975BC:67925A68
      X-Served-By:
      - cache-den-kden1300056-DEN
      X-Timer:
      - S1737644696.406806,VS0,VE0
      expires:
      - Thu, 23 Jan 2025 15:14:09 GMT
      permissions-policy:
      - interest-cohort=()
      x-proxy-cache:
      - MISS
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - stac-extensions.github.io
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://stac-extensions.github.io/view/v1.0.0/schema.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"https://stac-extensions.github.io/view/v1.0.0/schema.json#\",\n  \"title\":
        \"View Geometry Extension\",\n  \"description\": \"STAC View Geometry Extension
        for STAC Items and STAC Collections.\",\n  \"oneOf\": [\n    {\n      \"$comment\":
        \"This is the schema for STAC Items.\",\n      \"allOf\": [\n        {\n          \"type\":
        \"object\",\n          \"required\": [\n            \"type\",\n            \"properties\",\n
        \           \"assets\"\n          ],\n          \"properties\": {\n            \"type\":
        {\n              \"const\": \"Feature\"\n            },\n            \"properties\":
        {\n              \"allOf\": [\n                {\n                  \"anyOf\":
        [\n                    {\"required\": [\"view:off_nadir\"]},\n                    {\"required\":
        [\"view:incidence_angle\"]},\n                    {\"required\": [\"view:azimuth\"]},\n
        \                   {\"required\": [\"view:sun_azimuth\"]},\n                    {\"required\":
        [\"view:sun_elevation\"]}\n                  ]\n                },\n                {\n
        \                 \"$ref\": \"#/definitions/fields\"\n                }\n
        \             ]\n            },\n            \"assets\": {\n              \"type\":
        \"object\",\n              \"additionalProperties\": {\n                \"$ref\":
        \"#/definitions/fields\"\n              }\n            }\n          }\n        },\n
        \       {\n          \"$ref\": \"#/definitions/stac_extensions\"\n        }\n
        \     ]\n    },\n    {\n      \"$comment\": \"This is the schema for STAC
        Collections.\",\n      \"allOf\": [\n        {\n          \"type\": \"object\",\n
        \         \"required\": [\n            \"type\"\n          ],\n          \"properties\":
        {\n            \"type\": {\n              \"const\": \"Collection\"\n            },\n
        \           \"assets\": {\n              \"type\": \"object\",\n              \"additionalProperties\":
        {\n                \"$ref\": \"#/definitions/fields\"\n              }\n            },\n
        \           \"item_assets\": {\n              \"type\": \"object\",\n              \"additionalProperties\":
        {\n                \"$ref\": \"#/definitions/fields\"\n              }\n            }\n
        \         }\n        },\n        {\n          \"$ref\": \"#/definitions/stac_extensions\"\n
        \       }\n      ]\n    }\n  ],\n  \"definitions\": {\n    \"stac_extensions\":
        {\n      \"type\": \"object\",\n      \"required\": [\n        \"stac_extensions\"\n
        \     ],\n      \"properties\": {\n        \"stac_extensions\": {\n          \"type\":
        \"array\",\n          \"contains\": {\n            \"contains\": {\n              \"const\":
        \"https://stac-extensions.github.io/view/v1.0.0/schema.json\"\n            }\n
        \         }\n        }\n      }\n    },\n    \"fields\": {\n      \"$comment\":
        \"Add your new fields here. Don't require them here, do that above in the
        item schema.\",\n      \"type\": \"object\",\n      \"properties\": {\n        \"view:off_nadir\":
        {\n          \"title\": \"Off Nadir\",\n          \"type\": \"number\",\n
        \         \"minimum\": 0,\n          \"maximum\": 90\n        },\n        \"view:incidence_angle\":
        {\n          \"title\": \"Center incidence angle\",\n          \"type\": \"number\",\n
        \         \"minimum\": 0,\n          \"maximum\": 90\n        },\n        \"view:azimuth\":
        {\n          \"title\": \"Azimuth angle\",\n          \"type\": \"number\",\n
        \         \"minimum\": 0,\n          \"maximum\": 360\n        },\n        \"view:sun_azimuth\":
        {\n          \"title\": \"Sun Azimuth\",\n          \"type\": \"number\",\n
        \         \"minimum\": 0,\n          \"maximum\": 360\n        },\n        \"view:sun_elevation\":
        {\n          \"title\": \"Sun Elevation\",\n          \"type\": \"number\",\n
        \         \"minimum\": -90,\n          \"maximum\": 90\n        }\n      },\n
        \     \"patternProperties\": {\n        \"^(?!view:)\": {}\n      },\n      \"additionalProperties\":
        false\n    }\n  }\n}"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Age:
      - '47'
      Cache-Control:
      - max-age=600
      Connection:
      - close
      Content-Length:
      - '3583'
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Thu, 23 Jan 2025 15:04:56 GMT
      ETag:
      - '"60635220-dff"'
      Last-Modified:
      - Tue, 30 Mar 2021 16:30:24 GMT
      Server:
      - GitHub.com
      Strict-Transport-Security:
      - max-age=31556952
      Vary:
      - Accept-Encoding
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '1'
      X-Fastly-Request-ID:
      - 893c07864913d255a1441f50bca08d71b196934c
      X-GitHub-Request-Id:
      - 4FF0:3D3696:110AB38:1372E73:6792474C
      X-Served-By:
      - cache-den-kden1300035-DEN
      X-Timer:
      - S1737644696.428600,VS0,VE1
      expires:
      - Thu, 23 Jan 2025 13:52:36 GMT
      permissions-policy:
      - interest-cohort=()
      x-proxy-cache:
      - MISS
    status:
      code: 200
      message: OK
version: 1