# Definition of Livetime cube file (see LS-003)
# $Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/SolarSystemTools/data/LivetimeCubeSunTemplate,v 1.1.1.1 2012/02/11 02:26:40 gudlaugu 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 = 'EXPOSURESUN'            / 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
NBINS   =                          / Total number of bins
NBRBINS =                          / Number of costheta bins
COSMIN  =                       0. / Minimum costheta value
NTHBINS =                          / Number of thetasun bins
THMAX   =                     3.14 / Maximum theta value (radians)
PHIBINS =                        0 / Number of phi bins
NDSKEYS =                        1 / # of data subspace keywords in header
DSTYP1  = 'TIME    '               / 
DSUNI1  = 's       '               / 
DSVAL1  = 'TABLE   '               / 
DSREF1  = ':GTI    '               / 
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_EXPOSURESUN'   / 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
NBINS   =                          / Total number of bins
NBRBINS =                          / Number of costheta bins
COSMIN  =                       0. / Minimum costheta value
NTHBINS =                          / Number of thetasun bins
THMAX   =                     3.14 / Maximum theta value (radians)
PHIBINS =                        0 / Number of phi bins
NDSKEYS =                        1 / # of data subspace keywords in header
DSTYP1  = 'TIME    '               / 
DSUNI1  = 's       '               / 
DSVAL1  = 'TABLE   '               / 
DSREF1  = ':GTI    '               / 
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
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  = 'THETA_MIN'         / Lower boundary of the COSTHETA bin
TFORM1  = 'E'                  / Data format of this field
TLMIN1  = 0.0                    / minimum value
TLMAX1  = 180.0                     / maximum value
TTYPE2  = 'THETA_MAX'         / Upper boundary of the COSTHETA bin
TFORM2  = 'E'                  / Data format of this field
TLMIN2  = 0.0                    / minimum value
TLMAX2  = 180.0                     / maximum value
EXTNAME = 'THETASUNBOUNDS'       / Extension name
HDUCLASS= 'OGIP'               / Format confirms to OGIP standard
#HDUCLAS1=                      / Extension contains ??
#HDUCLAS2=                      / Extension contains ??
HDUVERS =                0.0.0 / Version number of the format
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 =                           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
