Recipe: Retrieve (global) data from FTP server: Difference between revisions

Pchakrab (talk | contribs)
Pchakrab (talk | contribs)
Line 28: Line 28:
==== Download file(s) using the command line tool wget ====
==== Download file(s) using the command line tool wget ====


Alternately, one can use the command line tool wget to retrieve the same files as:
The command line tool <code>wget</code> can be used to retrieve the same files as
wget ftp://G5NR:@ftp.nccs.nasa.gov/c1440_NR/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18/*
wget ftp://G5NR:@ftp.nccs.nasa.gov/c1440_NR/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18/*
The * at the end would retrieve all (24) files for the given day.
 
The <code>*</code> at the end would retrieve all (24) files for the given day.
 
To download a file for a specific time, say 0900z, try
To download a file for a specific time, say 0900z, try
wget ftp://G5NR:@ftp.nccs.nasa.gov/c1440_NR/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18/c1440_NR.inst01hr_3d_
wget ftp://G5NR:@ftp.nccs.nasa.gov/c1440_NR/DATA/0.5000_deg/inst/inst01hr_3d_T_Cv/Y2006/M09/D18/c1440_NR.inst01hr_3d_


== Discussion ==
== Discussion ==