cmr-stac
cmr-stac copied to clipboard
Limited results returned for Client.open('https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS')
I'm trying to use cmr-stac to search collections at NSIDC. However, the following code only returns 10 datasets. It appears that their is a limit on the dataset. I get a similar result for PODAAC collections. Is there a work around for this or is it a bug?
from pystac_client import Client
nsidc_cat = Client.open('https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS')
nsidc_cat.get_links()
[<Link rel=self target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS>,
<Link rel=root target=https://cmr.earthdata.nasa.gov/stac/>,
<Link rel=collections target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections>,
<Link rel=search target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/search>,
<Link rel=search target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/search>,
<Link rel=conformance target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/conformance>,
<Link rel=service-desc target=https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml>,
<Link rel=service-doc target=https://api.stacspec.org/v1.0.0-beta.1/index.html>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/ABLVIS0.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/ABOLVIS1A.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/ABLVIS1B.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/ABLVIS2.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AFLVIS0.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AFOLVIS1A.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AFLVIS1B.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AFLVIS2.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AU_Rain.v1>,
<Link rel=child target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS/collections/AU_Land.v1>,
<Link rel=next target=https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS?page=2>]
@andypbarrett you can increase the 'limit' for returned links, because the default is just 10 nsidc_cat = Client.open('https://cmr.earthdata.nasa.gov/stac/NSIDC_ECS?limit=50')
related issue in pystac_client: https://github.com/stac-utils/pystac-client/issues/115