| 50 | {{{ |
| 51 | (instrument)_(series)_trg |
| 52 | (instrument)_(series)_fc |
| 53 | }}} |
| 54 | |
| 55 | To identify triggers for automatically downloading data (writes records into sunum_queue), the convention is : |
| 56 | {{{ |
| 57 | trig_update_vso_(shadow table name) |
| 58 | }}} |
| 59 | |
| 60 | Procedures that maintain the VSO shadow table : |
| 61 | {{{ |
| 62 | proc_update_vso_(shadow table name) |
| 63 | }}} |
| 64 | |
| 65 | |
| 66 | Some 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 | {{{ |
| 69 | select (whatever) from aia.lev1 where t_rec_index between dynamical('YYYY-MM-DD') and dynamical('YYYY-MM-DD') |
| 70 | select dynamical_to_unix(date__obs) from aia.lev1 where recnum in ( ... ) |
| 71 | }}} |
| 72 | |
| 73 | These queries may take time, as the tables are big and for the most part, unindexed. |
| 74 | |