Accessory function to get the full list of directories on the lpdaac http site containing data included in the time range selected for processing (modified after Barry Rowlingson function):
get_mod_dirs(
http,
download_server,
user,
password,
yy,
n_retries,
gui,
out_folder_mod
)character array listing all available folders (a.k.a. dates) for
the requested MODIS product on lpdaac http archive, for the years
included in the time range selected for processing.
character http site on lpdaac corresponding to the selected MODIS
product
character ["http" | "offline"] download service
to be used; if NA, the script tries to download with http.
character username for earthdata http server
character password for earthdata http server
character Year for which the folder containing HDF images are to
be identified
numeric number of times the access to the http server
should be retried in case of error before quitting, Default: 20
`logical`` indicates if processing was called from the GUI environment or not. If not, processing messages are sent to a log file instead than to the console/GTK progress windows.
character output folder for MODIS HDF storage
Original code by Babak Naimi (.getModisList, in
ModisDownload.R)
modified to adapt it to MODIStsp scheme and to http archive (instead than old
FTP) by:
Lorenzo Busetto, phD (2014-2017)
Luigi Ranghetti, phD (2016-2017)