;docformat='rst' ;+ ; This is the primary task called by the crontab that handles the daily AIM CIPS ; definitive processing. ; ; :Author: ; Chris Jeppesen, Bill Barrett ; ;- ;+ ; :Params: ; NONE ; ; :Keywords: ; NONE ;- ;+ ; :Examples: ; run_cips_daily_definitive_processing_cron ;- PRO run_cips_daily_definitive_processing_cron print, get_routine_name() + ' starting at ' + systime() begin_time = systime(1) ; The following line initializes the Query Database software used ; for all database access query_database, "", nrows, data, /GET_LOGIN ; Get today's date curr_time=fix(systime(/seconds, /julian, /utc)-0.5, type=3) + 0.5 start_time=jd2gps(curr_time)*1e6 aim_day=usec2ad(start_time) - 5 print, 'AIM day is ', aim_day print, 'Year day is ', ad2yd( aim_day ) ; Initialize the definitive production environment set_cips_production_vars set_debug_level, 5 set_production_flag, flag=1 print, "run_cips_production_processing", aim_day run_cips_production_processing, aim_day-1, aim_day, /YD elapsed=systime(1)-begin_time print, get_routine_name() + ' finishing at ' + systime() + $ " TIME ELAPSED - " + strtrim(string(elapsed/60), 2) + " minutes" END