splat-scripts icon indicating copy to clipboard operation
splat-scripts copied to clipboard

Change data source to NASA's Land Processes Distributed Active Archive Center (LP DAAC)

Open carter opened this issue 4 years ago • 1 comments

The previous data source is no longer available and the script in its current state doesn't work. The USGS will only allow you to download their data using EarthExplorer which does not seem easy to script.

I did however find similar (or possibly the same) data from NASA that while it requires a username and password, it's easily scripted once you have that. A login is freely available. The only downside to this data source is that it isn't broken down by continent so your only real option is to download the whole world. You could possibly expand the script to download between certain lat/lng but for now it downloads the whole world. As such, I removed the script to get datafiles for North America.

carter avatar Mar 03 '21 19:03 carter

The read -s option failed for me, using debian with dash as /bin/sh. Please replace the two read calls with this code:

IFS=
echo -n "NASA Earthdata Username: "
read -r NASA_USERNAME 
stty -echo
echo -n "NASA Earthdata password: "
read -r NASA_PASSWORD
stty echo
echo

molo1134 avatar Mar 04 '21 05:03 molo1134