Description Usage Arguments Details Value Author(s) See Also
Take some MODIS product filenames and produce the
appropriate FTP "get
" command.
1 2 | modfns_to_ftp_download_cmd(mod03_fns_dropped,
ftp_prefix = "get allData/5/", output_to = "screen")
|
mod03_fns_dropped |
A list of MODIS product files
(e.g. the files returned as mismatches by
|
ftp_prefix |
The prefix that the user would like to pre-pend to the FTP directory |
output_to |
If "screen", the FTP commands are printed to screen (and returned as a list). If "data.frame", the FTP commands are only returned as a list. Any other string is interpreted as a filename, and the FTP commands will be saved to that as a textfile (and returned as a list). |
E.g., an input of:
MYD03.A2007019.1935.005.2009277181756.hdf
...is converted to:
get
allData/5/MYD03/2007/019/MYD03.A2007019.1935.005.2009277181756.hdf
MYD03.A2007019.1935.005.2009277181756.hdf
The user must specify ftp_prefix
, e.g. for the
products I have worked with, it is as follows:
MOD03: get allData/5/
MOD35_L2: get
allData/5/
MYD03: get allData/5/
MYD35_L2: get allData/5/
MYD06_L2: get
allData/51/
MYD06_L2: get allData/51/
ftp_cmds
, A list of the FTP commands.
Nicholas J. Matzke matzke@berkeley.edu
check_for_matching_geolocation_files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.