Skip to content

Commit

Permalink
missing 'collection', fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pritamd47 committed Apr 3, 2024
1 parent 1cf562d commit 6a87e0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions notebooks/data-intake-ms-planetary-computer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that we have the ID of the of interest, we can specify certain filters to narrow down to exactly the data we want to look at. The final visualization in the recipe will look at how the NCAR Mesa Lab, Boulder CO looks like throughout the year as seen from space. To narrow down our search, we will use the following criteria -\n",
"Now that we have the ID of the collection of interest, we can specify certain filters to narrow down to exactly the data we want to look at. The final visualization in the recipe will look at how the NCAR Mesa Lab, Boulder CO looks like throughout the year as seen from space. To narrow down our search, we will use the following criteria -\n",
"- Bounding box: We will limit our spatial extent to the bounding box of the NCAR Mesa Lab region.\n",
"- Date range: We will look at the year 2022\n",
"- : `sentinel-2-l2a` (from previous cell)\n",
"- Collection: `sentinel-2-l2a` (from previous cell)\n",
"- Cloud threshold: Since cloud can block the satellite from making an observation of the ground, we will limit our search to satellite images where the cloud cover is less than a certain threshold, 40% in this case.\n",
"\n",
"Feel free to change these filtering paramters to suit your needs when running in an interactive session."
Expand All @@ -182,7 +182,7 @@
"source": [
"bbox = [-105.283263,39.972809,-105.266569,39.987640] # NCAR, boulder, CO. bbox from http://bboxfinder.com/\n",
"date_range = \"2022-01-01/2022-12-31\"\n",
" = \"sentinel-2-l2a\" # full id of \n",
"collection = \"sentinel-2-l2a\" # full id of collection\n",
"cloud_thresh = 30"
]
},
Expand All @@ -193,21 +193,21 @@
"outputs": [],
"source": [
"search = catalog.search(\n",
" s = sentinel2_s,\n",
" collections = sentinel2_collections,\n",
" bbox = bbox,\n",
" datetime = date_range,\n",
" query={\"eo:cloud_cover\": {\"lt\": cloud_thresh}}\n",
")\n",
"items = search.item_()\n",
"print(f\"Found {len(items)} items in the {}\")"
"items = search.item_collection()\n",
"print(f\"Found {len(items)} items in the {collection}\")"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"We now have an Item with the data that we need. Let's look at one of the items in the collection and explore what assets it has."
"We now have an ItemCollection with the data that we need. Let's look at one of the items in the collection and explore what assets it has."
]
},
{
Expand Down Expand Up @@ -500,7 +500,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6a87e0b

Please sign in to comment.