/data/mta/Script/Deriv
also uses extensively IDL library /home/mta/IDL
Trending is accomplished with IDL packages run by cronjob, one section
each night. The commanding batch scripts are run_sun.pro ... run_sat.pro.
They call other batch scripts for each subsystem to be run that day (ed_acis.pro etc.)
There are basically two steps for each subsystem. Data retrieval is done by
mta_db_get_add.pro, which is wrapper
around CXCDS's DataSeeker tool. We save a local copy of one hour averages
for each table, so the retrieve gets any newly ingested data and merges
with the local copy.
Then dtrend.pro does the calculation and
compilation of plots and statistics starting with
dtrend_read.pro ...