diff --git a/pystac_client/item_search.py b/pystac_client/item_search.py index 9c6cb79c..1d42416b 100644 --- a/pystac_client/item_search.py +++ b/pystac_client/item_search.py @@ -176,8 +176,7 @@ class ItemSearch: *per page* of results. Defaults to 100. ids: List of one or more Item ids to filter on. collections: List of one or more Collection IDs or :class:`pystac.Collection` - instances. Only Items in one - of the provided Collections will be searched + instances. bbox: A list, tuple, or iterator representing a bounding box of 2D or 3D coordinates. Results will be filtered to only those intersecting the bounding box. diff --git a/tests/cassettes/test_item_search/test_multiple_collections.yaml b/tests/cassettes/test_item_search/test_multiple_collections.yaml new file mode 100644 index 00000000..57bf3f78 --- /dev/null +++ b/tests/cassettes/test_item_search/test_multiple_collections.yaml @@ -0,0 +1,322 @@ +interactions: +- request: + body: '{"datetime": "2023-10-08T00:00:00Z/2023-10-08T23:59:59Z", "collections": + ["sentinel-2-l2a", "landsat-c2-l2"], "intersects": {"type": "Point", "coordinates": + [-105.1019, 40.1672]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '179' + Content-Type: + - application/json + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://earth-search.aws.element84.com/v1/search + response: + body: + string: '{"type":"FeatureCollection","stac_version":"1.0.0","stac_extensions":[],"context":{"limit":10,"matched":2,"returned":2},"numberMatched":2,"numberReturned":2,"features":[{"type":"Feature","stac_version":"1.0.0","id":"S2A_13TDE_20231008_0_L2A","properties":{"created":"2023-10-09T01:25:21.658Z","platform":"sentinel-2a","constellation":"sentinel-2","instruments":["msi"],"eo:cloud_cover":0.000299,"proj:epsg":32613,"mgrs:utm_zone":13,"mgrs:latitude_band":"T","mgrs:grid_square":"DE","grid:code":"MGRS-13TDE","view:sun_azimuth":164.124647750547,"view:sun_elevation":42.6190810694869,"s2:degraded_msi_data_percentage":0.0082,"s2:nodata_pixel_percentage":0.000003,"s2:saturated_defective_pixel_percentage":0,"s2:dark_features_percentage":0.170444,"s2:cloud_shadow_percentage":0,"s2:vegetation_percentage":44.52863,"s2:not_vegetated_percentage":53.898722,"s2:water_percentage":1.342036,"s2:unclassified_percentage":0.000839,"s2:medium_proba_clouds_percentage":0.000236,"s2:high_proba_clouds_percentage":0.000063,"s2:thin_cirrus_percentage":0,"s2:snow_ice_percentage":0.059024,"s2:product_type":"S2MSI2A","s2:processing_baseline":"05.09","s2:product_uri":"S2A_MSIL2A_20231008T175231_N0509_R141_T13TDE_20231008T233154.SAFE","s2:generation_time":"2023-10-08T23:31:54.000000Z","s2:datatake_id":"GS2A_20231008T175231_043324_N05.09","s2:datatake_type":"INS-NOBS","s2:datastrip_id":"S2A_OPER_MSI_L2A_DS_2APS_20231008T233154_S20231008T175927_N05.09","s2:granule_id":"S2A_OPER_MSI_L2A_TL_2APS_20231008T233154_A043324_T13TDE_N05.09","s2:reflectance_conversion_factor":1.00015039292335,"datetime":"2023-10-08T18:02:55.276000Z","s2:sequence":"0","earthsearch:s3_path":"s3://sentinel-cogs/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A","earthsearch:payload_id":"roda-sentinel2/workflow-sentinel2-to-stac/c7ae14a8b6a95dd6baea9173ea99afab","earthsearch:boa_offset_applied":true,"processing:software":{"sentinel2-to-stac":"0.1.1"},"updated":"2023-10-09T01:25:21.658Z"},"geometry":{"type":"Polygon","coordinates":[[[-106.18316062292897,40.64478591807637],[-106.1661201925584,39.65576169772817],[-104.88623172845638,39.661560248682505],[-104.88456877606482,40.650789813976196],[-106.18316062292897,40.64478591807637]]]},"links":[{"rel":"self","type":"application/geo+json","href":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a/items/S2A_13TDE_20231008_0_L2A"},{"rel":"canonical","href":"s3://sentinel-cogs/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/S2A_13TDE_20231008_0_L2A.json","type":"application/json"},{"rel":"license","href":"https://sentinel.esa.int/documents/247904/690755/Sentinel_Data_Legal_Notice"},{"rel":"derived_from","href":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l1c/items/S2A_13TDE_20231008_0_L1C","type":"application/geo+json"},{"rel":"parent","type":"application/json","href":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a"},{"rel":"collection","type":"application/json","href":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a"},{"rel":"root","type":"application/json","href":"https://earth-search.aws.element84.com/v1"},{"rel":"thumbnail","href":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a/items/S2A_13TDE_20231008_0_L2A/thumbnail"}],"assets":{"aot":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/AOT.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Aerosol optical thickness + (AOT)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.001,"offset":0}],"roles":["data","reflectance"]},"blue":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B02.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Blue (band 2) - 10m","eo:bands":[{"name":"blue","common_name":"blue","description":"Blue + (band 2)","center_wavelength":0.49,"full_width_half_max":0.098}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"coastal":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B01.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Coastal aerosol (band + 1) - 60m","eo:bands":[{"name":"coastal","common_name":"coastal","description":"Coastal + aerosol (band 1)","center_wavelength":0.443,"full_width_half_max":0.027}],"gsd":60,"proj:shape":[1830,1830],"proj:transform":[60,0,399960,0,-60,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":60,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"granule_metadata":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/granule_metadata.xml","type":"application/xml","roles":["metadata"]},"green":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B03.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Green (band 3) - 10m","eo:bands":[{"name":"green","common_name":"green","description":"Green + (band 3)","center_wavelength":0.56,"full_width_half_max":0.045}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B08.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"NIR 1 (band 8) - 10m","eo:bands":[{"name":"nir","common_name":"nir","description":"NIR + 1 (band 8)","center_wavelength":0.842,"full_width_half_max":0.145}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir08":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B8A.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"NIR 2 (band 8A) - 20m","eo:bands":[{"name":"nir08","common_name":"nir08","description":"NIR + 2 (band 8A)","center_wavelength":0.865,"full_width_half_max":0.033}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir09":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B09.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"NIR 3 (band 9) - 60m","eo:bands":[{"name":"nir09","common_name":"nir09","description":"NIR + 3 (band 9)","center_wavelength":0.945,"full_width_half_max":0.026}],"gsd":60,"proj:shape":[1830,1830],"proj:transform":[60,0,399960,0,-60,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":60,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"red":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B04.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Red (band 4) - 10m","eo:bands":[{"name":"red","common_name":"red","description":"Red + (band 4)","center_wavelength":0.665,"full_width_half_max":0.038}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge1":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B05.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Red edge 1 (band 5) + - 20m","eo:bands":[{"name":"rededge1","common_name":"rededge","description":"Red + edge 1 (band 5)","center_wavelength":0.704,"full_width_half_max":0.019}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge2":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B06.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Red edge 2 (band 6) + - 20m","eo:bands":[{"name":"rededge2","common_name":"rededge","description":"Red + edge 2 (band 6)","center_wavelength":0.74,"full_width_half_max":0.018}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge3":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B07.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Red edge 3 (band 7) + - 20m","eo:bands":[{"name":"rededge3","common_name":"rededge","description":"Red + edge 3 (band 7)","center_wavelength":0.783,"full_width_half_max":0.028}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"scl":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/SCL.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Scene classification + map (SCL)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint8","spatial_resolution":20}],"roles":["data","reflectance"]},"swir16":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B11.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"SWIR 1 (band 11) - + 20m","eo:bands":[{"name":"swir16","common_name":"swir16","description":"SWIR + 1 (band 11)","center_wavelength":1.61,"full_width_half_max":0.143}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"swir22":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/B12.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"SWIR 2 (band 12) - + 20m","eo:bands":[{"name":"swir22","common_name":"swir22","description":"SWIR + 2 (band 12)","center_wavelength":2.19,"full_width_half_max":0.242}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"thumbnail":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/thumbnail.jpg","type":"image/jpeg","title":"Thumbnail + image","roles":["thumbnail"]},"tileinfo_metadata":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/tileinfo_metadata.json","type":"application/json","roles":["metadata"]},"visual":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/TCI.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"True color image","eo:bands":[{"name":"red","common_name":"red","description":"Red + (band 4)","center_wavelength":0.665,"full_width_half_max":0.038},{"name":"green","common_name":"green","description":"Green + (band 3)","center_wavelength":0.56,"full_width_half_max":0.045},{"name":"blue","common_name":"blue","description":"Blue + (band 2)","center_wavelength":0.49,"full_width_half_max":0.098}],"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"roles":["visual"]},"wvp":{"href":"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/13/T/DE/2023/10/S2A_13TDE_20231008_0_L2A/WVP.tif","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Water vapour (WVP)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"unit":"cm","scale":0.001,"offset":0}],"roles":["data","reflectance"]},"aot-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/AOT.jp2","type":"image/jp2","title":"Aerosol + optical thickness (AOT)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.001,"offset":0}],"roles":["data","reflectance"]},"blue-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B02.jp2","type":"image/jp2","title":"Blue + (band 2) - 10m","eo:bands":[{"name":"blue","common_name":"blue","description":"Blue + (band 2)","center_wavelength":0.49,"full_width_half_max":0.098}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"coastal-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B01.jp2","type":"image/jp2","title":"Coastal + aerosol (band 1) - 60m","eo:bands":[{"name":"coastal","common_name":"coastal","description":"Coastal + aerosol (band 1)","center_wavelength":0.443,"full_width_half_max":0.027}],"gsd":60,"proj:shape":[1830,1830],"proj:transform":[60,0,399960,0,-60,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":60,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"green-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B03.jp2","type":"image/jp2","title":"Green + (band 3) - 10m","eo:bands":[{"name":"green","common_name":"green","description":"Green + (band 3)","center_wavelength":0.56,"full_width_half_max":0.045}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B08.jp2","type":"image/jp2","title":"NIR + 1 (band 8) - 10m","eo:bands":[{"name":"nir","common_name":"nir","description":"NIR + 1 (band 8)","center_wavelength":0.842,"full_width_half_max":0.145}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir08-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B8A.jp2","type":"image/jp2","title":"NIR + 2 (band 8A) - 20m","eo:bands":[{"name":"nir08","common_name":"nir08","description":"NIR + 2 (band 8A)","center_wavelength":0.865,"full_width_half_max":0.033}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"nir09-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B09.jp2","type":"image/jp2","title":"NIR + 3 (band 9) - 60m","eo:bands":[{"name":"nir09","common_name":"nir09","description":"NIR + 3 (band 9)","center_wavelength":0.945,"full_width_half_max":0.026}],"gsd":60,"proj:shape":[1830,1830],"proj:transform":[60,0,399960,0,-60,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":60,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"red-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B04.jp2","type":"image/jp2","title":"Red + (band 4) - 10m","eo:bands":[{"name":"red","common_name":"red","description":"Red + (band 4)","center_wavelength":0.665,"full_width_half_max":0.038}],"gsd":10,"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":10,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge1-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B05.jp2","type":"image/jp2","title":"Red + edge 1 (band 5) - 20m","eo:bands":[{"name":"rededge1","common_name":"rededge","description":"Red + edge 1 (band 5)","center_wavelength":0.704,"full_width_half_max":0.019}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge2-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B06.jp2","type":"image/jp2","title":"Red + edge 2 (band 6) - 20m","eo:bands":[{"name":"rededge2","common_name":"rededge","description":"Red + edge 2 (band 6)","center_wavelength":0.74,"full_width_half_max":0.018}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"rededge3-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B07.jp2","type":"image/jp2","title":"Red + edge 3 (band 7) - 20m","eo:bands":[{"name":"rededge3","common_name":"rededge","description":"Red + edge 3 (band 7)","center_wavelength":0.783,"full_width_half_max":0.028}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"scl-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/SCL.jp2","type":"image/jp2","title":"Scene + classification map (SCL)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint8","spatial_resolution":20}],"roles":["data","reflectance"]},"swir16-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B11.jp2","type":"image/jp2","title":"SWIR + 1 (band 11) - 20m","eo:bands":[{"name":"swir16","common_name":"swir16","description":"SWIR + 1 (band 11)","center_wavelength":1.61,"full_width_half_max":0.143}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"swir22-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/B12.jp2","type":"image/jp2","title":"SWIR + 2 (band 12) - 20m","eo:bands":[{"name":"swir22","common_name":"swir22","description":"SWIR + 2 (band 12)","center_wavelength":2.19,"full_width_half_max":0.242}],"gsd":20,"proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"scale":0.0001,"offset":-0.1}],"roles":["data","reflectance"]},"visual-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/TCI.jp2","type":"image/jp2","title":"True + color image","eo:bands":[{"name":"red","common_name":"red","description":"Red + (band 4)","center_wavelength":0.665,"full_width_half_max":0.038},{"name":"green","common_name":"green","description":"Green + (band 3)","center_wavelength":0.56,"full_width_half_max":0.045},{"name":"blue","common_name":"blue","description":"Blue + (band 2)","center_wavelength":0.49,"full_width_half_max":0.098}],"proj:shape":[10980,10980],"proj:transform":[10,0,399960,0,-10,4500000],"roles":["visual"]},"wvp-jp2":{"href":"s3://sentinel-s2-l2a/tiles/13/T/DE/2023/10/8/0/WVP.jp2","type":"image/jp2","title":"Water + vapour (WVP)","proj:shape":[5490,5490],"proj:transform":[20,0,399960,0,-20,4500000],"raster:bands":[{"nodata":0,"data_type":"uint16","bits_per_sample":15,"spatial_resolution":20,"unit":"cm","scale":0.001,"offset":0}],"roles":["data","reflectance"]}},"bbox":[-106.18316062292897,39.65576169772817,-104.88456877606482,40.650789813976196],"stac_extensions":["https://stac-extensions.github.io/processing/v1.1.0/schema.json","https://stac-extensions.github.io/grid/v1.0.0/schema.json","https://stac-extensions.github.io/raster/v1.1.0/schema.json","https://stac-extensions.github.io/view/v1.0.0/schema.json","https://stac-extensions.github.io/projection/v1.1.0/schema.json","https://stac-extensions.github.io/mgrs/v1.0.0/schema.json","https://stac-extensions.github.io/eo/v1.1.0/schema.json"],"collection":"sentinel-2-l2a"},{"type":"Feature","stac_version":"1.0.0","id":"LC08_L2SP_033032_20231008_02_T1","properties":{"platform":"landsat-8","instruments":["oli","tirs"],"created":"2023-10-18T07:31:29.878Z","gsd":30,"description":"Landsat + Collection 2 Level-2","eo:cloud_cover":0.06,"view:off_nadir":0,"view:sun_elevation":41.18722795,"view:sun_azimuth":157.5994568,"proj:epsg":32613,"proj:shape":[7831,7711],"proj:transform":[30,0,449085,0,-30,4581915],"landsat:cloud_cover_land":0.06,"landsat:wrs_type":"2","landsat:wrs_path":"033","landsat:wrs_row":"032","landsat:collection_category":"T1","landsat:collection_number":"02","landsat:correction":"L2SP","landsat:scene_id":"LC80330322023281LGN00","sci:doi":"10.5066/P9OGBGM6","datetime":"2023-10-08T17:37:26.656958Z","earthsearch:payload_id":"usgs-landsat-c2l2/workflow-landsat-to-stac/LC08_L2SP_033032_20231008_20231017_02_T1_SR","processing:software":{"landsat-to-stac":"0.1.0"},"updated":"2023-10-18T07:31:29.878Z"},"geometry":{"type":"Polygon","coordinates":[[[-105.04670323039021,41.382809350013794],[-105.5642109040829,39.66577784361798],[-103.46604305388287,39.26994744234798],[-102.89210096366858,40.984398669248556],[-105.04670323039021,41.382809350013794]]]},"links":[{"rel":"self","type":"application/geo+json","href":"https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2/items/LC08_L2SP_033032_20231008_02_T1"},{"rel":"canonical","href":"s3://earthsearch-data/landsat-c2-l2/033/032/2023/10/LC08_L2SP_033032_20231008_02_T1/LC08_L2SP_033032_20231008_02_T1.json","type":"application/json"},{"rel":"cite-as","href":"https://doi.org/10.5066/P9OGBGM6","title":"Landsat + 8-9 OLI/TIRS Collection 2 Level-2"},{"rel":"via","href":"https://landsatlook.usgs.gov/stac-server/collections/landsat-c2l2-sr/items/LC08_L2SP_033032_20231008_20231017_02_T1_SR","type":"application/json","title":"USGS + STAC Item"},{"rel":"via","href":"https://landsatlook.usgs.gov/stac-server/collections/landsat-c2l2-st/items/LC08_L2SP_033032_20231008_20231017_02_T1_ST","type":"application/json","title":"USGS + STAC Item"},{"rel":"parent","type":"application/json","href":"https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2"},{"rel":"collection","type":"application/json","href":"https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2"},{"rel":"root","type":"application/json","href":"https://earth-search.aws.element84.com/v1"},{"rel":"thumbnail","href":"https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2/items/LC08_L2SP_033032_20231008_02_T1/thumbnail"}],"assets":{"thumbnail":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_thumb_small.jpeg","type":"image/jpeg","title":"Thumbnail + image","roles":["thumbnail"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"reduced_resolution_browse":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_thumb_large.jpeg","type":"image/jpeg","title":"Reduced + resolution browse image","roles":["overview"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"mtl.json":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_MTL.json","type":"application/json","title":"Product + Metadata File (json)","description":"Collection 2 Level-2 Product Metadata + File (json)","roles":["metadata"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"mtl.txt":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_MTL.txt","type":"text/plain","title":"Product + Metadata File (txt)","description":"Collection 2 Level-2 Product Metadata + File (txt)","roles":["metadata"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"mtl.xml":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_MTL.xml","type":"application/xml","title":"Product + Metadata File (xml)","description":"Collection 2 Level-2 Product Metadata + File (xml)","roles":["metadata"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"ang":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ANG.txt","type":"text/plain","title":"Angle + Coefficients File","description":"Collection 2 Level-1 Angle Coefficients + File","roles":["metadata"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"qa_pixel":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_QA_PIXEL.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Pixel Quality Assessment + Band","description":"Collection 2 Level-1 Pixel Quality Assessment Band (QA_PIXEL)","classification:bitfields":[{"name":"fill","description":"Image + or fill data","offset":0,"length":1,"classes":[{"value":0,"name":"not_fill","description":"Image + data"},{"value":1,"name":"fill","description":"Fill data"}]},{"name":"dilated_cloud","description":"Dilated + cloud","offset":1,"length":1,"classes":[{"value":0,"name":"not_dilated","description":"Cloud + is not dilated or no cloud"},{"value":1,"name":"dilated","description":"Cloud + dilation"}]},{"name":"cirrus","description":"Cirrus mask","offset":2,"length":1,"classes":[{"value":0,"name":"not_cirrus","description":"Cirrus + confidence is not high"},{"value":1,"name":"cirrus","description":"High confidence + cirrus"}]},{"name":"cloud","description":"Cloud mask","offset":3,"length":1,"classes":[{"value":0,"name":"not_cloud","description":"Cloud + confidence is not high"},{"value":1,"name":"cloud","description":"High confidence + cloud"}]},{"name":"cloud_shadow","description":"Cloud shadow mask","offset":4,"length":1,"classes":[{"value":0,"name":"not_shadow","description":"Cloud + shadow confidence is not high"},{"value":1,"name":"shadow","description":"High + confidence cloud shadow"}]},{"name":"snow","description":"Snow/Ice mask","offset":5,"length":1,"classes":[{"value":0,"name":"not_snow","description":"Snow/Ice + confidence is not high"},{"value":1,"name":"snow","description":"High confidence + snow cover"}]},{"name":"clear","description":"Clear mask","offset":6,"length":1,"classes":[{"value":0,"name":"not_clear","description":"Cloud + or dilated cloud bits are set"},{"value":1,"name":"clear","description":"Cloud + and dilated cloud bits are not set"}]},{"name":"water","description":"Water + mask","offset":7,"length":1,"classes":[{"value":0,"name":"not_water","description":"Land + or cloud"},{"value":1,"name":"water","description":"Water"}]},{"name":"cloud_confidence","description":"Cloud + confidence levels","offset":8,"length":2,"classes":[{"value":0,"name":"not_set","description":"No + confidence level set"},{"value":1,"name":"low","description":"Low confidence + cloud"},{"value":2,"name":"medium","description":"Medium confidence cloud"},{"value":3,"name":"high","description":"High + confidence cloud"}]},{"name":"cloud_shadow_confidence","description":"Cloud + shadow confidence levels","offset":10,"length":2,"classes":[{"value":0,"name":"not_set","description":"No + confidence level set"},{"value":1,"name":"low","description":"Low confidence + cloud shadow"},{"value":2,"name":"reserved","description":"Reserved - value + not used"},{"value":3,"name":"high","description":"High confidence cloud shadow"}]},{"name":"snow_confidence","description":"Snow/Ice + confidence levels","offset":12,"length":2,"classes":[{"value":0,"name":"not_set","description":"No + confidence level set"},{"value":1,"name":"low","description":"Low confidence + snow/ice"},{"value":2,"name":"reserved","description":"Reserved - value not + used"},{"value":3,"name":"high","description":"High confidence snow/ice"}]},{"name":"cirrus_confidence","description":"Cirrus + confidence levels","offset":14,"length":2,"classes":[{"value":0,"name":"not_set","description":"No + confidence level set"},{"value":1,"name":"low","description":"Low confidence + cirrus"},{"value":2,"name":"reserved","description":"Reserved - value not + used"},{"value":3,"name":"high","description":"High confidence cirrus"}]}],"raster:bands":[{"nodata":1,"data_type":"uint16","spatial_resolution":30,"unit":"bit + index"}],"roles":["cloud","cloud-shadow","snow-ice","water-mask"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"qa_radsat":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_QA_RADSAT.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Radiometric Saturation + and Terrain Occlusion Quality Assessment Band","description":"Collection 2 + Level-1 Radiometric Saturation and Terrain Occlusion Quality Assessment Band + (QA_RADSAT)","classification:bitfields":[{"name":"band1","description":"Band + 1 radiometric saturation","offset":0,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 1 not saturated"},{"value":1,"name":"saturated","description":"Band 1 saturated"}]},{"name":"band2","description":"Band + 2 radiometric saturation","offset":1,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 2 not saturated"},{"value":1,"name":"saturated","description":"Band 2 saturated"}]},{"name":"band3","description":"Band + 3 radiometric saturation","offset":2,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 3 not saturated"},{"value":1,"name":"saturated","description":"Band 3 saturated"}]},{"name":"band4","description":"Band + 4 radiometric saturation","offset":3,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 4 not saturated"},{"value":1,"name":"saturated","description":"Band 4 saturated"}]},{"name":"band5","description":"Band + 5 radiometric saturation","offset":4,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 5 not saturated"},{"value":1,"name":"saturated","description":"Band 5 saturated"}]},{"name":"band6","description":"Band + 6 radiometric saturation","offset":5,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 6 not saturated"},{"value":1,"name":"saturated","description":"Band 6 saturated"}]},{"name":"band7","description":"Band + 7 radiometric saturation","offset":6,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 7 not saturated"},{"value":1,"name":"saturated","description":"Band 7 saturated"}]},{"name":"band9","description":"Band + 9 radiometric saturation","offset":8,"length":1,"classes":[{"value":0,"name":"not_saturated","description":"Band + 9 not saturated"},{"value":1,"name":"saturated","description":"Band 9 saturated"}]},{"name":"occlusion","description":"Terrain + not visible from sensor due to intervening terrain","offset":11,"length":1,"classes":[{"value":0,"name":"not_occluded","description":"Terrain + is not occluded"},{"value":1,"name":"occluded","description":"Terrain is occluded"}]}],"raster:bands":[{"data_type":"uint16","spatial_resolution":30,"unit":"bit + index"}],"roles":["saturation"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"coastal":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B1.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Coastal/Aerosol Band","description":"Collection + 2 Level-2 Coastal/Aerosol Band (SR_B1) Surface Reflectance","eo:bands":[{"name":"OLI_B1","common_name":"coastal","description":"Coastal/Aerosol","center_wavelength":0.44,"full_width_half_max":0.02}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"blue":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B2.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Blue Band","description":"Collection + 2 Level-2 Blue Band (SR_B2) Surface Reflectance","eo:bands":[{"name":"OLI_B2","common_name":"blue","description":"Visible + blue","center_wavelength":0.48,"full_width_half_max":0.06}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"green":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B3.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Green Band","description":"Collection + 2 Level-2 Green Band (SR_B3) Surface Reflectance","eo:bands":[{"name":"OLI_B3","common_name":"green","description":"Visible + green","center_wavelength":0.56,"full_width_half_max":0.06}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"red":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B4.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Red Band","description":"Collection + 2 Level-2 Red Band (SR_B4) Surface Reflectance","eo:bands":[{"name":"OLI_B4","common_name":"red","description":"Visible + red","center_wavelength":0.65,"full_width_half_max":0.04}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"nir08":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B5.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Near Infrared Band + 0.8","description":"Collection 2 Level-2 Near Infrared Band 0.8 (SR_B5) Surface + Reflectance","eo:bands":[{"name":"OLI_B5","common_name":"nir08","description":"Near + infrared","center_wavelength":0.87,"full_width_half_max":0.03}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"swir16":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B6.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Short-wave Infrared + Band 1.6","description":"Collection 2 Level-2 Short-wave Infrared Band 1.6 + (SR_B6) Surface Reflectance","eo:bands":[{"name":"OLI_B6","common_name":"swir16","description":"Short-wave + infrared","center_wavelength":1.61,"full_width_half_max":0.09}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"swir22":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_B7.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Short-wave Infrared + Band 2.2","description":"Collection 2 Level-2 Short-wave Infrared Band 2.2 + (SR_B7) Surface Reflectance","eo:bands":[{"name":"OLI_B7","common_name":"swir22","description":"Short-wave + infrared","center_wavelength":2.2,"full_width_half_max":0.19}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"scale":0.0000275,"offset":-0.2}],"roles":["data","reflectance"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"qa_aerosol":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_SR_QA_AEROSOL.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Aerosol Quality Assessment + Band","description":"Collection 2 Level-2 Aerosol Quality Assessment Band + (SR_QA_AEROSOL) Surface Reflectance Product","classification:bitfields":[{"name":"fill","description":"Image + or fill data","offset":0,"length":1,"classes":[{"value":0,"name":"not_fill","description":"Pixel + is not fill"},{"value":1,"name":"fill","description":"Pixel is fill"}]},{"name":"retrieval","description":"Valid + aerosol retrieval","offset":1,"length":1,"classes":[{"value":0,"name":"not_valid","description":"Pixel + retrieval is not valid"},{"value":1,"name":"valid","description":"Pixel retrieval + is valid"}]},{"name":"water","description":"Water mask","offset":2,"length":1,"classes":[{"value":0,"name":"not_water","description":"Pixel + is not water"},{"value":1,"name":"water","description":"Pixel is water"}]},{"name":"interpolated","description":"Aerosol + interpolation","offset":5,"length":1,"classes":[{"value":0,"name":"not_interpolated","description":"Pixel + is not interpolated aerosol"},{"value":1,"name":"interpolated","description":"Pixel + is interpolated aerosol"}]},{"name":"level","description":"Aerosol level","offset":6,"length":2,"classes":[{"value":0,"name":"climatology","description":"No + aerosol correction applied"},{"value":1,"name":"low","description":"Low aerosol + level"},{"value":2,"name":"medium","description":"Medium aerosol level"},{"value":3,"name":"high","description":"High + aerosol level"}]}],"raster:bands":[{"nodata":1,"data_type":"uint8","spatial_resolution":30,"unit":"bit + index"}],"roles":["data-mask","water-mask"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"lwir11":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_B10.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Surface Temperature + Band","description":"Collection 2 Level-2 Thermal Infrared Band (ST_B10) Surface + Temperature","eo:bands":[{"name":"TIRS_B10","common_name":"lwir11","description":"Long-wave + infrared","center_wavelength":10.9,"full_width_half_max":0.59}],"raster:bands":[{"nodata":0,"data_type":"uint16","spatial_resolution":30,"unit":"kelvin","scale":0.00341802,"offset":149}],"gsd":100,"roles":["data","temperature"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"atran":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_ATRAN.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Atmospheric Transmittance + Band","description":"Collection 2 Level-2 Atmospheric Transmittance Band (ST_ATRAN) + Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"scale":0.0001}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"cdist":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_CDIST.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Cloud Distance Band","description":"Collection + 2 Level-2 Cloud Distance Band (ST_CDIST) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"unit":"kilometer","scale":0.01}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"drad":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_DRAD.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Downwelled Radiance + Band","description":"Collection 2 Level-2 Downwelled Radiance Band (ST_DRAD) + Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"unit":"watt/steradian/square_meter/micrometer","scale":0.001}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"urad":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_URAD.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Upwelled Radiance Band","description":"Collection + 2 Level-2 Upwelled Radiance Band (ST_URAD) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"unit":"watt/steradian/square_meter/micrometer","scale":0.001}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"trad":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_TRAD.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Thermal Radiance Band","description":"Collection + 2 Level-2 Thermal Radiance Band (ST_TRAD) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"unit":"watt/steradian/square_meter/micrometer","scale":0.001}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"emis":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_EMIS.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Emissivity Band","description":"Collection + 2 Level-2 Emissivity Band (ST_EMIS) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"scale":0.0001}],"roles":["data","emissivity"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"emsd":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_EMSD.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Emissivity Standard + Deviation Band","description":"Collection 2 Level-2 Emissivity Standard Deviation + Band (ST_EMSD) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"scale":0.0001}],"roles":["data","emissivity"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true},"qa":{"href":"s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2023/033/032/LC08_L2SP_033032_20231008_20231017_02_T1/LC08_L2SP_033032_20231008_20231017_02_T1_ST_QA.TIF","type":"image/tiff; + application=geotiff; profile=cloud-optimized","title":"Surface Temperature + Quality Assessment Band","description":"Collection 2 Level-2 Quality Assessment + Band (ST_QA) Surface Temperature Product","raster:bands":[{"nodata":-9999,"data_type":"int16","spatial_resolution":30,"unit":"kelvin","scale":0.01}],"roles":["data"],"storage:platform":"AWS","storage:region":"us-west-2","storage:requester_pays":true}},"bbox":[-105.608964,39.253445,-102.842801,41.387155],"stac_extensions":["https://stac-extensions.github.io/scientific/v1.0.0/schema.json","https://stac-extensions.github.io/classification/v1.0.0/schema.json","https://stac-extensions.github.io/raster/v1.1.0/schema.json","https://stac-extensions.github.io/projection/v1.0.0/schema.json","https://landsat.usgs.gov/stac/landsat-extension/v1.1.1/schema.json","https://stac-extensions.github.io/processing/v1.1.0/schema.json","https://stac-extensions.github.io/view/v1.0.0/schema.json","https://stac-extensions.github.io/eo/v1.0.0/schema.json","https://stac-extensions.github.io/storage/v1.0.0/schema.json"],"collection":"landsat-c2-l2"}],"links":[{"rel":"next","title":"Next + page of Items","method":"POST","type":"application/geo+json","href":"https://earth-search.aws.element84.com/v1/search","merge":false,"body":{"datetime":"2023-10-08T00:00:00Z/2023-10-08T23:59:59Z","intersects":{"type":"Point","coordinates":[-105.1019,40.1672]},"collections":["sentinel-2-l2a","landsat-c2-l2"],"next":"2023-10-08T17:37:26.656958Z,LC08_L2SP_033032_20231008_02_T1,landsat-c2-l2"}},{"rel":"root","type":"application/json","href":"https://earth-search.aws.element84.com/v1"}]}' + headers: + Connection: + - keep-alive + Content-Length: + - '46964' + Content-Type: + - application/geo+json; charset=utf-8 + Date: + - Wed, 18 Oct 2023 13:36:20 GMT + Via: + - 1.1 e466a87164c3f9591e3c8ac45a4b2074.cloudfront.net (CloudFront) + X-Amz-Cf-Id: + - ANdShHtZ4vA2pYAqPDzjtnDWdizPCLNTeqHEzZQsKXYGjjcaBwIWBw== + X-Amz-Cf-Pop: + - DEN52-C1 + X-Amzn-Trace-Id: + - Root=1-652fdf54-651527d56e4fdf04038e24ea;Sampled=0;lineage=9e2884e9:0 + X-Cache: + - Miss from cloudfront + access-control-allow-origin: + - '*' + etag: + - W/"b774-U2GHGx0t3F9SWlS/bx2Sr6NeEfQ" + x-amz-apigw-id: + - M__VOHKcvHcFpEA= + x-amzn-Remapped-content-length: + - '46964' + x-amzn-RequestId: + - 9b06fa1e-53a7-43e0-b069-761447678f3e + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"datetime": "2023-10-08T00:00:00Z/2023-10-08T23:59:59Z", "intersects": + {"type": "Point", "coordinates": [-105.1019, 40.1672]}, "collections": ["sentinel-2-l2a", + "landsat-c2-l2"], "next": "2023-10-08T17:37:26.656958Z,LC08_L2SP_033032_20231008_02_T1,landsat-c2-l2"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '264' + Content-Type: + - application/json + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://earth-search.aws.element84.com/v1/search + response: + body: + string: '{"type":"FeatureCollection","stac_version":"1.0.0","stac_extensions":[],"context":{"limit":10,"matched":2,"returned":0},"numberMatched":2,"numberReturned":0,"features":[],"links":[{"rel":"root","type":"application/json","href":"https://earth-search.aws.element84.com/v1"}]}' + headers: + Connection: + - keep-alive + Content-Length: + - '273' + Content-Type: + - application/geo+json; charset=utf-8 + Date: + - Wed, 18 Oct 2023 13:36:20 GMT + Via: + - 1.1 e466a87164c3f9591e3c8ac45a4b2074.cloudfront.net (CloudFront) + X-Amz-Cf-Id: + - iHgfHlRdzEb8nTDjBjKPFMqccgn7ZRGMD9rojqdRksG-FAXYnlRT5w== + X-Amz-Cf-Pop: + - DEN52-C1 + X-Amzn-Trace-Id: + - Root=1-652fdf54-1b2e3364134962315b11b5c1;Sampled=0;lineage=9e2884e9:0 + X-Cache: + - Miss from cloudfront + access-control-allow-origin: + - '*' + etag: + - W/"111-7vxaAljwSdJNfA0V9FinjXcubNg" + x-amz-apigw-id: + - M__VPHg8vHcF4ug= + x-amzn-Remapped-content-length: + - '273' + x-amzn-RequestId: + - b7a413a9-fd7e-4250-a1af-3f02057309a4 + x-powered-by: + - Express + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_item_search.py b/tests/test_item_search.py index 854ff36b..cca9d97b 100644 --- a/tests/test_item_search.py +++ b/tests/test_item_search.py @@ -814,3 +814,15 @@ def test_url_with_query_parameter() -> None: url = urllib.parse.urlparse(search.url_with_parameters()) query = urllib.parse.parse_qs(url.query) assert query["query"] == [r'{"eo:cloud_cover":{"lt":42}}'] + + +@pytest.mark.vcr +def test_multiple_collections() -> None: + search = ItemSearch( + url="https://earth-search.aws.element84.com/v1/search", + collections=["sentinel-2-l2a", "landsat-c2-l2"], + intersects={"type": "Point", "coordinates": [-105.1019, 40.1672]}, + datetime="2023-10-08", + ) + collections = set(item.collection_id for item in search.items()) + assert collections == {"sentinel-2-l2a", "landsat-c2-l2"}