Re: Python script to download VIIRS data doesn't work after Jan 2023
Posted: Fri Mar 10, 2023 11:33 am America/New_York
Thanks! I need to download thousands of URLs, otherwise I could just download a single file from the browser!
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.
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.