# Definition of Livetime cube file (see LS-003)
# $Header: /nfs/slac/g/glast/ground/cvs/Likelihood/data/LivetimeCubeTemplate,v 1.8 2009/06/01 23:34:30 jchiang Exp $

SIMPLE  = T                        / file does conform to FITS standard
BITPIX  = 8                        / number of bits per data pixel
NAXIS   = 0                        / number of data axes
EXTEND  = T                        / FITS dataset may contain extensions
CHECKSUM= ''                       / checksum for entire HDU
TELESCOP= 'GLAST'                  / name of telescope generating data
INSTRUME= 'LAT'                    / name of instrument generating data
EQUINOX = 2000.0                   / equinox for ra and dec
RADECSYS= 'FK5'                    / world coord. system for this file (FK5 or FK4)
DATE    = 'YYYY-MM-DDThh:mm:ss'    / file creation date (UTC)
DATE-OBS= 'YYYY-MM-DDThh:mm:ss'    / start date/time of the obs. (UTC)
DATE-END= 'YYYY-MM-DDThh:mm:ss'    / end date/time of the obs. (UTC)
TSTART  = ''                       / mission time of the obs. start
TSTOP   = ''                       / mission time of the obs. end
TIMEUNIT= 's'                      / units for the time related keywords
TIMESYS = 'TT'                     / type of time system that is used
GPS_OUT = F                        / whether GPS time was unavailable at any time during this interval
MJDREFI = 51910.0                  / Int. part of MJD of SC clock start
MJDREFF =     7.428703703703703D-4 / Frac. part of MJD of SC clock start
OBSERVER= 'Peter Michelson'        / LAT PI
FILENAME= 'gll_lt_rnnnnnnnnnn_vxxx.fit' / name of this file: nnnnnnnnnn = MET of beginning of run xxx = version number
ORIGIN  = 'LISOC'                  / name of organization making file
CREATOR = 'gtltcube'               / software and version creating file
VERSION = 1                        / release version of the file
END

XTENSION= 'BINTABLE'               / binary table extension
BITPIX  = 8                        / 8-bit bytes
NAXIS   = 2                        / 2-dimensional binary table
NAXIS1  = ''                       / width of table in bytes
NAXIS2  = ''                       / number of rows in table
PCOUNT  =                        0 / size of special data area
GCOUNT  = 1                        / one data group (required keyword)
TFIELDS =                        3 / number of fields in each row
CHECKSUM= ''                       / checksum for entire HDU
DATASUM = ''                       / checksum for data table
TELESCOP= 'GLAST'                  / name of telescope generating data
INSTRUME= 'LAT'                    / name of instr. generating data
EQUINOX = 2000.0                   / equinox for ra and dec
RADECSYS= 'FK5'                    / world coord. system for this file (FK5 or FK4)
DATE    = 'YYYY-MM-DDThh:mm:ss'    / file creation date (UTC)
DATE-OBS= 'YYYY-MM-DDThh:mm:ss'    / start date/time of the obs. (UTC)
DATE-END= 'YYYY-MM-DDThh:mm:ss'    / end date/time of the obs. (UTC)
OBSERVER= 'Peter Michelson'        / LAT PI
ORIGIN  = 'LISOC'                  / name of organization making file
EXTNAME = 'EXPOSURE'               / name of this binary table extension
TSTART  = ''                       / mission time of the obs. start
TSTOP   = ''                       / mission time of the obs. end
MJDREFI = 51910.0                  / Int. part of MJD of SC clock start
MJDREFF =     7.428703703703703D-4 / Frac. part of MJD of SC clock start
TIMEUNIT= 's'                      / units for the time related keywords
TIMEZERO= 0.0                      / clock correction
TIMESYS = 'TT'                     / type of time system that is used
TIMEREF = 'LOCAL'                  / reference frame used for times
CLOCKAPP= F                        / clock drift correction applied?
GPS_OUT = F                        / GPS time unavailable at any time during interval?
PIXTYPE = 'HEALPIX '               / Indicates this is a HEALPix representation
ORDERING= 'NESTED  '               / Can be NESTED or RING
COORDSYS= 'EQU     '               / 
NSIDE   = ''                       / Number of pixels per side per dodecahedron face
FIRSTPIX= ''                       / First pixel index
LASTPIX = ''                       / Last pixel index
THETABIN= 'SQRT(1-COSTHETA)'       / Costheta binning scheme
NBRBINS = ''                       / Number of costheta bins
COSMIN  =                       0. / Minimum costheta value
PHIBINS =                        0 / Number of phi bins
NDSKEYS =                        1 / # of data subspace keywords in header
DSTYP1  = 'TIME    '               / 
DSUNI1  = 's       '               / 
DSVAL1  = 'TABLE   '               / 
DSREF1  = ':GTI    '               / 
TTYPE1  = 'COSBINS'                / 
TFORM1  = '39E'                    / data format of field: 4-byte REAL
TUNIT1  = 's'                      / physical unit of field
TTYPE2  = 'RA'                     / RA of HEALPixel center
TFORM2  = 'E'
TUNIT2  = 'deg'
TLMIN2  = 0.0                      / minimum value
TLMAX2  = 360.0                    / maximum value
TTYPE3  = 'DEC'                    / DEC of HEALPixel center
TFORM3  = 'E'
TUNIT3  = 'deg'
TLMIN3  = -90.0                    / minimum value
TLMAX3  = 90.0                     / maximum value
END

