v0.4.6
This is the first formal release under the new name. 0.4.6 will be available in both pypi and conda-forge.
The first thing to mention is the new API notation that should evolve to support all the use cases,
import earthaccess
earthaccess.login(strategy="netrc")
granules = earthaccess.search_data(params)
earthaccess.download(granules, local_path= "./test")
is equivalent to
from earthdata import Store, Auth, DataGranules
auth = Auth()
auth.login(strategy="netrc")
store = Store(auth)
granules = DataGranules().params(params).get()
store.get(granules, local_path="./test")
We can still use the classes the same way but eventually we should support only module-level API.
Features:
- search datasets by DOI, e.g.
datasets = earthaccess.search_datasets(
doi="10.5067/AQR50-3Q7CS"
cloud_hosted=True
)
searching by DOI should usually return only one dataset but I'm not sure what would happen if the same data is also in the cloud so to be sure we can use the cloud_hosted
parameter if we want to operate on the AWS hosted version.
The documentation started to get updated and soon we should have a "gallery" with more examples of how to use the library.