GES DISC data access
GES DISC data access
request.get(URL) gives response 401 in python requests using colab.research.google.com
Tags:
-
- User Services
- Posts: 166
- Joined: Wed Sep 25, 2019 9:35 am America/New_York
- Been thanked: 1 time
Re: GES DISC data access
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.
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.