topftp_post
Parameters
u
cmd
res
Keywords
out
count
Examples
Version history
Version
$Id: read_ftp.pro 371 2008-08-07 09:32:02Z pinsard $
History
Known issues
Restrictions
Statistics
McCabe cyclic | 7 |
McCabe essential | 3 |
McCabe modular design | 1 |
topread_ftp
Parameters
site
files
dir
port
Keywords
data
file
user
default: anonymous
pass
default: test@test.com
ptr
Examples
1) Retrieve and print the contents of ftp://ftp.rsinc.com/pub/gzip/README.GZIP:
IDL> READ_FTP, 'ftp://ftp.rsinc.com/pub/gzip/README.GZIP', DATA=data
IDL> help, data
DATA BYTE = Array[2134]
IDL> print, string(data)
------------------------------------------------------------------------------
README file: Research Systems Anonymous FTP site (ftp.rsinc.com)
pub directory
gzip directory
------------------------------------------------------------------------------
...
2) Retrieve some files from podaac.jpl.nasa.gov and store the files
in the current working directory:
IDL> files = string(lindgen(10)+50,format='(%"MGB370.%3.3d.gz")')
IDL> READ_FTP, 'podaac.jpl.nasa.gov', files, $
IDL> 'pub/sea_surface_height/topex_poseidon/mgdrb/data/MGB_370', /FILE
IDL> spawn,'dir MGB*',/log_output
Volume in drive C is Local Disk
Volume Serial Number is 34CE-24DF
Directory of C:testtest0307
07/28/2003 11:58a 362,167 MGB370.050.gz
07/28/2003 11:58a 333,005 MGB370.051.gz
07/28/2003 11:58a 310,287 MGB370.052.gz
07/28/2003 11:58a 358,771 MGB370.053.gz
07/28/2003 11:59a 387,282 MGB370.054.gz
07/28/2003 11:59a 361,633 MGB370.055.gz
07/28/2003 11:59a 383,075 MGB370.056.gz
07/28/2003 11:59a 365,844 MGB370.057.gz
07/28/2003 11:59a 383,918 MGB370.058.gz
07/28/2003 12:00p 372,712 MGB370.059.gz
10 File(s) 3,618,694 bytes
These compressed files can consequently be opened with OPENR and the
/COMPRESSED keyword.
Version history
Version
$Id: read_ftp.pro 371 2008-08-07 09:32:02Z pinsard $
History
Known issues
Todo items
seb: que fait-on de "syntax" au debut du header?
give examples with date in year 0 (should not exists but may happen)
Statistics
McCabe cyclic | 19 |
McCabe essential | 1 |
McCabe modular design | 1 |