GES DISC data access

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
arshid
Posts: 1
Joined: Thu Sep 07, 2023 12:00 pm America/New_York
Answers: 0

GES DISC data access

by arshid » Thu Sep 07, 2023 12:02 pm America/New_York

request.get(URL) gives response 401 in python requests using colab.research.google.com

Tags:

GES DISC - mgreene
User Services
User Services
Posts: 176
Joined: Wed Sep 25, 2019 9:35 am America/New_York
Answers: 2
Been thanked: 1 time

Re: GES DISC data access

by GES DISC - mgreene » Thu Sep 07, 2023 2:05 pm America/New_York

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.

Post Reply