
Find the names of MODIS images corresponding to the selected dates
Source:R/get_mod_filenames.R
get_mod_filenames.RdAccessory function to find the names of HDF images corresponding to a given date and interval of spatial tiles within the lpdaac archive.
Usage
get_mod_filenames(
http,
used_server,
user,
password,
n_retries,
date_dir,
v,
h,
tiled,
out_folder_mod,
gui
)Arguments
- http
characterurl of http site on lpdaac corresponding to a given MODIS product.- used_server
charactercan assume values "http"; it cannot be NA.- user
characterusername for earthdata server.- password
characterpassword for earthdata server.- n_retries
numericnumber of times the access to the http server should be retried in case of error before quitting, Default: 20.- date_dir
character arrayarray of folder names corresponding to acquisition containing dates where MODIS files to be downloaded are to be identified (return array fromget_mod_dates).- v
integer arraycontaining a sequence of the vertical tiles of interest (e.g., c(18,19)).- h
integer arraycontaining a sequence of the horizontal tiles of interest (e.g., c(3,4)).- tiled
numeric [0/1]indicates if the product to be downloaded is tiled or not tiled. 1 = tiled product; 0 = non-tiled product (resolution 0.05 deg).- out_folder_mod
characterfolder where hdf files have to be stored.- gui
logicalindicates if processing was called within the GUI environment or not. If not, processing messages are redirected direct to the log file.
Value
character array containing names of HDF images corresponding to the
requested tiles available for the product in the selected date
Author
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-2016)
Luigi Ranghetti, phD (2016)