nasa / eo-metadata-tools

eo-metadata-tools is a set of repositories for working with Earth Observation metadata. At its core are common libraries and demonstration scripts for accessing the Common Metadata Repository, to be accompanied by more specific modules and scripts to do dataset-specific queries, metadata validation, etc...
Apache License 2.0
25 stars 11 forks source link

CMR-6798 - Added the Granule Search, based on the Collection Search #8

Closed jceaser closed 3 years ago

jceaser commented 3 years ago

Description

Adds a Granule Search API based on the Collection API

Testing

import cmr.search.granule as gran
params = {'provider': 'ORNL_DAAC'}
results = gran.search(params)
print("Found {} records.".format(len(results)))
for i in results:
    print (i)