nsidc / earthaccess

Python Library for NASA Earthdata APIs
https://earthaccess.readthedocs.io/
MIT License
428 stars 85 forks source link

Save and load search results. #306

Open betolink opened 1 year ago

betolink commented 1 year ago

There are use cases when we would like to store the results of a search for future use. One of such use cases is for when we are testing the same set of files or datasets, or in case CMR is down. This will look like:

results = earthaccess.search_data(params)
earthaccess.save(results, "query.json")

# later on...

results = earthaccess.load("query.json")

The query will also have the original query to CMR to compare integrity.

asteiker commented 1 month ago

@betolink Is this something you would still like to pursue?

jhkennedy commented 1 month ago

Yes, I think this is something still worth persuing and upcoming changes to search_data should make this easer.