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
CDDIS archive file download with C#
-
- Posts: 196
- Joined: Fri Apr 23, 2021 9:14 am America/New_York
- Has thanked: 25 times
- Been thanked: 7 times
Re: CDDIS archive file download with C#
Thank you for your question. A Subject Matter Expert has been notified and will answer your question shortly. Please stand by!
-
- Subject Matter Expert
- Posts: 3
- Joined: Thu Sep 12, 2019 10:25 am America/New_York
Re: CDDIS archive file download with C#
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!
Thanks!