I am probably missing something very basic. But I don't understand how could I provide a directory tree in JSON or CSV format when the -s argument requires me to provide a URL?
I tried a couple of things:
- providing URL from the earthdata download status page: https://search.earthdata.nasa.gov/downloads/0318464386. when I do this, the code gives me a new error: "filesize = int(f['size'])"
- providing a csv file containing hundreds of URLs from my local drive. When I do that, I get another error: "Failed to make request: unknown url type: c" telling me it expects a URL and not a CSV file.
I don't know how to provide a CSV or JSON file using a URL when the CSV file is stored locally.
As an alternative, you may also explore LAADS Web Service API-V2 to automate data search and download. You can find information about this option at:
and a tuorial at:
We apologize for all the confusion.
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email firstname.lastname@example.org with “subscribe” in the subject line.