earthaccess
earthaccess copied to clipboard
Use Short_name to search/query
The demos use concept_id to identify a particular dataset. It will be handy to add short_name as an option as an identifier.
Hi @jinbow, we can search using the short_name parameter, this is at the collection level
import earthdata as ed
# we build the query
query = ed.DataCollections().short_name("AQUARIUS_L2_SSS_CAP_V5")
# we get our matching collections
collections = query.get()
# we print a summary for the first collection in our results
collections[0].summary()
and this would be at the granule level
import earthdata as ed
query = ed.DataGranules().short_name("AQUARIUS_L2_SSS_CAP_V5").temporal("2013-01", "2013-02").bounding_box(0,60,10,90)
# matching granules
total_matches = query.hits()
# we fetch the granule's metadata
granules = query.get()
# say you only want the links
links = [g.data_links() for g in granules]
And soon we'll be able to use the DOI to search for data as well. I think we need more example notebooks to showcase all the neat things we can do with the library.