How to bulk download LP DAAC data using Curl

This guide shows how to bulk download LP DAAC data using cURL from the command line. cURL is a free and open source software developed under Client for URLs (cURL) project as a command line tool for transfering data using URLs.

Requirements:

Step 2: Set up a .netrc file for Authentication

Follow the instruction on how to create a .netrc file here to set up the file using your Earthdata Login Credentials.

Step 3: Download LP DAAC Data

You should now be able to run the command to download data directly from the LP DAAC. - Navigate to the directory you want to save the data using cd Insert_Your_Directory. - To download a single file, replace the Insert_the_Download_Link in the command below with the URL to the data file you wish to download. curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n Insert_the_Download_Link Example: tet curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T12SWF.2023189T175919.v2.0/HLS.S30.T12SWF.2023189T175919.v2.0.B08.tif - To download multiple files, replace Insert_Text_File in the command below with the full path to the text file saved previously in Step 1. xargs -n 1 curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n < Insert_Text_File

Example: xargs -n 1 curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n < data/Granule-DownloadLinks.txt