Skip to content

Commit 6a87e0b

Browse files
committed
missing 'collection', fix typo
1 parent 1cf562d commit 6a87e0b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

notebooks/data-intake-ms-planetary-computer.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@
165165
"cell_type": "markdown",
166166
"metadata": {},
167167
"source": [
168-
"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",
168+
"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",
169169
"- Bounding box: We will limit our spatial extent to the bounding box of the NCAR Mesa Lab region.\n",
170170
"- Date range: We will look at the year 2022\n",
171-
"- : `sentinel-2-l2a` (from previous cell)\n",
171+
"- Collection: `sentinel-2-l2a` (from previous cell)\n",
172172
"- 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",
173173
"\n",
174174
"Feel free to change these filtering paramters to suit your needs when running in an interactive session."
@@ -182,7 +182,7 @@
182182
"source": [
183183
"bbox = [-105.283263,39.972809,-105.266569,39.987640] # NCAR, boulder, CO. bbox from http://bboxfinder.com/\n",
184184
"date_range = \"2022-01-01/2022-12-31\"\n",
185-
" = \"sentinel-2-l2a\" # full id of \n",
185+
"collection = \"sentinel-2-l2a\" # full id of collection\n",
186186
"cloud_thresh = 30"
187187
]
188188
},
@@ -193,21 +193,21 @@
193193
"outputs": [],
194194
"source": [
195195
"search = catalog.search(\n",
196-
" s = sentinel2_s,\n",
196+
" collections = sentinel2_collections,\n",
197197
" bbox = bbox,\n",
198198
" datetime = date_range,\n",
199199
" query={\"eo:cloud_cover\": {\"lt\": cloud_thresh}}\n",
200200
")\n",
201-
"items = search.item_()\n",
202-
"print(f\"Found {len(items)} items in the {}\")"
201+
"items = search.item_collection()\n",
202+
"print(f\"Found {len(items)} items in the {collection}\")"
203203
]
204204
},
205205
{
206206
"attachments": {},
207207
"cell_type": "markdown",
208208
"metadata": {},
209209
"source": [
210-
"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."
210+
"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."
211211
]
212212
},
213213
{
@@ -500,7 +500,7 @@
500500
"name": "python",
501501
"nbconvert_exporter": "python",
502502
"pygments_lexer": "ipython3",
503-
"version": "3.11.4"
503+
"version": "3.12.2"
504504
}
505505
},
506506
"nbformat": 4,

0 commit comments

Comments
 (0)