Replies: 2 comments 5 replies
-
|
I've been kicking the tires on an idea in my head, so will give others the chance to as well. Could a single
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for opening this discussion @itcarroll! We had some discussion about the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Transferring to discussion a couple conversations (one taken up in #770, which I'm closing in favor of this Discussion, and one from 2024-01-07 Hackday) regarding top-level
earthaccessuser experience, particularlysearch*andopen*functions.We describe our public API within
earthaccess.__init__.pyas follows.https://github.com/nsidc/earthaccess/blob/91866ac18e806e2d53d6b68cd000fa372c3e010f/earthaccess/__init__.py#L33-L67
My summary of the current status:
search*entry points in theapimodule:search_datasets,search_data, andsearch_services. Discussion in consider alternative names forsearch_dataandsearch_datasets#770 was tending toward a renaming ofsearch_tofind_(thanks @chuckwondo for the excellent analogy tosearch_bags), and also towards renaming_datasetsto_collectionsand_datato_items(although there was not consensus on_items) to align with STAC vocabulary.granule_queryandcollection_queryas "lower-level" (i.e. morepython-cmrlike) access to CMR results.openentry point in theapimodule and twoopen_virtual_*entry points in thedmrpp_zarrmodule.openreturns a list of file-like objects like you get fromwith fsspec.open_files(...) as.open_virtual_[mf]datasetreturns a dataset like you get fromxarray.open_[mf]dataset.Take this thread anywhere you want, but the concern I have is whether each new underscore detracts from the user experience. I'd like to think a user should not even need to be familiar with the difference between CMR collection vs granule queries nor have to know that the data accessed comes from a "virtual" dataset.
The work being done in #898 and towards
smart_openshould be kept in mind here too.Beta Was this translation helpful? Give feedback.
All reactions