Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Search improvements #267

Merged
merged 9 commits into from
Jul 31, 2023
Merged

Search improvements #267

merged 9 commits into from
Jul 31, 2023

Conversation

betolink
Copy link
Member

@betolink betolink commented Jul 26, 2023

Features:

  • we can search by doi at the granule level, if a collection is found earthaccess will grab the concept_id and search using it.
  • users will be able to use pattern matching on the granule file names!
  • README is now using the SSHA dataset from PODAAC as is simpler to explain and work with compared to ATL data, closes ATL06 example in readme results in ValueError #241
  • The granule representation removed the spatial output in favor of a simpler is_cloud_hosted until we have a nicer spatial formatter (it was a blob of json)

Bug fixes:

Documentation:

CI:

  • integration tests are only going to run on pushes to main
  • documentation is only going to be updated when we update main
    TODO:
  • documentation needs more work and we need to fill the placeholders

Using a doi to get granules directly is not supported by CMR as not all collections have a DOI or some have multiple dois but it is a common way of identifying a dataset. If a collection is associated to a DOI earthaccess can use it to get to the data.

    results = earthaccess.search_data(
        doi = "10.5067/SLREF-CDRV3",
        temporal=("2001-05", "2001-06")
    )

another common access pattern is to filter using regexes on the granule names, this is now supported:

    results = earthaccess.search_data(
        doi = "10.5067/SLREF-CDRV3",
        temporal=("2001-01", "2002-01"),
        granule_name="*2001.01-*.nc"
    )

@github-actions
Copy link

github-actions bot commented Jul 26, 2023

Binder 👈 Launch a binder notebook on this branch for commit ba5b2fb

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit f830d70

@betolink betolink marked this pull request as ready for review July 27, 2023 17:23
@betolink betolink merged commit 3387cc9 into main Jul 31, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant