{ "cells": [ { "cell_type": "markdown", "id": "23374c2d-0b01-496c-8171-3abf13dc77d4", "metadata": {}, "source": [ "## Reading Data from the STAC API\n", "\n", "The Planetary Computer catalogs the datasets we host using the [STAC](http://stacspec.org/) (SpatioTemporal Asset Catalog) specification. We provide a [STAC API](https://github.com/radiantearth/stac-api-spec) endpoint for searching our datasets by space, time, and more. This quickstart will show you how to search for data using our STAC API and open-source Python libraries. To use our STAC API from R, see [Reading data from the STAC API with R](https://planetarycomputer.microsoft.com/docs/quickstarts/reading-stac-r/).\n", "\n", "To get started you'll need the [pystac-client](https://github.com/stac-utils/pystac-client) library installed. You can install it via pip:\n", "\n", "```\n", "> python -m pip install pystac-client\n", "```\n", "\n", "To access the data, we'll create a `pystac_client.Client`. We'll explain the `modifier` part later on, but it's what lets us download the data assets Azure Blob Storage." ] }, { "cell_type": "code", "execution_count": 1, "id": "fda5e533-84b8-4051-9198-2df74338ae71", "metadata": { "tags": [] }, "outputs": [], "source": [ "import pystac_client\n", "import planetary_computer\n", "\n", "catalog = pystac_client.Client.open(\n", " \"https://planetarycomputer.microsoft.com/api/stac/v1\",\n", " modifier=planetary_computer.sign_inplace,\n", ")" ] }, { "cell_type": "markdown", "id": "b1f7ef57-45db-49ef-9065-4515157d23fb", "metadata": {}, "source": [ "### Searching\n", "\n", "We can use the STAC API to search for assets meeting some criteria. This might include the date and time the asset covers, is spatial extent, or any other property captured in the STAC item's metadata.\n", "\n", "In this example we'll search for imagery from [Landsat Collection 2 Level-2](https://planetarycomputer.microsoft.com/dataset/landsat-c2-l2) area around Microsoft's main campus in December of 2020." ] }, { "cell_type": "code", "execution_count": 2, "id": "2ec73f94-3989-49cf-920a-fde66c7946b8", "metadata": { "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/srv/conda/envs/notebook/lib/python3.11/site-packages/pystac_client/item_search.py:841: FutureWarning: get_all_items() is deprecated, use item_collection() instead.\n", " warnings.warn(\n" ] }, { "data": { "text/plain": [ "8" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "time_range = \"2020-12-01/2020-12-31\"\n", "bbox = [-122.2751, 47.5469, -121.9613, 47.7458]\n", "\n", "search = catalog.search(collections=[\"landsat-c2-l2\"], bbox=bbox, datetime=time_range)\n", "items = search.get_all_items()\n", "len(items)" ] }, { "cell_type": "markdown", "id": "84143827-ff63-4946-a995-ebc101f18d52", "metadata": {}, "source": [ "In that example our spatial query used a bounding box with a `bbox`. Alternatively, you can pass a GeoJSON object as `intersects`\n", "\n", "```python\n", "area_of_interest = {\n", " \"type\": \"Polygon\",\n", " \"coordinates\": [\n", " [\n", " [-122.2751, 47.5469],\n", " [-121.9613, 47.9613],\n", " [-121.9613, 47.9613],\n", " [-122.2751, 47.9613],\n", " [-122.2751, 47.5469],\n", " ]\n", " ],\n", "}\n", "\n", "time_range = \"2020-12-01/2020-12-31\"\n", "\n", "search = catalog.search(\n", " collections=[\"landsat-c2-l2\"], intersects=area_of_interest, datetime=time_range\n", ")\n", "```" ] }, { "cell_type": "markdown", "id": "aedaf9f7-1ba2-472d-85e1-5838e7df9ffb", "metadata": {}, "source": [ "`items` is a [`pystac.ItemCollection`](https://pystac.readthedocs.io/en/stable/api/item_collection.html#pystac-item-collection). We can see that 4 items matched our search criteria." ] }, { "cell_type": "code", "execution_count": 3, "id": "c62e1ca1-0be3-45a6-bb8a-5fd048a5478c", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/plain": [ "8" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(items)" ] }, { "cell_type": "markdown", "id": "6b36c181-a163-4e40-9ad0-3accacc82010", "metadata": {}, "source": [ "Each [`pystac.Item`](https://pystac.readthedocs.io/en/stable/api/pystac.html#pystac.Item) in this `ItemCollection` includes all the metadata for that scene. [STAC Items](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md) are GeoJSON features, and so can be loaded by libraries like [geopandas](http://geopandas.readthedocs.io/)." ] }, { "cell_type": "code", "execution_count": 4, "id": "b95c28ed-0ab1-4d4c-aa0f-a0382f694238", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
\n", " | geometry | \n", "gsd | \n", "created | \n", "sci:doi | \n", "datetime | \n", "platform | \n", "proj:epsg | \n", "proj:shape | \n", "description | \n", "instruments | \n", "... | \n", "landsat:wrs_row | \n", "landsat:scene_id | \n", "landsat:wrs_path | \n", "landsat:wrs_type | \n", "view:sun_azimuth | \n", "landsat:correction | \n", "view:sun_elevation | \n", "landsat:cloud_cover_land | \n", "landsat:collection_number | \n", "landsat:collection_category | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "POLYGON ((-122.72549 48.50884, -120.29248 48.0... | \n", "30 | \n", "2022-05-06T18:04:17.126358Z | \n", "10.5066/P9OGBGM6 | \n", "2020-12-29T18:55:56.738265Z | \n", "landsat-8 | \n", "32610 | \n", "[7881, 7781] | \n", "Landsat Collection 2 Level-2 | \n", "[oli, tirs] | \n", "... | \n", "027 | \n", "LC80460272020364LGN00 | \n", "046 | \n", "2 | \n", "162.253231 | \n", "L2SP | \n", "17.458298 | \n", "100.00 | \n", "02 | \n", "T2 | \n", "
1 | \n", "POLYGON ((-124.52046 48.44245, -121.93932 48.0... | \n", "30 | \n", "2022-05-06T17:25:29.626986Z | \n", "10.5066/P9C7I13B | \n", "2020-12-28T18:20:32.609164Z | \n", "landsat-7 | \n", "32610 | \n", "[7361, 8341] | \n", "Landsat Collection 2 Level-2 | \n", "[etm+] | \n", "... | \n", "027 | \n", "LE70470272020363EDC00 | \n", "047 | \n", "2 | \n", "152.689113 | \n", "L2SP | \n", "14.678880 | \n", "32.00 | \n", "02 | \n", "T1 | \n", "
2 | \n", "POLYGON ((-122.96802 48.44547, -120.39024 48.0... | \n", "30 | \n", "2022-05-06T18:01:04.319403Z | \n", "10.5066/P9C7I13B | \n", "2020-12-21T18:14:50.812768Z | \n", "landsat-7 | \n", "32610 | \n", "[7251, 8251] | \n", "Landsat Collection 2 Level-2 | \n", "[etm+] | \n", "... | \n", "027 | \n", "LE70460272020356EDC00 | \n", "046 | \n", "2 | \n", "153.649177 | \n", "L2SP | \n", "14.779612 | \n", "24.00 | \n", "02 | \n", "T2 | \n", "
3 | \n", "POLYGON ((-124.27547 48.50831, -121.84167 48.0... | \n", "30 | \n", "2022-05-06T17:46:22.246696Z | \n", "10.5066/P9OGBGM6 | \n", "2020-12-20T19:02:09.878796Z | \n", "landsat-8 | \n", "32610 | \n", "[7971, 7861] | \n", "Landsat Collection 2 Level-2 | \n", "[oli, tirs] | \n", "... | \n", "027 | \n", "LC80470272020355LGN00 | \n", "047 | \n", "2 | \n", "163.360118 | \n", "L2SP | \n", "17.414441 | \n", "100.00 | \n", "02 | \n", "T2 | \n", "
4 | \n", "POLYGON ((-122.72996 48.50858, -120.29690 48.0... | \n", "30 | \n", "2022-05-06T18:04:16.935800Z | \n", "10.5066/P9OGBGM6 | \n", "2020-12-13T18:56:00.096447Z | \n", "landsat-8 | \n", "32610 | \n", "[7881, 7781] | \n", "Landsat Collection 2 Level-2 | \n", "[oli, tirs] | \n", "... | \n", "027 | \n", "LC80460272020348LGN00 | \n", "046 | \n", "2 | \n", "164.126188 | \n", "L2SP | \n", "17.799744 | \n", "98.64 | \n", "02 | \n", "T2 | \n", "
5 | \n", "POLYGON ((-124.51935 48.44597, -121.93965 48.0... | \n", "30 | \n", "2022-05-06T17:25:29.412798Z | \n", "10.5066/P9C7I13B | \n", "2020-12-12T18:21:42.991249Z | \n", "landsat-7 | \n", "32610 | \n", "[7361, 8341] | \n", "Landsat Collection 2 Level-2 | \n", "[etm+] | \n", "... | \n", "027 | \n", "LE70470272020347EDC00 | \n", "047 | \n", "2 | \n", "154.692691 | \n", "L2SP | \n", "15.427422 | \n", "12.00 | \n", "02 | \n", "T1 | \n", "
6 | \n", "POLYGON ((-122.98709 48.44790, -120.40945 48.0... | \n", "30 | \n", "2022-05-06T18:01:04.178839Z | \n", "10.5066/P9C7I13B | \n", "2020-12-05T18:16:03.755599Z | \n", "landsat-7 | \n", "32610 | \n", "[7281, 8251] | \n", "Landsat Collection 2 Level-2 | \n", "[etm+] | \n", "... | \n", "027 | \n", "LE70460272020340EDC00 | \n", "046 | \n", "2 | \n", "155.308739 | \n", "L2SP | \n", "16.313570 | \n", "2.00 | \n", "02 | \n", "T1 | \n", "
7 | \n", "POLYGON ((-124.27385 48.50833, -121.83965 48.0... | \n", "30 | \n", "2022-05-06T17:46:22.097338Z | \n", "10.5066/P9OGBGM6 | \n", "2020-12-04T19:02:11.194486Z | \n", "landsat-8 | \n", "32610 | \n", "[7971, 7861] | \n", "Landsat Collection 2 Level-2 | \n", "[oli, tirs] | \n", "... | \n", "027 | \n", "LC80470272020339LGN00 | \n", "047 | \n", "2 | \n", "164.914060 | \n", "L2SP | \n", "18.807230 | \n", "1.90 | \n", "02 | \n", "T1 | \n", "
8 rows × 23 columns
\n", "┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ Asset Key ┃ Description ┃\n", "┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ qa │ Surface Temperature Quality Assessment Band │\n", "│ ang │ Angle Coefficients File │\n", "│ red │ Red Band │\n", "│ blue │ Blue Band │\n", "│ drad │ Downwelled Radiance Band │\n", "│ emis │ Emissivity Band │\n", "│ emsd │ Emissivity Standard Deviation Band │\n", "│ trad │ Thermal Radiance Band │\n", "│ urad │ Upwelled Radiance Band │\n", "│ atran │ Atmospheric Transmittance Band │\n", "│ cdist │ Cloud Distance Band │\n", "│ green │ Green Band │\n", "│ nir08 │ Near Infrared Band 0.8 │\n", "│ lwir11 │ Surface Temperature Band │\n", "│ swir16 │ Short-wave Infrared Band 1.6 │\n", "│ swir22 │ Short-wave Infrared Band 2.2 │\n", "│ coastal │ Coastal/Aerosol Band │\n", "│ mtl.txt │ Product Metadata File (txt) │\n", "│ mtl.xml │ Product Metadata File (xml) │\n", "│ mtl.json │ Product Metadata File (json) │\n", "│ qa_pixel │ Pixel Quality Assessment Band │\n", "│ qa_radsat │ Radiometric Saturation and Terrain Occlusion Quality Assessment Band │\n", "│ qa_aerosol │ Aerosol Quality Assessment Band │\n", "│ tilejson │ TileJSON with default rendering │\n", "│ rendered_preview │ Rendered preview │\n", "└──────────────────┴──────────────────────────────────────────────────────────────────────┘\n", "\n" ], "text/plain": [ "┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃\u001b[1m \u001b[0m\u001b[1mAsset Key \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mDescription \u001b[0m\u001b[1m \u001b[0m┃\n", "┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ qa │ Surface Temperature Quality Assessment Band │\n", "│ ang │ Angle Coefficients File │\n", "│ red │ Red Band │\n", "│ blue │ Blue Band │\n", "│ drad │ Downwelled Radiance Band │\n", "│ emis │ Emissivity Band │\n", "│ emsd │ Emissivity Standard Deviation Band │\n", "│ trad │ Thermal Radiance Band │\n", "│ urad │ Upwelled Radiance Band │\n", "│ atran │ Atmospheric Transmittance Band │\n", "│ cdist │ Cloud Distance Band │\n", "│ green │ Green Band │\n", "│ nir08 │ Near Infrared Band 0.8 │\n", "│ lwir11 │ Surface Temperature Band │\n", "│ swir16 │ Short-wave Infrared Band 1.6 │\n", "│ swir22 │ Short-wave Infrared Band 2.2 │\n", "│ coastal │ Coastal/Aerosol Band │\n", "│ mtl.txt │ Product Metadata File (txt) │\n", "│ mtl.xml │ Product Metadata File (xml) │\n", "│ mtl.json │ Product Metadata File (json) │\n", "│ qa_pixel │ Pixel Quality Assessment Band │\n", "│ qa_radsat │ Radiometric Saturation and Terrain Occlusion Quality Assessment Band │\n", "│ qa_aerosol │ Aerosol Quality Assessment Band │\n", "│ tilejson │ TileJSON with default rendering │\n", "│ rendered_preview │ Rendered preview │\n", "└──────────────────┴──────────────────────────────────────────────────────────────────────┘\n" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import rich.table\n", "\n", "table = rich.table.Table(\"Asset Key\", \"Description\")\n", "for asset_key, asset in selected_item.assets.items():\n", " table.add_row(asset_key, asset.title)\n", "\n", "table" ] }, { "cell_type": "markdown", "id": "fe4053e4-6c1e-46b7-947d-79811a2877e4", "metadata": {}, "source": [ "Here, we'll inspect the `rendered_preview` asset." ] }, { "cell_type": "code", "execution_count": 7, "id": "f175aa10-8f97-4ea3-8fda-c6fe4469baea", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/plain": [ "{'href': 'https://planetarycomputer.microsoft.com/api/data/v1/item/preview.png?collection=landsat-c2-l2&item=LC08_L2SP_047027_20201204_02_T1&assets=red&assets=green&assets=blue&color_formula=gamma+RGB+2.7%2C+saturation+1.5%2C+sigmoidal+RGB+15+0.55&format=png',\n", " 'type': 'image/png',\n", " 'title': 'Rendered preview',\n", " 'rel': 'preview',\n", " 'roles': ['overview']}" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "selected_item.assets[\"rendered_preview\"].to_dict()" ] }, { "cell_type": "code", "execution_count": 8, "id": "50535606-4891-40d4-9e52-7d0056583681", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "
<xarray.DataArray 'stackstac-58124a3f2aeb9e86fe45c8d5489954e7' (time: 8,\n", " band: 22,\n", " y: 7972,\n", " x: 12372)>\n", "dask.array<fetch_raster_window, shape=(8, 22, 7972, 12372), dtype=float64, chunksize=(1, 1, 1024, 1024), chunktype=numpy.ndarray>\n", "Coordinates: (12/31)\n", " * time (time) datetime64[ns] 2020-12-04T19:02:11.19...\n", " id (time) <U31 'LC08_L2SP_047027_20201204_02_T1...\n", " * band (band) <U13 'qa' 'red' ... 'atmos_opacity'\n", " * x (x) float64 3.339e+05 3.339e+05 ... 7.05e+05\n", " * y (y) float64 5.374e+06 5.374e+06 ... 5.135e+06\n", " landsat:wrs_type <U1 '2'\n", " ... ...\n", " title (band) object 'Surface Temperature Quality A...\n", " classification:bitfields (band) object None None ... None\n", " common_name (band) object None None None ... None None\n", " center_wavelength (band) object None None None ... None None\n", " full_width_half_max (band) object None None None ... 2.05 None None\n", " epsg int64 32610\n", "Attributes:\n", " spec: RasterSpec(epsg=32610, bounds=(333870.0, 5135070.0, 705030.0...\n", " crs: epsg:32610\n", " transform: | 30.00, 0.00, 333870.00|\\n| 0.00,-30.00, 5374230.00|\\n| 0.0...\n", " resolution: 30.0
\n", " | name | \n", "common_name | \n", "description | \n", "center_wavelength | \n", "full_width_half_max | \n", "
---|---|---|---|---|---|
0 | \n", "TM_B1 | \n", "blue | \n", "Visible blue (Thematic Mapper) | \n", "0.49 | \n", "0.07 | \n", "
1 | \n", "TM_B2 | \n", "green | \n", "Visible green (Thematic Mapper) | \n", "0.56 | \n", "0.08 | \n", "
2 | \n", "TM_B3 | \n", "red | \n", "Visible red (Thematic Mapper) | \n", "0.66 | \n", "0.06 | \n", "
3 | \n", "TM_B4 | \n", "nir08 | \n", "Near infrared (Thematic Mapper) | \n", "0.83 | \n", "0.14 | \n", "
4 | \n", "TM_B5 | \n", "swir16 | \n", "Short-wave infrared (Thematic Mapper) | \n", "1.65 | \n", "0.20 | \n", "
5 | \n", "TM_B6 | \n", "lwir | \n", "Long-wave infrared (Thematic Mapper) | \n", "11.45 | \n", "2.10 | \n", "
6 | \n", "TM_B7 | \n", "swir22 | \n", "Short-wave infrared (Thematic Mapper) | \n", "2.22 | \n", "0.27 | \n", "
7 | \n", "ETM_B1 | \n", "blue | \n", "Visible blue (Enhanced Thematic Mapper Plus) | \n", "0.48 | \n", "0.07 | \n", "
8 | \n", "ETM_B2 | \n", "green | \n", "Visible green (Enhanced Thematic Mapper Plus) | \n", "0.56 | \n", "0.08 | \n", "
9 | \n", "ETM_B3 | \n", "red | \n", "Visible red (Enhanced Thematic Mapper Plus) | \n", "0.66 | \n", "0.06 | \n", "
10 | \n", "ETM_B4 | \n", "nir08 | \n", "Near infrared (Enhanced Thematic Mapper Plus) | \n", "0.84 | \n", "0.13 | \n", "
11 | \n", "ETM_B5 | \n", "swir16 | \n", "Short-wave infrared (Enhanced Thematic Mapper ... | \n", "1.65 | \n", "0.20 | \n", "
12 | \n", "ETM_B6 | \n", "lwir | \n", "Long-wave infrared (Enhanced Thematic Mapper P... | \n", "11.34 | \n", "2.05 | \n", "
13 | \n", "ETM_B7 | \n", "swir22 | \n", "Short-wave infrared (Enhanced Thematic Mapper ... | \n", "2.20 | \n", "0.28 | \n", "
14 | \n", "OLI_B1 | \n", "coastal | \n", "Coastal/Aerosol (Operational Land Imager) | \n", "0.44 | \n", "0.02 | \n", "
15 | \n", "OLI_B2 | \n", "blue | \n", "Visible blue (Operational Land Imager) | \n", "0.48 | \n", "0.06 | \n", "
16 | \n", "OLI_B3 | \n", "green | \n", "Visible green (Operational Land Imager) | \n", "0.56 | \n", "0.06 | \n", "
17 | \n", "OLI_B4 | \n", "red | \n", "Visible red (Operational Land Imager) | \n", "0.65 | \n", "0.04 | \n", "
18 | \n", "OLI_B5 | \n", "nir08 | \n", "Near infrared (Operational Land Imager) | \n", "0.87 | \n", "0.03 | \n", "
19 | \n", "OLI_B6 | \n", "swir16 | \n", "Short-wave infrared (Operational Land Imager) | \n", "1.61 | \n", "0.09 | \n", "
20 | \n", "OLI_B7 | \n", "swir22 | \n", "Short-wave infrared (Operational Land Imager) | \n", "2.20 | \n", "0.19 | \n", "
21 | \n", "TIRS_B10 | \n", "lwir11 | \n", "Long-wave infrared (Thermal Infrared Sensor) | \n", "10.90 | \n", "0.59 | \n", "
\n", " | title | \n", "description | \n", "gsd | \n", "
---|---|---|---|
qa | \n", "Surface Temperature Quality Assessment Band | \n", "Collection 2 Level-2 Quality Assessment Band (... | \n", "NaN | \n", "
ang | \n", "Angle Coefficients File | \n", "Collection 2 Level-1 Angle Coefficients File | \n", "NaN | \n", "
red | \n", "Red Band | \n", "NaN | \n", "NaN | \n", "
blue | \n", "Blue Band | \n", "NaN | \n", "NaN | \n", "
drad | \n", "Downwelled Radiance Band | \n", "Collection 2 Level-2 Downwelled Radiance Band ... | \n", "NaN | \n", "
emis | \n", "Emissivity Band | \n", "Collection 2 Level-2 Emissivity Band (ST_EMIS)... | \n", "NaN | \n", "
emsd | \n", "Emissivity Standard Deviation Band | \n", "Collection 2 Level-2 Emissivity Standard Devia... | \n", "NaN | \n", "
lwir | \n", "Surface Temperature Band | \n", "Collection 2 Level-2 Thermal Infrared Band (ST... | \n", "NaN | \n", "
trad | \n", "Thermal Radiance Band | \n", "Collection 2 Level-2 Thermal Radiance Band (ST... | \n", "NaN | \n", "
urad | \n", "Upwelled Radiance Band | \n", "Collection 2 Level-2 Upwelled Radiance Band (S... | \n", "NaN | \n", "
atran | \n", "Atmospheric Transmittance Band | \n", "Collection 2 Level-2 Atmospheric Transmittance... | \n", "NaN | \n", "
cdist | \n", "Cloud Distance Band | \n", "Collection 2 Level-2 Cloud Distance Band (ST_C... | \n", "NaN | \n", "
green | \n", "Green Band | \n", "NaN | \n", "NaN | \n", "
nir08 | \n", "Near Infrared Band 0.8 | \n", "NaN | \n", "NaN | \n", "
lwir11 | \n", "Surface Temperature Band | \n", "Collection 2 Level-2 Thermal Infrared Band (ST... | \n", "100.0 | \n", "
swir16 | \n", "Short-wave Infrared Band 1.6 | \n", "NaN | \n", "NaN | \n", "
swir22 | \n", "Short-wave Infrared Band 2.2 | \n", "Collection 2 Level-2 Short-wave Infrared Band ... | \n", "NaN | \n", "
coastal | \n", "Coastal/Aerosol Band | \n", "Collection 2 Level-2 Coastal/Aerosol Band (SR_... | \n", "NaN | \n", "
mtl.txt | \n", "Product Metadata File (txt) | \n", "Collection 2 Level-2 Product Metadata File (txt) | \n", "NaN | \n", "
mtl.xml | \n", "Product Metadata File (xml) | \n", "Collection 2 Level-2 Product Metadata File (xml) | \n", "NaN | \n", "
cloud_qa | \n", "Cloud Quality Assessment Band | \n", "Collection 2 Level-2 Cloud Quality Assessment ... | \n", "NaN | \n", "
mtl.json | \n", "Product Metadata File (json) | \n", "Collection 2 Level-2 Product Metadata File (json) | \n", "NaN | \n", "
qa_pixel | \n", "Pixel Quality Assessment Band | \n", "Collection 2 Level-1 Pixel Quality Assessment ... | \n", "NaN | \n", "
qa_radsat | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
qa_aerosol | \n", "Aerosol Quality Assessment Band | \n", "Collection 2 Level-2 Aerosol Quality Assessmen... | \n", "NaN | \n", "
atmos_opacity | \n", "Atmospheric Opacity Band | \n", "Collection 2 Level-2 Atmospheric Opacity Band ... | \n", "NaN | \n", "
<xarray.Dataset>\n", "Dimensions: (time: 14965, y: 8075, x: 7814, nv: 2)\n", "Coordinates:\n", " lat (y, x) float32 dask.array<chunksize=(284, 584), meta=np.ndarray>\n", " lon (y, x) float32 dask.array<chunksize=(284, 584), meta=np.ndarray>\n", " * time (time) datetime64[ns] 1980-01-01T12:00:00 ... 20...\n", " * x (x) float32 -4.56e+06 -4.559e+06 ... 3.253e+06\n", " * y (y) float32 4.984e+06 4.983e+06 ... -3.09e+06\n", "Dimensions without coordinates: nv\n", "Data variables:\n", " dayl (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " lambert_conformal_conic int16 ...\n", " prcp (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " srad (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " swe (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " time_bnds (time, nv) datetime64[ns] dask.array<chunksize=(365, 2), meta=np.ndarray>\n", " tmax (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " tmin (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " vp (time, y, x) float32 dask.array<chunksize=(365, 284, 584), meta=np.ndarray>\n", " yearday (time) int16 dask.array<chunksize=(365,), meta=np.ndarray>\n", "Attributes:\n", " Conventions: CF-1.6\n", " Version_data: Daymet Data Version 4.0\n", " Version_software: Daymet Software Version 4.0\n", " citation: Please see http://daymet.ornl.gov/ for current Daymet ...\n", " references: Please see http://daymet.ornl.gov/ for current informa...\n", " source: Daymet Software Version 4.0\n", " start_year: 1980