Skip to content

Commit 9768748

Browse files
committed
Add render extension tests
1 parent 74a7dd0 commit 9768748

File tree

3 files changed

+549
-0
lines changed

3 files changed

+549
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"stac_version": "1.1.0",
3+
"stac_extensions": [
4+
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
5+
"https://stac-extensions.github.io/render/v1.0.0/schema.json",
6+
"https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json"
7+
],
8+
"type": "Collection",
9+
"id": "senitnel2-l2a",
10+
"title": "Sentinel-2 L2A",
11+
"description": "Sentinel-2 L2A data",
12+
"license": "Apache-2.0",
13+
"extent": {
14+
"spatial": {
15+
"bbox": [[172.9, 1.3, 173, 1.4]]
16+
},
17+
"temporal": {
18+
"interval": [["2015-06-23T00:00:00Z", null]]
19+
}
20+
},
21+
"assets": {},
22+
"item_assets": {
23+
"ndvi": {
24+
"roles": ["virtual", "data", "index"],
25+
"type": "image/vnd.stac.geotiff; cloud-optimized=true",
26+
"vrt:hrefs": [
27+
{
28+
"key": "red",
29+
"href": "#/assets/red"
30+
},
31+
{
32+
"key": "nir",
33+
"href": "#/assets/nir"
34+
}
35+
],
36+
"title": "Normalized Difference Vegetation Index",
37+
"vrt:algorithm": "band_arithmetic",
38+
"vrt:algorithm_opts": {
39+
"expression": "(B05-B04)/(B05+B04)",
40+
"rescale": [[-1, 1]]
41+
}
42+
}
43+
},
44+
"renders": {
45+
"ndvi": {
46+
"title": "Normalized Difference Vegetation Index",
47+
"assets": ["ndvi"],
48+
"resampling": "average",
49+
"colormap_name": "ylgn"
50+
}
51+
},
52+
"summaries": {
53+
"datetime": {
54+
"minimum": "2015-06-23T00:00:00Z",
55+
"maximum": "2019-07-10T13:44:56Z"
56+
}
57+
},
58+
"links": [
59+
{
60+
"href": "./collection.json",
61+
"rel": "root",
62+
"title": "Sentinel-2 L2A",
63+
"type": "application/json"
64+
}
65+
]
66+
}
Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
{
2+
"type": "Feature",
3+
"stac_version": "1.1.0",
4+
"stac_extensions": [
5+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
6+
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
7+
"https://stac-extensions.github.io/view/v1.0.0/schema.json",
8+
"https://stac-extensions.github.io/render/v1.0.0/schema.json",
9+
"https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json",
10+
"https://stac-extensions.github.io/web-map-links/v1.2.0/schema.json"
11+
],
12+
"id": "LC08_L1TP_044033_20210305_20210312_01_T1",
13+
"properties": {
14+
"gsd": 30,
15+
"platform": "LANDSAT_8",
16+
"instruments": ["OLI", "TIRS"],
17+
"eo:cloud_cover": 7.41,
18+
"proj:epsg": 32610,
19+
"view:sun_azimuth": 149.10910644,
20+
"view:sun_elevation": 40.48243563,
21+
"view:off_nadir": 0.001,
22+
"landsat:scene_id": "LC80440332021064LGN00",
23+
"landsat:processing_level": "L1TP",
24+
"landsat:collection_number": "01",
25+
"landsat:collection_category": "T1",
26+
"landsat:cloud_cover_land": 7.4,
27+
"landsat:wrs_path": "44",
28+
"landsat:wrs_row": "33",
29+
"datetime": "2021-03-05T18:45:37.619485Z",
30+
"created": "2021-03-16T01:40:56.703Z",
31+
"updated": "2021-03-16T01:40:56.703Z",
32+
"renders": {
33+
"thumbnail": {
34+
"title": "Thumbnail",
35+
"assets": ["B4", "B3", "B2"],
36+
"rescale": [[0, 150]],
37+
"colormap_name": "rainbow",
38+
"resampling": "bilinear",
39+
"bidx": [1],
40+
"width": 1024,
41+
"height": 1024,
42+
"bands": ["B4", "B3", "B2"]
43+
},
44+
"ndvi": {
45+
"title": "Normalized Difference Vegetation Index",
46+
"assets": ["ndvi"],
47+
"resampling": "average",
48+
"colormap_name": "ylgn"
49+
}
50+
}
51+
},
52+
"geometry": {
53+
"type": "Polygon",
54+
"coordinates": [
55+
[
56+
[-122.49680286164214, 39.958062660227306],
57+
[-120.31547276090922, 39.578858170656],
58+
[-120.82135075676177, 37.82701417652536],
59+
[-122.9993441554352, 38.2150173967007],
60+
[-122.49680286164214, 39.958062660227306]
61+
]
62+
]
63+
},
64+
"links": [],
65+
"assets": {
66+
"index": {
67+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/index.html",
68+
"type": "application/html",
69+
"title": "HTML Page"
70+
},
71+
"ANG": {
72+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_ANG.txt",
73+
"type": "text/plain",
74+
"title": "ANG Metadata",
75+
"roles": ["metadata"]
76+
},
77+
"MTL": {
78+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_MTL.txt",
79+
"type": "text/plain",
80+
"title": "MTL Metadata",
81+
"roles": ["metadata"]
82+
},
83+
"BQA": {
84+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_BQA.TIF",
85+
"type": "image/tiff; application=geotiff",
86+
"title": "Quality Band",
87+
"roles": ["quality"]
88+
},
89+
"B1": {
90+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B1.TIF",
91+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
92+
"eo:bands": [
93+
{
94+
"name": "B1",
95+
"common_name": "coastal",
96+
"center_wavelength": 0.48,
97+
"full_width_half_max": 0.02
98+
}
99+
]
100+
},
101+
"B2": {
102+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B2.TIF",
103+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
104+
"eo:bands": [
105+
{
106+
"name": "B2",
107+
"common_name": "blue",
108+
"center_wavelength": 0.44,
109+
"full_width_half_max": 0.06
110+
}
111+
]
112+
},
113+
"B3": {
114+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B3.TIF",
115+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
116+
"eo:bands": [
117+
{
118+
"name": "B3",
119+
"common_name": "green",
120+
"center_wavelength": 0.56,
121+
"full_width_half_max": 0.06
122+
}
123+
]
124+
},
125+
"B4": {
126+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B4.TIF",
127+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
128+
"eo:bands": [
129+
{
130+
"name": "B4",
131+
"common_name": "red",
132+
"center_wavelength": 0.65,
133+
"full_width_half_max": 0.04
134+
}
135+
]
136+
},
137+
"B5": {
138+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B5.TIF",
139+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
140+
"eo:bands": [
141+
{
142+
"name": "B5",
143+
"common_name": "nir",
144+
"center_wavelength": 0.86,
145+
"full_width_half_max": 0.03
146+
}
147+
]
148+
},
149+
"B6": {
150+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B6.TIF",
151+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
152+
"eo:bands": [
153+
{
154+
"name": "B6",
155+
"common_name": "swir16",
156+
"center_wavelength": 1.6,
157+
"full_width_half_max": 0.08
158+
}
159+
]
160+
},
161+
"B7": {
162+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B7.TIF",
163+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
164+
"eo:bands": [
165+
{
166+
"name": "B7",
167+
"common_name": "swir22",
168+
"center_wavelength": 2.2,
169+
"full_width_half_max": 0.2
170+
}
171+
]
172+
},
173+
"B8": {
174+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B8.TIF",
175+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
176+
"eo:bands": [
177+
{
178+
"name": "B8",
179+
"common_name": "pan",
180+
"center_wavelength": 0.59,
181+
"full_width_half_max": 0.18
182+
}
183+
],
184+
"gsd": 15
185+
},
186+
"B9": {
187+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B9.TIF",
188+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
189+
"eo:bands": [
190+
{
191+
"name": "B9",
192+
"common_name": "cirrus",
193+
"center_wavelength": 1.37,
194+
"full_width_half_max": 0.02
195+
}
196+
]
197+
},
198+
"B10": {
199+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B10.TIF",
200+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
201+
"eo:bands": [
202+
{
203+
"name": "B10",
204+
"common_name": "lwir11",
205+
"center_wavelength": 10.9,
206+
"full_width_half_max": 0.8
207+
}
208+
],
209+
"gsd": 100
210+
},
211+
"B11": {
212+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1/LC08_L1TP_044033_20210305_20210312_01_T1_B11.TIF",
213+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
214+
"eo:bands": [
215+
{
216+
"name": "B11",
217+
"common_name": "lwir12",
218+
"center_wavelength": 12,
219+
"full_width_half_max": 1
220+
}
221+
],
222+
"gsd": 100
223+
},
224+
"ndvi": {
225+
"roles": ["virtual", "data", "index"],
226+
"type": "image/vnd.stac.geotiff; cloud-optimized=true",
227+
"href": "https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/044/033/LC08_L1TP_044033_20210305_20210312_01_T1#/assets/NDVI",
228+
"vrt:hrefs": [
229+
{
230+
"key": "B4",
231+
"href": "#/assets/B4"
232+
},
233+
{
234+
"key": "B5",
235+
"href": "#/assets/B5"
236+
}
237+
],
238+
"title": "Normalized Difference Vegetation Index",
239+
"vrt:algorithm": "band_arithmetic",
240+
"vrt:algorithm_opts": {
241+
"expression": "(B05-B04)/(B05+B04)",
242+
"rescale": [[-1, 1]]
243+
}
244+
}
245+
},
246+
"bbox": [-123.00234, 37.82405, -120.31321, 39.95894],
247+
"collection": "landsat-8-l1-c1"
248+
}

0 commit comments

Comments
 (0)