curl 'https://cmr.earthdata.nasa.gov/search/granules?bounding_box=-122.5%2C37.5%2C-122.0%2C38.0&page_size=5' \
-d '{"errors": ["The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov."]}'
import requests
resp = requests.get(
"https://cmr.earthdata.nasa.gov/search/granules",
params={
'bounding_box': '-122.5,37.5,-122.0,38.0',
'page_size': '5',
},
json={
'errors': ['The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov.'],
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("nasa-earthdata-cmr")
result = api.fetch("granules", bounding_box="-122.5,37.5,-122.0,38.0", page_size=5)
for item in result:
print(item)
const body = {
"errors": [
"The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov."
]
};
const resp = await fetch("https://cmr.earthdata.nasa.gov/search/granules?bounding_box=-122.5%2C37.5%2C-122.0%2C38.0&page_size=5", {
body: JSON.stringify(body),
});
const data = await resp.json();
Search granules by temporal range and cloud covercurl
curl 'https://cmr.earthdata.nasa.gov/search/granules?temporal=2023-06-01T00%3A00%3A00Z%2C2023-06-30T23%3A59%3A59Z&cloud_cover=0%2C20&page_size=10' \
-d '{"errors": ["The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov."]}'
import requests
resp = requests.get(
"https://cmr.earthdata.nasa.gov/search/granules",
params={
'temporal': '2023-06-01T00:00:00Z,2023-06-30T23:59:59Z',
'cloud_cover': '0,20',
'page_size': '10',
},
json={
'errors': ['The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov.'],
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("nasa-earthdata-cmr")
result = api.fetch("granules", temporal="2023-06-01T00:00:00Z,2023-06-30T23:59:59Z", cloud_cover="0,20", page_size=10)
for item in result:
print(item)
const body = {
"errors": [
"The CMR does not allow querying across granules in all collections. To help optimize your search, you should limit your query using conditions that identify one or more collections, such as provider, provider_id, concept_id, collection_concept_id, short_name, version or entry_title. For any questions please contact cmr-support@nasa.gov."
]
};
const resp = await fetch("https://cmr.earthdata.nasa.gov/search/granules?temporal=2023-06-01T00%3A00%3A00Z%2C2023-06-30T23%3A59%3A59Z&cloud_cover=0%2C20&page_size=10", {
body: JSON.stringify(body),
});
const data = await resp.json();
Search granules by collection concept ID with platform filtercurl
import zingu_apis
api = zingu_apis.api("nasa-earthdata-cmr")
result = api.fetch("granules", collection_concept_id="C1443528505-LAADS", platform="MODIS", page_size=5)
for item in result:
print(item)
const resp = await fetch("https://cmr.earthdata.nasa.gov/search/granules?collection_concept_id=C1443528505-LAADS&platform=MODIS&page_size=5");
const data = await resp.json();
import zingu_apis
api = zingu_apis.api("nasa-earthdata-cmr")
result = api.fetch("granules", bounding_box="-180,-90,180,90")
for item in result:
print(item)
const resp = await fetch("https://cmr.earthdata.nasa.gov/search/granules?bounding_box=-180%2C-90%2C180%2C90");
const data = await resp.json();