Search found 8 matches

by njester
Mon Nov 15, 2021 9:18 am America/New_York
Forum: Questions/Comments
Question: Downloading ASDC Data with Python 3
Replies: 9

Re: Downloading ASDC Data with Python 3

I figured out how to make it work on my machine... I am not sure why, but the username and password must be given as auth to the session.get method: ``` from getpass import getpass from pathlib import Path from requests import Session # Replace this URL with the URL you want to download url = "...
by njester
Tue Nov 02, 2021 12:12 pm America/New_York
Forum: Questions/Comments
Question: Download Multiple ASDC Files with Wget
Replies: 5

Re: Download Multiple ASDC Files with Wget

Note that there is a gotcha in this recipe. This line """ echo "machine urs.earthdata.nasa.gov login $USERNAME password $PASSWORD" > .netrc """ will overwrite whatever you had in your ~/.netrc. Backup often and stay safe :) That's a great point! I'll update t...
by njester
Wed Sep 29, 2021 1:58 pm America/New_York
Forum: Questions/Comments
Question: Downloading ASDC Data with Python 3
Replies: 9

Re: Downloading ASDC Data with Python 3

Hello, I have tried the code for multiple file downloading. I'm wondering how to download the real capacities of file. In my case, I want to download the Calipso VFM at September, 2010 (https://asdc.larc.nasa.gov/data/CALIPSO/LID_L2_VFM-Standard-V4-20/2010/09). I got 93kb for every file. I'm beginn...
by njester
Thu Aug 19, 2021 4:35 pm America/New_York
Forum: Questions/Comments
Question: Download Multiple ASDC Files with Wget
Replies: 5

Re: Download Multiple ASDC Files with Wget

I am trying to adapt this script to allow me to download all of the file locations within a particular directory, specifically https://asdc.larc.nasa.gov/data/DSCOVR/EPIC/L2_CLOUD_03 using the --spider option but it only downloads the index.html.* files rather than rejecting them. Can you assist? T...
by njester
Mon May 24, 2021 11:49 am America/New_York
Forum: Questions/Comments
Question: Downloading ASDC Data with Python 3
Replies: 9

Downloading ASDC Data with Python 3

Below, there are two example scripts, the first downloads a file and the second downloads multiple files. The following code requires The requests package which can be installed from the command line or terminal using the following command: pip install requests Python 3.6 or newer. To check Python's...
by njester
Mon May 24, 2021 11:44 am America/New_York
Forum: Questions/Comments
Question: Download Multiple ASDC Files with Wget
Replies: 5

Download Multiple ASDC Files with Wget

The following allows you to download data from https://asdc.larc.nasa.gov/data/ using linux, a mac, or Windows with Cygin. 1) If you haven't before, create an authentication cookie that can be used with to access files behind the EarthData login page. Please note, if you already have a .netrc file, ...
by njester
Mon May 24, 2021 11:35 am America/New_York
Forum: Questions/Comments
Question: Download a File with cURL or Wget
Replies: 0

Download a File with cURL or Wget

The following allows you to download data from https://asdc.larc.nasa.gov/data/ using linux, a mac, or Windows with Cygin. 1) If you haven't before, create an authentication cookie that can be used with to access files behind the EarthData login page. USERNAME=<your earthdata username> PASSWORD=<you...
by njester
Sat Mar 06, 2021 9:04 am America/New_York
Forum: Questions/Comments
Question: downloading CALIPSO data from one directory
Replies: 3

Re: downloading CALIPSO data from one directory

Also, it looks like the link to earthdata login didn't make it into the above post, but since you were able to log into the forum, your Earthdata login should be fine.