#!/usr/bin/env tcsh

unsetenv IDL_PATH
setenv IDL_BASE_DIR /home/thmsoc/l2_cronjobs/idl_base_dir
setenv IDL_STARTUP /home/thmsoc/asi_mosaic_cronjob/alt_idl_startup.pro
source /usr/local/setup/setup_idl6.4

setenv IDL_PATH $IDL_PATH':'+$IDL_BASE_DIR/themis
setenv IDL_PATH $IDL_PATH':'+$IDL_BASE_DIR/ssl_general
setenv IDL_PATH $IDL_PATH':'+$IDL_BASE_DIR/external
setenv IDL_PATH $IDL_PATH':'+$IDL_BASE_DIR/thmsoc

setenv datestr `date -u`

rm -f /home/thmsoc/asi_mosaic_cronjob/thm_asi_full_mosaic_proc1.bm

set line="run_create_themis_mosaics_hr_full, process_no=1"
echo $line > /home/thmsoc/asi_mosaic_cronjob/thm_asi_full_mosaic_proc1.bm
echo exit >> /home/thmsoc/asi_mosaic_cronjob/thm_asi_full_mosaic_proc1.bm

idl /home/thmsoc/asi_mosaic_cronjob/thm_asi_full_mosaic_proc1.bm

