CDDIS archive file download with C#

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
maxbar
Posts: 1
Joined: Tue Sep 28, 2021 7:02 am America/New_York
Answers: 0

CDDIS archive file download with C#

by maxbar » Tue Sep 28, 2021 8:22 am America/New_York

I am trying to download the data files as described in this article:
https://wiki.earthdata.nasa.gov/pages/v ... d=76519934
but I get plain HTML instead of data archive after second redirect to https://urs.earthdata.nasa.gov/oauth/au ... client_id=...
Tried different options, using WebClient instead of HttpWebRequest, parsing hidden html fields, etc., but so far to no avail.
Also tried to load data with Wget, as described here: https://wiki.earthdata.nasa.gov/display ... L+And+Wget and it gives the same result unless I use the '--auth-no-challenge' switch.
Of course a simple C# solution without calling Wget exists, so if anyone has come across it, please tell

Tags:

ASDC - ingridgs
Subject Matter Expert
Subject Matter Expert
Posts: 142
Joined: Fri Apr 23, 2021 9:14 am America/New_York
Answers: 1
Has thanked: 17 times
Been thanked: 7 times

Re: CDDIS archive file download with C#

by ASDC - ingridgs » Thu Sep 30, 2021 1:58 pm America/New_York

Thank you for your question. A Subject Matter Expert has been notified and will answer your question shortly. Please stand by!

cynthia.hall
Subject Matter Expert
Subject Matter Expert
Posts: 3
Joined: Thu Sep 12, 2019 10:25 am America/New_York
Answers: 0

Re: CDDIS archive file download with C#

by cynthia.hall » Thu Sep 30, 2021 2:05 pm America/New_York

I am not able to answer your question directly about the C# code, but I do know CDDIS discontinued some services in October 2020, which may have affected some things. Take a look at the data access options at https://cddis.nasa.gov/Data_and_Derived ... ccess.html and see if this provides some insight. If not, please let us know and we will try to figure things out further.
Thanks!

Post Reply