#!/bin/bash # change the following four lines of code to the values you need, # including your download token, which, if you don't already have one, # you can get from # https://ladsweb.modaps.eosdis.nasa.gov # Login there using Profile->Login menu, then use the # Profile->GenerateToken menu to generate one. Copy it and paste # below replacing "your-download-token-goes-here". product=MCD64A1 collection=6 year=2002 token=your-download-token-goes-here until wget -e robots=off -m -np -R .html,.tmp,.json,.csv -nH --header="Authorization: Bearer $token" https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/$collection/$product/$year/ do echo "Trying again in 10 seconds..." sleep 10 done