XTENSION= 'BINTABLE'               / binary table extension
BITPIX  = 8                        / 8-bit bytes
NAXIS   = 2                        / 2-dimensional binary table
NAXIS1  = ''                       / width of table in bytes
NAXIS2  = ''                       / number of rows in table
PCOUNT  =                        0 / size of special data area
GCOUNT  = 1                        / one data group (required keyword)
TFIELDS =                        3 / number of fields in each row
CHECKSUM= ''                       / checksum for entire HDU
DATASUM = ''                       / checksum for data table
TELESCOP= 'GLAST'                  / name of telescope generating data
INSTRUME= 'LAT'                    / name of instr. generating data
EQUINOX = 2000.0                   / equinox for ra and dec
RADECSYS= 'FK5'                    / world coord. system for this file (FK5 or FK4)
DATE    = 'YYYY-MM-DDThh:mm:ss'    / file creation date (UTC)
DATE-OBS= 'YYYY-MM-DDThh:mm:ss'    / start date/time of the obs. (UTC)
DATE-END= 'YYYY-MM-DDThh:mm:ss'    / end date/time of the obs. (UTC)
OBSERVER= 'Peter Michelson'        / LAT PI
ORIGIN  = 'LISOC'                  / name of organization making file
EXTNAME = 'WEIGHTED_EXPOSURE'      / name of this binary table extension
TSTART  = ''                       / mission time of the obs. start
TSTOP   = ''                       / mission time of the obs. end
MJDREFI = 51910.0                  / Int. part of MJD of SC clock start
MJDREFF =     7.428703703703703D-4 / Frac. part of MJD of SC clock start
TIMEUNIT= 's'                      / units for the time related keywords
TIMEZERO= 0.0                      / clock correction
TIMESYS = 'TT'                     / type of time system that is used
TIMEREF = 'LOCAL'                  / reference frame used for times
CLOCKAPP= F                        / clock drift correction applied?
GPS_OUT = F                        / GPS time unavailable at any time during interval?
PIXTYPE = 'HEALPIX '               / Indicates this is a HEALPix representation
ORDERING= 'NESTED  '               / Can be NESTED or RING
COORDSYS= 'EQU     '               / 
NSIDE   = ''                       / Number of pixels per side per dodecahedron face
FIRSTPIX= ''                       / First pixel index
LASTPIX = ''                       / Last pixel index
THETABIN= 'SQRT(1-COSTHETA)'       / Costheta binning scheme
NBRBINS = ''                       / Number of costheta bins
COSMIN  =                       0. / Minimum costheta value
PHIBINS =                        0 / Number of phi bins
NDSKEYS =                        1 / # of data subspace keywords in header
DSTYP1  = 'TIME    '               / 
DSUNI1  = 's       '               / 
DSVAL1  = 'TABLE   '               / 
DSREF1  = ':GTI    '               / 
TTYPE1  = 'COSBINS'                / 
TFORM1  = '39E'                    / data format of field: 4-byte REAL
TUNIT1  = 's'                      / physical unit of field
TTYPE2  = 'RA'                     / RA of HEALPixel center
TFORM2  = 'E'
TUNIT2  = 'deg'
TLMIN2  = 0.0                      / minimum value
TLMAX2  = 360.0                    / maximum value
TTYPE3  = 'DEC'                    / DEC of HEALPixel center
TFORM3  = 'E'
TUNIT3  = 'deg'
TLMIN3  = -90.0                    / minimum value
TLMAX3  = 90.0                     / maximum value
END

