# TIGER LDB 2001 LEVEL 0 data format # prints values for all event types # version history # 1.1 19 Mar 02 more specific print directives for scalers hsk endian offset 0 type S = 0xbef0 mask 0xfff0 sig real offset 0 type S = 0xbef1 sig pedcal offset 0 type S = 0xbef2 sig lightcal offset 0 type S = 0xbef3 sig crithsk offset 0 type S = 0xbef4 sig sensorhsk offset 0 type S = 0xbef5 sig mischsk offset 0 type S = 0xbef6 sig scalarhsk offset 0 type S = 0xbef7 sig reply offset 0 type S = 0xbef8 #sig hipri offset 0 type S = 0xbef9 #sig lopri offset 0 type S = 0xbefa #sig slowtdrss offset 0 type S = 0xbefb sig argos offset 0 type S = 0xbefc group full_hdr S = 0xbef0 mask 0xfff0 : print "%x " L : print "%lu " # corrected tick count L : print "%lu " # unix time stamp S : print "%04x " # status word F : print "%f " # barotron pressure L : print "%ld " # gps altitude L : print "%lu " # evt no. L : print "%lu " # tick count group_end group short_hdr S = 0xbef0 mask 0xfff0 : print "%x " L : print "%lu " # evt no. S : print "%lu " # tick count LSW group_end group argos_hdr S = 0xbefc : print "%x " S : print "%u " # evt no. LSW group_end group pack # packs 4 12-bit items into three 16-bit words S 3 group_end group sel_scalar # used by scalarhsk S 1 : print "%04x " # sel bits S 5 : print "%u " # sel scalar values group_end evt argos full_hdr S : print "%u " # old argos evt no. LSW S 2 : print "%u " # raw coin scaler, evt scaler pack 3 : print "%04x " S 1 : print "%04x " B : print #evt slowtdrss # full_hdr # S # hsk seq # B 240 evt real full_hdr pack 54 : print "%d " S : print # chksum evt pedcal full_hdr pack 54 : print "%d " S : print # chksum evt lightcal full_hdr pack 54 : print "%d " S : print # chksum evt crithsk full_hdr S : print # hsk seq S : print "%u " # raw coin S : print "%u " # evt scaler S : print "%u " # hipri total S : print "%u " # hipri xmit S : print "%u " # lopri total S : print "%u " # lopri xmit S : print "%u " # S1 S : print "%u " # S2 S : print "%u " # S3 S : print "%u " # S4 S : print # chksum evt sensorhsk full_hdr S : print # hsk seq pack 16 : print "%d " # monitors F 3 : print "%.2f " # gps S 1 : print # crc evt mischsk full_hdr S : print # hsk seq pack 14 : print "%d " S 5 : print S : print # crc evt scalarhsk full_hdr S : print # hsk seq S 29 : print "%u " # summed scalars sel_scalar 5 # 5 groups of 5 selectable scalars S 1 : print "%04x " # sel bits for last two scalars S 2 : print "%u " # last two sel scalar values S 1 : print # crc evt reply full_hdr B 82 : print "%s " S 1 : print #evt hipri # short_hdr # pack 20 : print "%d " # detectors # S 32 : print "%04x " # hodos # S 1 #evt lopri # short_hdr # pack 20 : print "%d " # detectors # S 32 : print "%04x " # hodos # S 1