Changes between Version 2 and Version 3 of drmsCheckTriggers


Ignore:
Timestamp:
02/11/14 10:45:06 (10 years ago)
Author:
niles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • drmsCheckTriggers

    v2 v3  
    4646 
    4747Note that this still does not get the data on disk - but your local DRMS/SUMS database now has knowledge that the data exists offsite. Given that, the JMD 
    48 will be able to download it. 
     48will be able to download it. Triggers and update functions follow the naming convention : 
    4949 
     50{{{ 
     51(instrument)_(series)_trg 
     52(instrument)_(series)_fc 
     53}}} 
     54 
     55To identify triggers for automatically downloading data (writes records into sunum_queue), the convention is : 
     56{{{ 
     57        trig_update_vso_(shadow table name) 
     58}}} 
     59 
     60Procedures that maintain the VSO shadow table : 
     61{{{ 
     62        proc_update_vso_(shadow table name) 
     63}}} 
     64        
     65 
     66Some functions that mention 'dynamical'. This arises because JSOC store their dates as seconds since an epoch in 1968. The functions have the tables of leap seconds so we can convert to unixtime (technically, it forces conversion to the database internal date type). This facilitates queries like : 
     67 
     68{{{ 
     69select (whatever) from aia.lev1 where t_rec_index between dynamical('YYYY-MM-DD') and dynamical('YYYY-MM-DD') 
     70select dynamical_to_unix(date__obs) from aia.lev1 where recnum in ( ... ) 
     71}}} 
     72 
     73These queries may take time, as the tables are big and for the most part, unindexed. 
     74