IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 10, 2006, 3:32:47 PM (20 years ago)
Author:
jhoblitt
Message:

big schema update -- partially normalized exp/imfile tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/tasks.md

    r8227 r8282  
    1 # $Id: tasks.md,v 1.54 2006-08-08 03:06:28 jhoblitt Exp $
     1# $Id: tasks.md,v 1.55 2006-08-11 01:32:47 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    55
    66# note that dec is a MySQL reserved word
     7# note that use is a MySQL reserved word
     8# note that exp is a MySQL reserved word
    79
    810summitExp METADATA
     
    2830# class_id == type set id
    2931pzPendingImfile METADATA
    30     exp_id      STR         64      # Key
     32    exp_id      STR         64      # Primary Key
    3133    bytes       S32         0
    3234    md5sum      STR         32
    3335    class       STR         64
    34     class_id    STR         64
     36    class_id    STR         64      # Primary Key
    3537    uri         STR         255
    3638END
     
    4547END
    4648
     49# class needs to be carried here so it can go into rawImfile and be normalized
     50# from there
    4751newImfile METADATA
    4852    exp_id      STR         64      # Primary Key
    49     class       STR         64      # Primary Key
     53    class       STR         64
    5054    class_id    STR         64      # Primary Key
    5155    uri         STR         255
     
    5963    exp_type    STR         64
    6064    imfiles     S32         0
    61     filter      STR         255
    62     airmass     F32         0.0
    63     ra          F64         0.0
    64     decl        F64         0.0
    65     exp_time    F32         0.0
    66     background  F64         0.0
    67 END
    68 
    69 # paired with rawImfile
    70 rawScienceExp METADATA
    71     exp_id      STR         64      # Primary Key
    72     camera      STR         255
    73     telescope   STR         255
    74     exp_type    STR         64
    75     imfiles     S32         0
    76     filter      STR         255
    77     airmass     F32         0.0
    78     ra          F64         0.0
    79     decl        F64         0.0
    80     exp_time    F32         0.0
    81     background  F64         0.0
    82 END
    83 
    84 rawImfile METADATA
    85     exp_id      STR         64      # Primary Key
    86     class       STR         64      # Primary Key
    87     class_id    STR         64      # Primary Key
    88     uri         STR         255
    8965    filter      STR         255
    9066    airmass     F32         0.0
     
    10177END
    10278
    103 #
    104 # XXX - temporarily (???) stot carrying around class in imfiles after rawImfile
    105 #
    106 
    107 p1PendingExp METADATA
    108     exp_id      STR         64     # Primary Key
     79# paired with rawImfile
     80rawScienceExp METADATA
     81    exp_id      STR         64      # Primary Key
    10982    camera      STR         255
    11083    telescope   STR         255
     
    11689    decl        F64         0.0
    11790    exp_time    F32         0.0
    118     background  F64         0.0
    119     recipe      STR         64
    120     p1_version  S32         0
    121 END
    122 
    123 # do we need nclass?
    124 # class is missing
    125 
    126 p2PendingExp METADATA
    127     exp_id      STR         64      # Primary Key
    128     camera      STR         255
    129     telescope   STR         255
    130     exp_type    STR         64
    131     imfiles     S32         0
    132     filter      STR         255
    133     airmass     F32         0.0
    134     ra          F32         0.0
    135     decl        F64         0.0
    136     exp_time    F64         0.0
    137     background  F64         0.0
    138     recipe      STR         64
    139     p1_version  S32         0
    140     p2_version  S32         0
    141 END
    142 
    143 # uris in & out ?
    144 
    145 p2PendingImfile METADATA
    146     exp_id      STR         64      # Key
    147 #    class       STR         64
    148     class_id    STR         64
    149     uri         STR         255
    150     recipe      STR         64
    151     p1_version  S32         0
    152     p2_version  S32         0
    153 END
    154 
    155 # nclass & ndone?
    156 # and/or logging imfile done better?
    157 
    158 p2DoneExp METADATA
    159     exp_id      STR         64      # Primary Key
    160     camera      STR         255
    161     telescope   STR         255
    162     exp_type    STR         64
    163     imfiles     S32         0
     91    bg          F64         0.0
     92    bg_stdev    F64         0.0
     93    bg_mean_stdev   F64         0.0
     94    alt         F64         0.0
     95    az          F64         0.0
     96    ccd_temp    F32         0.0
     97    posang      F64         0.0
     98END
     99
     100rawImfile METADATA
     101    exp_id      STR         64      # Primary Key
     102    class       STR         64
     103    class_id    STR         64      # Primary Key
     104    uri         STR         255
    164105    filter      STR         255
    165106    airmass     F32         0.0
     
    167108    decl        F64         0.0
    168109    exp_time    F32         0.0
    169     background  F64         0.0
     110    bg          F64         0.0
     111    bg_stdev    F64         0.0
     112    bg_mean_stdev   F64         0.0
     113    alt         F64         0.0
     114    az          F64         0.0
     115    ccd_temp    F32         0.0
     116    posang      F64         0.0
     117END
     118
     119#
     120# XXX - temporarily (???) stot carrying around class in imfiles after rawImfile
     121#
     122
     123p1PendingExp METADATA
     124    exp_id      STR         64     # Primary Key
     125    recipe      STR         64
     126    p1_version  S32         0
     127END
     128
     129# do we need nclass?
     130# class is missing
     131
     132p2PendingExp METADATA
     133    exp_id      STR         64      # Primary Key
     134    recipe      STR         64
     135    p1_version  S32         0
     136    p2_version  S32         0
     137END
     138
     139# uris in & out ?
     140
     141p2PendingImfile METADATA
     142    exp_id      STR         64      # Primary Key
     143    class_id    STR         64      # Primary Key
     144    uri         STR         255
     145    recipe      STR         64
     146    p1_version  S32         0
     147    p2_version  S32         0
     148END
     149
     150# nclass & ndone?
     151# and/or logging imfile done better?
     152
     153p2DoneExp METADATA
     154    exp_id      STR         64      # Primary Key
    170155    recipe      STR         64
    171156    p1_version  S32         0
     
    177162
    178163p2DoneImfile METADATA
    179     exp_id      STR         64      # Key
    180 #    class       STR         64
    181     class_id    STR         64
     164    exp_id      STR         64      # Primary Key
     165    class_id    STR         64      # Primary Key
    182166    uri         STR         255
    183167    recipe      STR         64
     
    194178p3PendingExp METADATA
    195179    exp_id      STR         64      # Primary Key
    196     camera      STR         255
    197     exp_type    STR         64
    198     imfiles     S32         0
    199     filter      STR         255
    200     airmass     F32         0.0
    201     ra          F64         0.0
    202     decl        F64         0.0
    203     exp_time    F32         0.0
    204     background  F64         0.0
    205180    recipe      STR         64
    206181    p2_version  S32         0
     
    217192    iteration   S32         0       # Primary Key
    218193    exp_id      STR         64      # Primary Key
    219     camera      STR         255
    220     telescope   STR         255
    221     exp_type    STR         64
    222     imfiles     S32         0
    223     filter      STR         255
    224     airmass     F32         0.0
    225     ra          F64         0.0
    226     decl        F64         0.0
    227     exp_time    F32         0.0
    228     background  F64         0.0
     194    include     BOOL        f
     195    accept      BOOL        f
    229196END
    230197
     
    283250    exp_id      STR         64      # Primary Key
    284251    recipe      STR         64
     252    keep        BOOL        f
    285253    accept      BOOL        f
    286254END
Note: See TracChangeset for help on using the changeset viewer.