You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

SYNOPSIS
get_data.pl [options] [<url>]

Download data files from an Earthdata Login enabled server.

OPTIONS
-i file The name of a file that contains a list of URLs to download.
This option may be given multiple times.

--uid=uid or -u uid
The Earthdata Login username under which the files will be
downloaded. Note that there is no option to provide a password
on the command line. However, credentials may be pulled from a
.netrc file.

--netrc or -n
Pull the required Earthdata Login credentials from your .netrc
file. This is expected to reside in your home directory.

--verbose or -v
Produce verbose (debugging) information during operation.

--quiet or -q
Supresses error messages for URLs that could not be downloaded.

--help or -h
This help information.

EXAMPLES
get_data.pl -u peter.l.smith -i urllist -v

Download the files whos URLs are given in the file 'urllist' to the
current directory using the user profile 'peter.l.smith'. Prompt for
the user password. Verbose (debugging) output will be generated.

get_data.pl -u peter.l.smith d data
http://e4ftl01.cr.usgs.gov/ASTT/AST_L1T.003/2016.09.11/AST_L1T_00309112016020239_20160912100405_5264_QA.txt

Download the file given by the URL on the command line using the user
profile 'peter.l.smith' and save it into the directory 'data'. Prompt
for the user password.

get_data.pl -n d data -i urllist

Download the files whos URLs are given in the file 'urllist' and save
into the directory 'data'. Earthdata Login credentials will be
retrieved from the .netrc file.

DESCRIPTION
Downloads data files from Earthdata Login enabled servers. Data files
are identified using URLs, and may be provided on the command line or
in a file. User credentials are required for authentication, and the
applications from which the files are being downloaded must have been
pre-authorized.

If a file is returned from the server with a 'Content-Disposition'
header, the filename given in that header will be used as the name of
the downloaded file, otherwise the filename in the URL will be used.

  • No labels