Internal function dealing with download of MODIS hdfs from http remote server for a given date.
Usage
MODIStsp_download(
modislist,
out_folder_mod,
download_server,
http,
n_retries,
use_aria,
date_dir,
year,
DOY,
user,
password,
sens_sel,
date_name,
gui,
verbose
)Arguments
- modislist
character arrayList of MODIS images to be downloaded for the selected date (as returned fromget_mod_filenames). Can be a single image, or a list of images in case different tiles are needed!- out_folder_mod
characterFolder where the hdfs are to be stored- download_server
character ["http"]Server to be used.- http
characterAddress of the http server for the selected product.- n_retries
numericMax number of retry attempts on download. If download fails more that n_retries times consecutively, abort- use_aria
logicalif TRUE, download using aria2c- date_dir
character arraySub-folder where the different images can be found (element of the list returned fromget_mod_dirs, used in case of http download to generate the download addresses).- year
characterAcquisition year of the images to be downloaded- DOY
character arrayAcquisition doys of the images to be downloaded- user
characterUsername for http download- password
characterPassword for http download- sens_sel
character ["terra" | "aqua"]Selected sensor.- date_name
characterDate of acquisition of the images to be downloaded.- gui
logicalIndicates if on an interactive or non-interactive execution (only influences where the log messages are sent).- verbose
logicalIf FALSE, suppress processing messages, Default: TRUE
