Page 1 of 1

GES DISC data access

Posted: Thu Sep 07, 2023 12:02 pm America/New_York
by arshid
request.get(URL) gives response 401 in python requests using colab.research.google.com

Re: GES DISC data access

Posted: Thu Sep 07, 2023 2:05 pm America/New_York
by mgreene
Please take a look at the following How-to's.

The 'requests' section of this how-to demonstrates downloading granules with requests: https://disc.gsfc.nasa.gov/information/howto?keywords=requests&title=How%20to%20Access%20GES%20DISC%20Data%20Using%20Python

However, the 401 error is most likely caused by missing credential files inside the Colab environment. There is a Python code in this how-to that generates those as well: https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Generate%20Earthdata%20Prerequisite%20Files

Hope this helps.