wget download sp3 files

Please enter here to ask a question about any NASA Science related topics!
Post Reply
zhw_123
Posts: 4
Joined: Wed May 19, 2021 3:59 am America/New_York

wget download sp3 files

by zhw_123 » Tue May 25, 2021 7:53 am America/New_York

I use wget to download the sp3 files and created the .netrc file, included the line with username and passwd.

wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies https://cddis.nasa.gov/archive/gnss/pro ... WDAY.sp3.Z

But the file is corrupted and cannot be used. I need some help

Thanks

Tags:

CDDIS_support_Lori
User Services
User Services
Posts: 50
Joined: Mon Sep 30, 2019 11:17 am America/New_York

Re: wget download sp3 files

by CDDIS_support_Lori » Tue May 25, 2021 11:38 am America/New_York

Have you looked at the wget examples on https://cddis.nasa.gov/Data_and_Derived ... ccess.html?

zhw_123
Posts: 4
Joined: Wed May 19, 2021 3:59 am America/New_York

Re: wget download sp3 files

by zhw_123 » Tue May 25, 2021 9:34 pm America/New_York

Yes, I also try this method

wget --auth-no-challenge "https://cddis.nasa.gov/archive/doris/da ... 7001.001.Z"

But, the sp3 also corrupted and the it shows as the following:

--2021-05-26 09:32:43-- https://cddis.nasa.gov/archive/gnss/pro ... 1176.sp3.Z
Resolving cddis.nasa.gov (cddis.nasa.gov)... 198.118.199.52
Connecting to cddis.nasa.gov (cddis.nasa.gov)|198.118.199.52|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/au ... zYuc3AzLlo [following]
--2021-05-26 09:32:45-- https://urs.earthdata.nasa.gov/oauth/au ... zYuc3AzLlo
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'wum21176.sp3.Z'

0K .......... .. 57.1K=0.2s

2021-05-26 09:32:46 (57.1 KB/s) - 'wum21176.sp3.Z' saved [12561]

Thanks

CDDIS_support_Lori
User Services
User Services
Posts: 50
Joined: Mon Sep 30, 2019 11:17 am America/New_York

Re: wget download sp3 files

by CDDIS_support_Lori » Wed May 26, 2021 11:30 am America/New_York

The most common problem is that the .netrc file is not set up correctly. That file also has to be in your home directory. Here is a link to the instructions for setting it up: https://cddis.nasa.gov/Data_and_Derived ... cFile.html

Post Reply