api.py
Calling Sequence
python nsidc_earthdata.py
Username for urs.earthdata.nasa.gov: <username>
Password for <username>@urs.earthdata.nasa.gov: <password>
Welcome to n5eil01u.ecs.nsidc.org
> help
Documented commands (type help <topic>):
========================================
cd exit help ls mkdir rsync usage
checksum get lcd mget pwd sync verbose
Function list:
usage: Lists the following command line optionsls: List contents of the remote directorycd: Change the remote directorylcd: Change the local directorymkdir: Create a directory within the local directorypwd: Print the current local and remote directory pathssync: Sync all files in directory with a local directoryrsync: Recursively sync all directories with a local directorymget: Get all files in directoryget: Get a single file in a directoryverbose: Toggle verbose outputtimeout: Set timeout in seconds for blocking operationsretry: Set number of retry attempts for retrieving fileschecksum: Toggle checksum functionexit: Exit program
Examples
Getting help for a function
> help rsync
Recursively sync all directories with a local directory
Recursively sync two directories
> cd ILATM2.002
> rsync 2016.11.17 2016.11.18
Retrieve everything from a directory
> cd ILATM2.002/2016.11.17
> mget
Retrieve a single file from a directory
> cd ILATM2.002/2016.11.17
> get ILATM2_20161117_160929_smooth_nadir3seg_50pt.csv