MODIStsp_install_launcher()
.In a Linux operating system this function creates a desktop entry (accessible from the menu in the sections “Science” and “Geography”) and a symbolic link in a known path (default: /usr/bin/MODIStsp). In Windows, a link in the Start Menu and optionally a desktop shortcut are created. See ?install_MODIStsp_launcher
for details and path customization.
Double-clicking those files or launching them from a shell without parameters will launch MODIStsp
in interactive mode. Non-interactive mode is triggered by adding the “-g” argument to the call, and specifying the path to a valid Options File as “-s” argument:
Linux: MODIStsp -g -s "/yourpath/youroptions.RData"
(see MODIStsp -h
for details).
Windows:your_r_library\MODIStsp\ExtData\Launcher\MODIStsp.bat -g -s "yourpath/youroptions.RData"
(see C:\Users\you\Desktop\MODIStsp -h
for details).
If you do not want to install any link, launchers can be found in the subdirectory “MODIStsp/ExtData/Launcher” of your library path.
Standalone non-interactive execution can be used to periodically and automatically update the time series of a selected product over a given study area. To do that, you should simply:
Open the MODIStsp
GUI, define the parameters of the processing specifying a date in the future as the “Ending Date” and save the processing options. Then quit the program.
Schedule non-interactive execution of the launcher installed as seen before (or located in the subdirectory “MODIStsp/ExtData/Launcher” of your library path) as windows scheduled task (or linux “cron” job) according to a specified time schedule, specifying the path of a previously saved Options file as additional argument:
crontab -e
0 23 * * * /bin/bash /usr/bin/MODIStsp -g -s "/yourpath/youroptions.RData"
-g -s "X:/yourpath/youroptions.RData"
as argument.