XTENSION = 'BINTABLE'           / Binary table extension
BITPIX   =                    8 / Bits per pixel
NAXIS    =                    2 / Required value
NAXIS1   =                    0 / Number of bytes per row
NAXIS2   =                    0 / Number of rows
PCOUNT   =                    0 / Normally 0 (no varying arrays)
GCOUNT   =                    1 / Required value
TFIELDS  =                    2 / Number of columns in table
CHECKSUM= ''                          / checksum for entire HDU
DATASUM = ''                          / checksum for data table
TELESCOP= 'GLAST'                     / name of telescope generating data
INSTRUME= 'LAT'                       / name of instrument generating data
EQUINOX = 2000.0                      / equinox for ra and dec
RADECSYS= 'FK5'                       / world coord. system for this file (FK5 or FK4)
DATE    = 'YYYY-MM-DDThh:mm:ss'       / file creation date (UTC)
DATE-OBS= 'YYYY-MM-DDThh:mm:ss'       / start date/time of the obs. (UTC)
DATE-END= 'YYYY-MM-DDThh:mm:ss'       / end date/time of the obs. (UTC)
TSTART  = ''                       / mission time of the obs. start
TSTOP   = ''                       / mission time of the obs. end
OBSERVER= 'Peter Michelson'           / LAT PI
ORIGIN  = 'LISOC'                     / name of organization making file
TTYPE1  = 'CTHETA_MIN'         / Lower boundary of the COSTHETA bin
TFORM1  = 'E'                  / Data format of this field
TLMIN1  = -1.0                    / minimum value
TLMAX1  = 1.0                     / maximum value
TTYPE2  = 'CTHETA_MAX'         / Upper boundary of the COSTHETA bin
TFORM2  = 'E'                  / Data format of this field
TLMIN2  = -1.0                    / minimum value
TLMAX2  = 1.0                     / maximum value
EXTNAME = 'CTHETABOUNDS'       / Extension name
HDUCLASS= 'OGIP'               / Format confirms to OGIP standard
#HDUCLAS1=                      / Extension contains ??
#HDUCLAS2=                      / Extension contains ??
HDUVERS =                0.0.0 / Version number of the format

XTENSION= 'BINTABLE'                  / binary table extension
BITPIX  = 8                           / 8-bit bytes
NAXIS   = 2                           / 2-dimensional binary table
NAXIS1  = ''                          / width of table in bytes
NAXIS2  = ''                          / number of rows in table
PCOUNT  =                           0 / size of special data area
GCOUNT  = 1                           / one data group (required keyword)
TFIELDS =                           2 / number of fields in each row
CHECKSUM= ''                          / checksum for entire HDU
DATASUM = ''                          / checksum for data table
TELESCOP= 'GLAST'                     / name of telescope generating data
INSTRUME= 'LAT'                       / name of instrument generating data
EQUINOX = 2000.0                      / equinox for ra and dec
RADECSYS= 'FK5'                       / world coord. system for this file (FK5 or FK4)
DATE    = 'YYYY-MM-DDThh:mm:ss'       / file creation date (UTC)
DATE-OBS= 'YYYY-MM-DDThh:mm:ss'       / start date/time of the obs. (UTC)
DATE-END= 'YYYY-MM-DDThh:mm:ss'       / end date/time of the obs. (UTC)
OBSERVER= 'Peter Michelson'           / LAT PI
ORIGIN  = 'LISOC'                     / name of organization making file
EXTNAME = 'GTI'                       / name of this binary table ext.
HDUCLASS= 'OGIP'                      / format conforms to OGIP standard
HDUCLAS1= 'GTI'                       / ext. contains good time intervals
HDUCLAS2= 'ALL'                       / ext. contains all science time
TSTART  = ''                          / mission time of the obs. start
TSTOP   = ''                          / mission time of the obs. end 
MJDREFI = 51910.0                     / Int. part of MJD of SC clock start
MJDREFF =     7.428703703703703D-4    / Frac. part of MJD of SC clock start
TIMEUNIT= 's'                         / units for time-related keywords
TIMEZERO= 0.0                         / clock correction
TIMESYS = 'TT'                        / type of time system that is used
TIMEREF = 'LOCAL'                     / reference frame used for times
CLOCKAPP= F                           / clock drift correction applied?
GPS_OUT = F                           / GPS time was unavailable at any time during this interval?
ONTIME  = ''                          / sum of GTI lengths
TELAPSE = ''                          / time between first GTI START and last GTI STOP
TTYPE1  = 'START'                     / start time of good time intervals
TFORM1  = 'D'                         / field data format: 8-byte DOUBLE
TUNIT1  = 's'                         / physical unit of field
TLMIN1  = 0.0                         / minimum value
TLMAX1  = 1.0D+10                     / maximum value
TTYPE2  = 'STOP'                      / stop time of good time intervals
TFORM2  = 'D'                         / field data format: 8-byte DOUBLE
TUNIT2  = 's'                         / physical unit of field
TLMIN2  = 0.0                         / minimum value
TLMAX2  = 1.0D+10                     / maximum value
END
