Search found 6 matches

by tahersima
Fri Mar 10, 2023 11:33 am America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Re: Python script to download VIIRS data doesn't work after Jan 2023

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 cou...
by tahersima
Wed Mar 08, 2023 12:16 pm America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Re: Python script to download VIIRS data doesn't work after Jan 2023

I also thought it could be because of file type but couldn't figure out what. Example of the URLs that I am trying to download is: https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/5200/VNP02MOD/2022/365/VNP02MOD.A2022365.2142.002.2023001063801.nc The file contains NetCDF4 scenes captured by S-...
by tahersima
Fri Mar 03, 2023 8:58 am America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Re: Python script to download VIIRS data doesn't work after Jan 2023

Unfortunately, it didn't resolve the issue. The error remains exactly the same:

in geturl
return fh.read().decode('utf-8')

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
by tahersima
Thu Feb 02, 2023 3:25 pm America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Re: Python script to download VIIRS data doesn't work after Jan 2023

Thank you for referring me to the python script example for LAADS DAAC data. I configured the arguments with the URL and a token. But it throws the following error: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte. This happens at this line 'return fh.read().decode('utf-8')'. I...
by tahersima
Thu Jan 26, 2023 9:34 am America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Re: Python script to download VIIRS data doesn't work after Jan 2023

You are absolutely right. Although they have .nc at the end of file name, they are just html files telling me to "Please copy and save the token below for use with any supported LAADS download utilities or scripts." I know how to generate tokens from NRT, but don't know how to use them in ...
by tahersima
Wed Jan 25, 2023 3:07 pm America/New_York
Forum: Questions/Comments
Question: Python script to download VIIRS data doesn't work after Jan 2023
Replies: 11

Python script to download VIIRS data doesn't work after Jan 2023

Hello, I have a python code (the second code from https://urs.earthdata.nasa.gov/documentation/for_users/data_access/python) to configure a connection and download data from Earthdata. In 2022 I could download thousands of URLs using that scripts. But starting January 2023 the code hasn't been worki...