Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable STAC Output #81

Closed
scottyhq opened this issue Aug 29, 2024 · 2 comments
Closed

Enable STAC Output #81

scottyhq opened this issue Aug 29, 2024 · 2 comments

Comments

@scottyhq
Copy link
Contributor

CMR supports STAC result format for collection/granule retrieval and granule searches: https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html#stac

But currently python_cmr doesn't support it:

_valid_formats_regex = [
"json", "xml", "echo10", "iso", "iso19115",
"csv", "atom", "kml", "native"
]

It would be great to support this output format! I made some small changes on a new branch to allow this develop...scottyhq:python_cmr:stac let me know if you're open to a pull request.

Basic usage:

api = GranuleQuery() 
search = api.parameters(
    point=(-105.78, 35.79),
    temporal=('2021-02-01','2021-03-01'),
    collection_concept_id='C2021957657-LPCLOUD'  # Required for STAC search
)
items = search.format("stac").get()
@chuckwondo
Copy link
Collaborator

Sure thing! Please do submit a PR.

@chuckwondo
Copy link
Collaborator

Fixed by #82

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants