Skip to content

Commit bb53ea5

Browse files
committed
User ORNL CLOUD for collections search
1 parent debbb0a commit bb53ea5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/quickstart.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,15 @@ of the results from the search, so it may take some time to retrieve all the pag
166166
item_collection = search.item_collection()
167167
item_collection.save_object("my_itemcollection.json")
168168
169-
Some STAC APIs also implement the Collection Search Extension.
169+
Some STAC APIs also implement the Collection Search Extension. Earth Search does not, so we use the
170+
ORNL_CLOUD CMR-STAC Catalog instead:
170171

171172
.. code-block:: python
172173
173-
client = Client.open("https://emc.spacebel.be")
174-
174+
client = Client.open("https://cmr.earthdata.nasa.gov/stac/ORNL_CLOUD")
175175
collection_search = client.collection_search(
176-
q='Sentinel-6',
176+
q="rain",
177177
)
178-
179178
print(f"{collection_search.matched()} collections found")
180179
181180
@@ -184,6 +183,6 @@ resulting collections.
184183

185184
.. code-block:: python
186185
187-
for collection in collection_search.collections_as_dicts():
188-
print(collection.get("id"))
186+
for collection in collection_search.collections():
187+
print(collection.id)
189188

pystac_client/collection_search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ def matched(self) -> int | None:
372372
count = len(page["collections"])
373373

374374
for page in iter:
375-
print(f"found {len(page['collections'])} on the next page")
376375
count += len(page["collections"])
377376

378377
found = count

0 commit comments

Comments
 (0)