nasa / python_cmr

Python library for querying the common metadata repository.
MIT License
24 stars 22 forks source link

Adding sort_keys #17

Closed eudoroolivares2016 closed 1 year ago

eudoroolivares2016 commented 1 year ago

Minor spelling fixes

adds sort keys for granules will do collections some other time

testing: start up python in the repo

from cmr import CollectionQuery, GranuleQuery, ToolQuery, ServiceQuery, VariableQuery import json api = GranuleQuery() api.parameters(short_name="OMNO2", version="003", provider='GES_DISC', sort_key='-start_date') granules = api.get(10)`

print(json.dumps(granules, indent=1))

ensure that the returned granules are sorted by the sort_key

briannapagan commented 1 year ago

We're in need of this feature at GES DISC - I had put in a request to be maintainer to help approve PRs months ago for python-cmr but it was never approved. Can I nudge @frankinspace to review/approve?