Results: execfile("scripts/getFile.py")

In [1]: execfile("scripts/getFile.py")
MET of the GRB= 243216766
BEFORE and AFTER= 1000
Name of the file= [080916009]
Looking up database for event-sample[P6_public_v1]...
select event_number,run_number,row_number from events where EVENT_CLASS > 0 and time >= 2.43215766E8 and time <= 2.43217766E8
get took 0.075 seconds to query, 5.112 seconds to package, 8077 events starting at 2009-12-07 13:22:26.977
Dec 7, 2009 1:22:32 PM org.glast.dataportal.astro.model.store.fits.FitsHandler <init>
INFO: Fits reference file not provided. Will use first source file as reference.
Dec 7, 2009 1:22:36 PM org.glast.dataportal.astro.model.store.fits.FitsHandler write
INFO: Fits reference file (first source file) : root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/ft1/gll_ph_r0243215785_v105.fit
Dec 7, 2009 1:22:36 PM org.glast.dataportal.astro.model.util.fits.FitsUtilities openFile
INFO: Opening root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/ft1/gll_ph_r0243215785_v105.fit
0 SIMPLE : T [Java FITS: Mon Dec 07 13:22:40 PST 2009]
1 BITPIX : 8 [number of bits per data pixel]
2 NAXIS : 0 [number of data axes]
3 EXTEND : T [FITS dataset may contain extensions]
4 COMMENT : null [FITS (Flexible Image Transport System) format is defined in 'Astronomy]
5 COMMENT : null [and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H]
6 CHECKSUM : JdaSMaYQJaaQJaWQ [as of 2009-12-07T21:22:46.494]
7 TELESCOP : GLAST [ name of telescope generating data]
8 INSTRUME : LAT [ name of instrument generating data]
9 EQUINOX : 2000. [equinox for ra and dec]
10 RADECSYS : FK5 [ world coord. system for this file (FK5 or FK4)]
11 DATE : 2009-12-07T21:22:40.507 [file creation date (YYYY-MM-DDThh:mm:ss U]
12 DATE-OBS : 2008-09-15T23:56:05.000 [start date and time of the observation (U]
13 DATE-END : 2008-09-16T00:29:25.000 [end date and time of the observation (UTC]
14 TSTART : 243215766.000000 [mission time of the start of the observation]
15 TSTOP : 243217766.000000 [mission time of the end of the observation]
16 TIMEUNIT : s [ units for the time related keywords]
17 TIMEZERO : 0. [clock correction]
18 TIMESYS : TT [ type of time system that is used]
19 TIMEREF : LOCAL [ reference frame used for times]
20 CLOCKAPP : F [whether a clock drift correction has been appli]
21 GPS_OUT : F [whether GPS time was unavailable at any time du]
22 MJDREFI : 51910. [Integer part of MJD corresponding to SC clock s]
23 MJDREFF : 7.428703703703703D-4 [ Fractional part of MJD corresponding to SC cl]
24 OBSERVER : Peter Michelson [ GLAST/LAT PI]
25 FILENAME : 080916009_ft1_243215766_243217766.fits [name of this file]
26 ORIGIN : LISOC [name of organization making file]
27 CREATOR : GLAST Data Portal [software and version creating file]
28 SOFTWARE : 2.4.1-SNAPSHOT [null]
29 VERSION : 105 [ release version of the file]
30 DATASUM : 0 [ data unit checksum updated 2009-08-04T20:23:49]
31 END : null [null]
Dec 7, 2009 1:22:46 PM org.glast.dataportal.astro.model.util.fits.FitsUtilities openFile
INFO: Opening root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/ft1/gll_ph_r0243215785_v105.fit
Dec 7, 2009 1:22:46 PM org.glast.dataportal.astro.model.store.fits.FitsManager getEventTable
INFO: Opened file 1: root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/ft1/gll_ph_r0243215785_v105.fit
Dec 7, 2009 1:22:47 PM org.glast.dataportal.astro.model.store.fits.FitsHandler writeFullEventHDU
INFO: 8077 events fully written in 540 ms.

0 XTENSION : BINTABLE [ binary table extension]
1 BITPIX : 8 [8-bit bytes]
2 NAXIS : 2 [2-dimensional binary table]
3 NAXIS1 : 92 [width of table in bytes]
4 NAXIS2 : 8077 [number of rows in table]
5 PCOUNT : 0 [size of special data area]
6 GCOUNT : 1 [one data group (required keyword)]
7 TFIELDS : 22 [number of fields in each row]
8 TTYPE1 : ENERGY [ energy of event]
9 TFORM1 : E [ data format of field: 4-byte REAL]
10 TTYPE2 : RA [ right ascension (J2000) of event]
11 TFORM2 : E [ data format of field: 4-byte REAL]
12 TTYPE3 : DEC [ declination (J2000) of event]
13 TFORM3 : E [ data format of field: 4-byte REAL]
14 TTYPE4 : L [ Galactic longitude of event]
15 TFORM4 : E [ data format of field: 4-byte REAL]
16 TTYPE5 : B [ Galactic latitude of event]
17 TFORM5 : E [ data format of field: 4-byte REAL]
18 TTYPE6 : THETA [ inclination angle of event in instrument coordi]
19 TFORM6 : E [ data format of field: 4-byte REAL]
20 TTYPE7 : PHI [ azimuthal angle of event in instrument coordina]
21 TFORM7 : E [ data format of field: 4-byte REAL]
22 TTYPE8 : ZENITH_ANGLE [ zenith angle of event]
23 TFORM8 : E [ data format of field: 4-byte REAL]
24 TTYPE9 : EARTH_AZIMUTH_ANGLE [ Earth azimuth (from north to east) of event]
25 TFORM9 : E [ data format of field: 4-byte REAL]
26 TTYPE10 : TIME [ Mission Elapsed Time]
27 TFORM10 : D [ data format of field: 8-byte DOUBLE]
28 TTYPE11 : EVENT_ID [ ID number of original event]
29 TFORM11 : J [ data format of field: 4-byte signed INTEGER]
30 TTYPE12 : RUN_ID [ Run number of original event]
31 TFORM12 : J [ data format of field: 4-byte signed INTEGER]
32 TTYPE13 : RECON_VERSION [ version of event reconstruction software]
33 TFORM13 : I [ data format of field: 2-byte signed INTEGER]
34 TTYPE14 : CALIB_VERSION [ versions of calibration tables for the ACD, CAL]
35 TFORM14 : 3I [ data format of field: 2-byte signed INTEGER]
36 TTYPE15 : EVENT_CLASS [ event class: 0, 1, 2,...]
37 TFORM15 : I [ data format of field: 2-byte signed INTEGER]
38 TTYPE16 : CONVERSION_TYPE [ type of conversion: 0=Front converting, 1=Back]
39 TFORM16 : I [ data format of field: 2-byte signed INTEGER]
40 TTYPE17 : LIVETIME [ Accumulated livetime since mission start]
41 TFORM17 : D [ data format of field: 8-byte DOUBLE]
42 TTYPE18 : DIFRSP0 [ Diffuse response component]
43 TFORM18 : E [ data format]
44 TTYPE19 : DIFRSP1 [ Diffuse response component]
45 TFORM19 : E [ data format]
46 TTYPE20 : DIFRSP2 [ Diffuse response component]
47 TFORM20 : E [ data format]
48 TTYPE21 : DIFRSP3 [ Diffuse response component]
49 TFORM21 : E [ data format]
50 TTYPE22 : DIFRSP4 [ Diffuse response component]
51 TFORM22 : E [ data format]
52 CHECKSUM : gHHri9EogGEog9Eo [as of 2009-12-07T21:22:47.303]
53 DATASUM : 2369405760 [ data unit checksum updated 2009-08-04T20:32:58]
54 TELESCOP : GLAST [ name of telescope generating data]
55 INSTRUME : LAT [ name of instrument generating data]
56 EQUINOX : 2000. [equinox for ra and dec]
57 RADECSYS : FK5 [ world coord. system for this file (FK5 or FK4)]
58 DATE : 2009-12-07T21:22:40.507 [file creation date (YYYY-MM-DDThh:mm:ss U]
59 DATE-OBS : 2008-09-15T23:56:05.000 [start date and time of the observation (U]
60 DATE-END : 2008-09-16T00:29:25.000 [end date and time of the observation (UTC]
61 OBSERVER : Peter Michelson [ GLAST/LAT PI]
62 ORIGIN : LISOC [name of organization making file]
63 CREATOR : GLAST Data Portal [null]
64 SOFTWARE : 2.4.1-SNAPSHOT [null]
65 EXTNAME : EVENTS [ name of this binary table extension]
66 HDUCLASS : OGIP [ format conforms to OGIP standard]
67 HDUCLAS1 : EVENTS [ extension contains events]
68 HDUCLAS2 : ALL [ extension contains all events detected]
69 TSTART : 243215766.000000 [mission time of the start of the observation]
70 TSTOP : 243217766.000000 [mission time of the end of the observation]
71 MJDREFI : 51910. [Integer part of MJD corresponding to SC clock s]
72 MJDREFF : 7.428703703703703D-4 [ Fractional part of MJD corresponding to SC cl]
73 TIMEUNIT : s [ units for the time related keywords]
74 TIMEZERO : 0. [clock correction]
75 TIMESYS : TT [ type of time system that is used]
76 TIMEREF : LOCAL [ reference frame used for times]
77 CLOCKAPP : F [whether a clock drift correction has been appli]
78 GPS_OUT : F [whether GPS time was unavailable at any time du]
79 NDIFRSP : 5 [Number of diffuse response labels]
80 DIFRSP0 : p6_v3_diffuse__eg_v02 [ Diffuse response label for component 0]
81 DIFRSP1 : p6_v3_diffuse__gal_v02 [ Diffuse response label for component 1]
82 DIFRSP2 : NONE [ Diffuse response label for component 2]
83 DIFRSP3 : NONE [ Diffuse response label for component 3]
84 DIFRSP4 : NONE [ Diffuse response label for component 4]
85 TUNIT1 : MeV [ physical unit of field]
86 TLMIN1 : 0. [minimum value]
87 TLMAX1 : 10000000. [maximum value]
88 TUNIT2 : deg [ physical unit of field]
89 TLMIN2 : 0. [minimum value]
90 TLMAX2 : 360. [maximum value]
91 TUNIT3 : deg [ physical unit of field]
92 TLMIN3 : -90. [minimum value]
93 TLMAX3 : 90. [maximum value]
94 TUNIT4 : deg [ physical unit of field]
95 TLMIN4 : 0. [minimum value]
96 TLMAX4 : 360. [maximum value]
97 TUNIT5 : deg [ physical unit of field]
98 TLMIN5 : -90. [minimum value]
99 TLMAX5 : 90. [maximum value]
100 TUNIT6 : deg [ physical unit of field]
101 TLMIN6 : 0. [minimum value]
102 TLMAX6 : 180. [maximum value]
103 TUNIT7 : deg [ physical unit of field]
104 TLMIN7 : 0. [minimum value]
105 TLMAX7 : 360. [maximum value]
106 TUNIT8 : deg [ physical unit of field]
107 TLMIN8 : 0. [minimum value]
108 TLMAX8 : 180. [maximum value]
109 TUNIT9 : deg [ physical unit of field]
110 TLMIN9 : 0. [minimum value]
111 TLMAX9 : 360. [maximum value]
112 TUNIT10 : s [ physical unit of field]
113 TLMIN10 : 0. [minimum value]
114 TLMAX10 : 1.0D+10 [ maximum value]
115 TLMIN11 : 0 [minimum value]
116 TLMAX11 : 2147483647 [maximum value]
117 TLMIN12 : 0 [minimum value]
118 TLMAX12 : 2147483647 [maximum value]
119 TLMIN13 : 0 [minimum value]
120 TLMAX13 : 32767 [maximum value]
121 TLMIN15 : 0 [minimum value]
122 TLMAX15 : 32767 [maximum value]
123 TLMIN16 : 0 [minimum value]
124 TLMAX16 : 32767 [maximum value]
125 TUNIT17 : s [ physical unit of field]
126 TLMIN17 : 0. [minimum value]
127 TLMAX17 : 1.0D+10 [ maximum value]
128 TLMIN18 : 0. [minimum value]
129 TLMAX18 : 1.0D+38 [ maximum value]
130 TLMIN19 : 0. [minimum value]
131 TLMAX19 : 1.0D+38 [ maximum value]
132 TLMIN20 : 0. [minimum value]
133 TLMAX20 : 1.0D+38 [ maximum value]
134 TLMIN21 : 0. [minimum value]
135 TLMAX21 : 1.0D+38 [ maximum value]
136 TLMIN22 : 0. [minimum value]
137 TLMAX22 : 1.0D+38 [ maximum value]
138 EXTVER : 1 [auto assigned by template parser]
139 HISTORY : null [Input merit file: /scratch/glastmp/P105-FT1/636/r0243215785_v001_merit.r]
140 HISTORY : null [oot]
141 HISTORY : null [Filter string: (FswGamState==0||FswGamState==3) && (CTBCORE>0) && (CTBBe]
142 HISTORY : null [stEnergyProb>0) && (CTBBestEnergy>10) && (CTBBestEnergyRatio<5) && (CTBC]
143 HISTORY : null [lassLevel>0) && (EvtElapsedTime >= 243215787) && (EvtElapsedTime <= 243]
144 HISTORY : null [220242)]
145 DSTYP1 : TIME [null]
146 DSUNI1 : s [null]
147 DSVAL1 : TABLE [null]
148 DSREF1 : :GTI [null]
149 DSTYP2 : TIME [null]
150 DSUNI2 : s [null]
151 DSVAL2 : 2.43215766E8:2.43217766E8 [null]
152 NDSKEYS : 2 [null]
153 HISTORY : null [CFITSIO used the following filtering expression to create this table:]
154 HISTORY : null [/scratch/glastmp/P105-FT1/636/foo.fit[EVENTS][gtifilter("/scratch/glastm]
155 HISTORY : null [p/P105-FT1/636/gll_ph_r0243215785_v105.fit_tempgti")]]
156 END : null [null]
Dec 7, 2009 1:22:47 PM org.glast.dataportal.astro.model.store.fits.FitsHandler write
INFO: Number of gtis found : 1
0 XTENSION : BINTABLE [ binary table extension]
1 BITPIX : 8 [8-bit bytes]
2 NAXIS : 2 [2-dimensional binary table]
3 NAXIS1 : 16 [width of table in bytes]
4 NAXIS2 : 1 [number of intervals in table]
5 PCOUNT : 0 [size of special data area]
6 GCOUNT : 1 [one data group (required keyword)]
7 TFIELDS : 2 [number of fields in each row]
8 TTYPE1 : START [ start time of good time intervals]
9 TFORM1 : D [ data format of field: 8-byte DOUBLE]
10 TTYPE2 : STOP [ stop time of good time intervals]
11 TFORM2 : D [ data format of field: 8-byte DOUBLE]
12 CHECKSUM : 3LMAAKK83KKAAKK5 [as of 2009-12-07T21:22:47.490]
13 DATASUM : 4252977377 [ data unit checksum updated 2009-08-04T20:25:02]
14 TELESCOP : GLAST [ name of telescope generating data]
15 INSTRUME : LAT [ name of instrument generating data]
16 EQUINOX : 2000. [equinox for ra and dec]
17 RADECSYS : FK5 [ world coord. system for this file (FK5 or FK4)]
18 DATE : 2009-12-07T21:22:40.507 [file creation date (YYYY-MM-DDThh:mm:ss U]
19 DATE-OBS : 2008-09-15T23:56:05.000 [start date and time of the observation (U]
20 DATE-END : 2008-09-16T00:29:25.000 [end date and time of the observation (UTC]
21 OBSERVER : Peter Michelson [ GLAST/LAT PI]
22 ORIGIN : LISOC [name of organization making file]
23 CREATOR : GLAST Data Portal [null]
24 SOFTWARE : 2.4.1-SNAPSHOT [null]
25 EXTNAME : GTI [ name of this binary table extension]
26 HDUCLASS : OGIP [ format conforms to OGIP standard]
27 HDUCLAS1 : GTI [ extension contains good time intervals]
28 HDUCLAS2 : ALL [ extension contains all science time]
29 TSTART : 243215766.000000 [mission time of the start of the observation]
30 TSTOP : 243217766.000000 [mission time of the end of the observation]
31 MJDREFI : 51910. [Integer part of MJD corresponding to SC clock s]
32 MJDREFF : 7.428703703703703D-4 [ Fractional part of MJD corresponding to SC cl]
33 TIMEUNIT : s [ units for the time related keywords]
34 TIMEZERO : 0. [clock correction]
35 TIMESYS : TT [ type of time system that is used]
36 TIMEREF : LOCAL [ reference frame used for times]
37 CLOCKAPP : F [whether a clock drift correction has been appli]
38 GPS_OUT : F [whether GPS time was unavailable at any time du]
39 ONTIME : 4453.09676456451 [sum of GTI lengths]
40 TELAPSE : 4455. [TSTOP - TSTART]
41 TUNIT1 : s [ physical unit of field]
42 TLMIN1 : 0. [minimum value]
43 TLMAX1 : 1.0D+10 [ maximum value]
44 TUNIT2 : s [ physical unit of field]
45 TLMIN2 : 0. [minimum value]
46 TLMAX2 : 1.0D+10 [ maximum value]
47 EXTVER : 1 [auto assigned by template parser]
48 END : null [null]
Looking up database for event-sample[P6_public_v1]...
Dec 7, 2009 1:22:50 PM org.glast.dataportal.astro.model.store.fits.Ft2Handler <init>
INFO: Fits reference file not provided. Will use first source file as reference.
Dec 7, 2009 1:22:51 PM org.glast.dataportal.astro.model.store.fits.Ft2Handler writeRecords
INFO: Found 1 FT2 files for selection.
Dec 7, 2009 1:22:51 PM org.glast.dataportal.astro.model.store.fits.Ft2Handler writeRecords
INFO: Fits reference file (first source file) : root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/prod/1.76/ft2Seconds/r0243215785_v105_ft2Seconds.fit
Dec 7, 2009 1:22:51 PM org.glast.dataportal.astro.model.util.fits.FitsUtilities openFile
INFO: Opening root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/prod/1.76/ft2Seconds/r0243215785_v105_ft2Seconds.fit
Dec 7, 2009 1:22:51 PM org.glast.dataportal.astro.model.store.fits.Ft2Handler writeRecords
INFO: Opening file 1
Dec 7, 2009 1:22:51 PM org.glast.dataportal.astro.model.util.fits.FitsUtilities openFile
INFO: Opening root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P105/prod/1.76/ft2Seconds/r0243215785_v105_ft2Seconds.fit
Wrote 1979 records from 1 files
--> file FT1: DATA/FITS/LAT/080916009_ft1_243215766_243217766.fits
--> file FT2: DATA/FITS/LAT/080916009_ft2_243215766_243217766.fits

In [2]: