diff --git a/examples/item-planet.json b/examples/item-planet.json index 7774caf..7f48984 100644 --- a/examples/item-planet.json +++ b/examples/item-planet.json @@ -20,12 +20,14 @@ 8966, 4411 ], + "data_type": "uint16", + "nodata": 0, + "raster:sampling": "area", + "raster:spatial_resolution": 3, "bands": [ { "name": "band-1", "description": "Red TOA reflectance", - "data_type": "uint16", - "nodata": 0, "statistics": { "maximum": 32925, "mean": 8498.9400644319, @@ -35,10 +37,8 @@ }, "eo:common_name": "red", "eo:center_wavelength": 0.63, - "raster:sampling": "area", "raster:scale": 0.01, "raster:offset": 0, - "raster:spatial_resolution": 3, "raster:histogram": { "count": 256, "min": 1901.288235294118, @@ -306,8 +306,6 @@ { "name": "band-2", "description": "Green TOA reflectance", - "data_type": "uint16", - "nodata": 0, "statistics": { "maximum": 22063, "mean": 7185.2123645206, @@ -317,10 +315,8 @@ }, "eo:common_name": "green", "eo:center_wavelength": 0.545, - "raster:sampling": "area", "raster:scale": 0.0000196236732904, "raster:offset": 0, - "raster:spatial_resolution": 3, "raster:histogram": { "count": 256, "min": 3848.354901960784, @@ -588,8 +584,6 @@ { "name": "band-3", "description": "Blue TOA reflectance", - "data_type": "uint16", - "nodata": 0, "statistics": { "maximum": 29693, "mean": 5829.583942362, @@ -599,10 +593,8 @@ }, "eo:common_name": "blue", "eo:center_wavelength": 0.485, - "raster:sampling": "area", "raster:scale": 0.0000218499248607, "raster:offset": 0, - "raster:spatial_resolution": 3, "raster:histogram": { "count": 256, "min": 1004.858823529412, @@ -870,8 +862,6 @@ { "name": "band-4", "description": "NIR TOA reflectance", - "data_type": "uint16", - "nodata": 0, "statistics": { "maximum": 31836, "mean": 6785.2511255265, @@ -881,10 +871,8 @@ }, "eo:common_name": "nir", "eo:center_wavelength": 0.82, - "raster:sampling": "area", "raster:scale": 0.0000218499248607, "raster:offset": 0, - "raster:spatial_resolution": 3, "raster:histogram": { "count": 256, "min": 1625.880392156863, diff --git a/examples/item-sentinel2.json b/examples/item-sentinel2.json index b124a07..2168d8e 100644 --- a/examples/item-sentinel2.json +++ b/examples/item-sentinel2.json @@ -76,6 +76,7 @@ "overview" ], "gsd": 10, + "raster:spatial_resolution": 10, "bands": [ { "name": "B04", @@ -174,13 +175,22 @@ ] }, "B01": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B01.tif", "title": "Band 1 (coastal) BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 60, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B01.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 20567, + "mean": 2339.4759595597, + "stddev": 3026.6973619954, + "valid_percent": 99.83 + }, "proj:shape": [ 1830, 1830 @@ -196,34 +206,29 @@ 0, 1 ], - "bands": [ - { - "name": "B01", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 20567, - "mean": 2339.4759595597, - "stddev": 3026.6973619954, - "valid_percent": 99.83 - }, - "eo:common_name": "coastal", - "eo:center_wavelength": 0.4439, - "eo:full_width_half_max": 0.027, - "raster:spatial_resolution": 60, - "raster:bits_per_sample": 15 - } - ] + "eo:common_name": "coastal", + "eo:center_wavelength": 0.4439, + "eo:full_width_half_max": 0.027, + "raster:spatial_resolution": 60, + "raster:bits_per_sample": 15 }, "B02": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B02.tif", "title": "Band 2 (blue) BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 10, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B02.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 19264, + "mean": 2348.069117847, + "stddev": 2916.5446249911, + "valid_percent": 99.99 + }, "proj:shape": [ 10980, 10980 @@ -239,34 +244,29 @@ 0, 1 ], - "bands": [ - { - "name": "B02", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 19264, - "mean": 2348.069117847, - "stddev": 2916.5446249911, - "valid_percent": 99.99 - }, - "eo:common_name": "blue", - "eo:center_wavelength": 0.4966, - "eo:full_width_half_max": 0.098, - "raster:spatial_resolution": 10, - "raster:bits_per_sample": 15 - } - ] + "eo:common_name": "blue", + "eo:center_wavelength": 0.4966, + "eo:full_width_half_max": 0.098, + "raster:spatial_resolution": 10, + "raster:bits_per_sample": 15 }, "B03": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B03.tif", "title": "Band 3 (green) BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 10, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B03.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 18064, + "mean": 2384.4680007438, + "stddev": 2675.410513295, + "valid_percent": 99.999 + }, "proj:shape": [ 10980, 10980 @@ -282,34 +282,29 @@ 0, 1 ], - "bands": [ - { - "name": "B03", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 18064, - "mean": 2384.4680007438, - "stddev": 2675.410513295, - "valid_percent": 99.999 - }, - "eo:common_name": "green", - "eo:center_wavelength": 0.56, - "eo:full_width_half_max": 0.045, - "raster:spatial_resolution": 10, - "raster:bits_per_sample": 15 - } - ] + "eo:common_name": "green", + "eo:center_wavelength": 0.56, + "eo:full_width_half_max": 0.045, + "raster:spatial_resolution": 10, + "raster:bits_per_sample": 15 }, "B04": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B04.tif", "title": "Band 4 (red) BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 10, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B04.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 17200, + "mean": 2273.9667970732, + "stddev": 2618.272802792, + "valid_percent": 99.999 + }, "proj:shape": [ 10980, 10980 @@ -325,34 +320,29 @@ 0, 1 ], - "bands": [ - { - "name": "B04", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 17200, - "mean": 2273.9667970732, - "stddev": 2618.272802792, - "valid_percent": 99.999 - }, - "eo:common_name": "red", - "eo:center_wavelength": 0.6645, - "eo:full_width_half_max": 0.038, - "raster:spatial_resolution": 10, - "raster:bits_per_sample": 15 - } - ] + "eo:common_name": "red", + "eo:center_wavelength": 0.6645, + "eo:full_width_half_max": 0.038, + "raster:spatial_resolution": 10, + "raster:bits_per_sample": 15 }, "B05": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B05.tif", "title": "Band 5 BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 20, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B05.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 16842, + "mean": 2634.1490243416, + "stddev": 2634.1490243416, + "valid_percent": 99.999 + }, "proj:shape": [ 5490, 5490 @@ -368,33 +358,28 @@ 0, 1 ], - "bands": [ - { - "name": "B05", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 16842, - "mean": 2634.1490243416, - "stddev": 2634.1490243416, - "valid_percent": 99.999 - }, - "eo:center_wavelength": 0.7039, - "eo:full_width_half_max": 0.019, - "raster:spatial_resolution": 20, - "raster:bits_per_sample": 15 - } - ] + "eo:center_wavelength": 0.7039, + "eo:full_width_half_max": 0.019, + "raster:spatial_resolution": 20, + "raster:bits_per_sample": 15 }, "B06": { + "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B06.tif", "title": "Band 6 BOA reflectance", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": [ "data" ], "gsd": 20, - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/B06.tif", + "data_type": "uint16", + "nodata": 0, + "statistics": { + "minimum": 1, + "maximum": 16502, + "mean": 3329.8844628619, + "stddev": 2303.0096294469, + "valid_percent": 99.999 + }, "proj:shape": [ 5490, 5490 @@ -410,70 +395,10 @@ 0, 1 ], - "bands": [ - { - "name": "B06", - "data_type": "uint16", - "nodata": 0, - "statistics": { - "minimum": 1, - "maximum": 16502, - "mean": 3329.8844628619, - "stddev": 2303.0096294469, - "valid_percent": 99.999 - }, - "eo:center_wavelength": 0.7402, - "eo:full_width_half_max": 0.018, - "raster:spatial_resolution": 20, - "raster:bits_per_sample": 15 - } - ] - }, - "AOT": { - "title": "Aerosol Optical Thickness (AOT)", - "type": "image/tiff; application=geotiff; profile=cloud-optimized", - "roles": [ - "data" - ], - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/AOT.tif", - "proj:shape": [ - 1830, - 1830 - ], - "proj:transform": [ - 60, - 0, - 399960, - 0, - -60, - 4200000, - 0, - 0, - 1 - ] - }, - "WVP": { - "title": "Water Vapour (WVP)", - "type": "image/tiff; application=geotiff; profile=cloud-optimized", - "roles": [ - "data" - ], - "href": "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/33/S/VB/2021/2/S2B_33SVB_20210221_0_L2A/WVP.tif", - "proj:shape": [ - 10980, - 10980 - ], - "proj:transform": [ - 10, - 0, - 399960, - 0, - -10, - 4200000, - 0, - 0, - 1 - ] + "eo:center_wavelength": 0.7402, + "eo:full_width_half_max": 0.018, + "raster:spatial_resolution": 20, + "raster:bits_per_sample": 15 }, "SCL": { "title": "Scene Classification Map (SCL)", @@ -496,7 +421,8 @@ 0, 0, 1 - ] + ], + "raster:spatial_resolution": 20 } }, "links": [