The PH FITS file

FITS file headers

FITS source: ./examples/cgbm_20160301_hxm1_hg.ph

ASCII source: ./examples/cgbm_20160301_hxm1_hg_ph_headers.txt

# HDU 0 in cgbm_20160301_hxm1_hg.ph:
SIMPLE  =                    T / conformity to FITS standard                    
BITPIX  =                    8 / number of bits per data pixel                  
NAXIS   =                    0 / number of data axes                            
EXTEND  =                    T / possibility of presence of extensions          
CREATOR = 'cgbmgenph 0.3.0 (2018-04-23)' / software name-version-date           
TELESCOP= 'CALET   '           / observer name                                  
INSTRUME= 'CGBM    '           / instrument name                                
DETNAM  = 'HXM1    '           / detector name                                  
ORIGIN  = 'JAXA, WCOC'         / origin of fits file                            
DATE    = '2018-04-27T18:13:24' / file creation datetime (UTC)                  
DATE-OBS= '2016-02-29T23:59:59' / Date of start of observation                  
DATE-END= '2016-03-01T23:59:56' / Date of end of observation                    
TSTART  = '510105603.961939'   / [CGBM MET] Observation start time              
TSTOP   = '510192000.658375'   / [CGBM MET] Observation stop time               
TIMEDEL = '4.0     '           / Time resolution (bin size)                     
FILTER  = 'none    '           / The instrument filter in use (if any)          
AREASCAL=             1.000000 / No special scaling of effective area by channel
BACKFILE= 'none    '           / Name of corresponding background file (if any) 
BACKSCAL=             1.000000 / No scaling of background                       
CORRFILE= 'none    '           / Name of corresponding correction file (if any) 
CORRSCAL=             1.000000 / Correction scaling file                        
RESPFILE= 'none    '           / Name of corresponding RMF file (if any)        
ANCRFILE= 'none    '           / Name of corresponding ARF file (if any)        
SYS_ERR =             0.000000 / No systematic errors                           
POISSERR=                    T / Assume Poisson Errors                          
GROUPING=                    0 / No special grouping has been applied           
HDUCLASS= 'OGIP    '           / Format conforms to OGIP standard               
HDUCLAS1= 'SPECTRUM'           / PHA dataset (OGIP memo OGIP-92-007)            
HDUCLAS2= 'TOTAL   '           / Indicates gross data (source + background)     
HDUCLAS3= 'COUNT   '           / Indicates data stored as counts                
HDUCLAS4= 'TYPEII  '           / Indicates PHA Type II file format              
HDUVERS = '1.2.1   '           / Version of HDUCLAS1 format in use              
CHANTYPE= 'PHA     '           / No corrections have been applied               
DETCHANS=                  102 / Total number of detector PHA channels          
CHECKSUM= 'YY94YY74YY74YY74'   / HDU checksum : 2018-04-27T18:13:25             
DATASUM = '         0'         / data unit checksum : 2018-04-27T18:13:25       
MJDREFI =                51544 / MJD reference day                              
MJDREFF =  0.00074287037037037 / MJD reference(fraction of day)                 
TIMEREF = 'LOCAL   '           / reference time                                 
TIMESYS = 'TT      '           / Time system used to define time                
TIMEUNIT= 's       '           / unit for time keyword                          
TIMEPIXR=                    1 / Time stamps refer to end of each bin           
PROCVER = '1.1.1.1 '           / Major.Minor.Tool.CALDB                         
CALDBVER= 'cgbm20180214'       / CALDB version                                  
L1FLAG  =                    0 / Level 1 data flag (0:tmpL1/1: official L1)     
SEQPNUM =                    1 / sequence in procver                            
HISTORY START cgbmgenph at 2018-04-27T18:13:15                                  
HISTORY                                                                         
HISTORY - gbm-thfile: /tmp/cgbmarch_mkph.pyE9YmJD/gbm_ph_merged.fits            
HISTORY - com-perfile: /tmp/cgbmarch_mkph.pyE9YmJD/com_per_merged.fits          
HISTORY - timlist: DEF                                                          
HISTORY - procnum: 1                                                            
HISTORY - date: 2016-03-01                                                      
HISTORY                                                                         
HISTORY END cgbmgenph                                                           
HISTORY START cgbmarch_correctPHgain.py at 2018-04-27T18:13:37                  
HISTORY                                                                         
HISTORY - date: 2016-03-01                                                      
HISTORY - detnam: HXM1                                                          
HISTORY                                                                         
HISTORY END cgbmarch_correctPHgain.py                                           

# HDU 1 in cgbm_20160301_hxm1_hg.ph:
XTENSION= 'BINTABLE'           / binary table extension                         
BITPIX  =                    8 / array data type                                
NAXIS   =                    2 / number of array dimensions                     
NAXIS1  =                  431 / length of dimension 1                          
NAXIS2  =                21550 / length of dimension 2                          
PCOUNT  =                    0 / number of group parameters                     
GCOUNT  =                    1 / number of groups                               
TFIELDS =                    7 / number of table fields                         
EXTNAME = 'SPECTRUM'           / name of this HDU                               
EXTVER  =                    0 / version of the extension                       
HDUCLASS= 'OGIP    '           / Format conforms to OGIP standard               
HDUCLAS1= 'SPECTRUM'           / PHA dataset (OGIP memo OGIP-92-007)            
CREATOR = 'cgbmgenph 0.3.0 (2018-04-23)' / software name-version-date           
TELESCOP= 'CALET   '           / observer name                                  
INSTRUME= 'CGBM    '           / instrument name                                
DETNAM  = 'HXM1    '           / detector name                                  
ORIGIN  = 'JAXA, WCOC'         / origin of fits file                            
DATE    = '2018-04-27T18:13:24' / file creation datetime (UTC)                  
DATE-OBS= '2016-02-29T23:59:59' / Date of start of observation                  
DATE-END= '2016-03-01T23:59:56' / Date of end of observation                    
TSTART  = '510105603.961939'   / [CGBM MET] Observation start time              
TSTOP   = '510192000.658375'   / [CGBM MET] Observation stop time               
TIMEDEL = '4.0     '           / Time resolution (bin size)                     
FILTER  = 'none    '           / The instrument filter in use (if any)          
AREASCAL=             1.000000 / No special scaling of effective area by channel
BACKFILE= 'none    '           / Name of corresponding background file (if any) 
BACKSCAL=             1.000000 / No scaling of background                       
CORRFILE= 'none    '           / Name of corresponding correction file (if any) 
CORRSCAL=             1.000000 / Correction scaling file                        
RESPFILE= 'none    '           / Name of corresponding RMF file (if any)        
ANCRFILE= 'none    '           / Name of corresponding ARF file (if any)        
SYS_ERR =             0.000000 / No systematic errors                           
POISSERR=                    T / Assume Poisson Errors                          
GROUPING=                    0 / No special grouping has been applied           
HDUCLAS2= 'TOTAL   '           / Indicates gross data (source + background)     
HDUCLAS3= 'COUNT   '           / Indicates data stored as counts                
HDUCLAS4= 'TYPEII  '           / Indicates PHA Type II file format              
HDUVERS = '1.2.1   '           / Version of HDUCLAS1 format in use              
CHANTYPE= 'PHA     '           / No corrections have been applied               
DETCHANS=                  102 / Total number of detector PHA channels          
CHECKSUM= 'QFkFTFhCQFhCQFhC'   / HDU checksum : 2018-04-27T18:13:25             
DATASUM = ' 140962457'         / data unit checksum : 2018-04-27T18:13:25       
MJDREFI =                51544 / MJD reference day                              
MJDREFF =  0.00074287037037037 / MJD reference(fraction of day)                 
TIMEREF = 'LOCAL   '           / reference time                                 
TIMESYS = 'TT      '           / Time system used to define time                
TIMEUNIT= 's       '           / unit for time keyword                          
TIMEPIXR=                    1 / Time stamps refer to end of each bin           
PROCVER = '1.1.1.1 '           / Major.Minor.Tool.CALDB                         
CALDBVER= 'cgbm20180214'       / CALDB version                                  
L1FLAG  =                    0 / Level 1 data flag (0:tmpL1/1: official L1)     
SEQPNUM =                    1 / sequence in procver                            
GAINAPP =                    T                                                  
TTYPE1  = 'TIME    '                                                            
TFORM1  = '1D      '                                                            
TUNIT1  = 's       '                                                            
TTYPE2  = 'MDCTIME '                                                            
TFORM2  = '1D      '                                                            
TUNIT2  = 's       '                                                            
TTYPE3  = 'PHA     '                                                            
TFORM3  = '102I    '                                                            
TUNIT3  = 'count   '                                                            
TZERO3  =                32768                                                  
TTYPE4  = 'PI      '                                                            
TFORM4  = '102I    '                                                            
TUNIT4  = 'count   '                                                            
TZERO4  =                32768                                                  
TTYPE5  = 'SPEC_NUM'                                                            
TFORM5  = '1I      '                                                            
TUNIT5  = 'count   '                                                            
TZERO5  =                32768                                                  
TTYPE6  = 'QUALITY '                                                            
TFORM6  = '1B      '                                                            
TUNIT6  = 'count   '                                                            
TTYPE7  = 'EXPOSURE'                                                            
TFORM7  = '1E      '                                                            
HISTORY START cgbmgenph at 2018-04-27T18:13:15                                  
HISTORY                                                                         
HISTORY - gbm-thfile: /tmp/cgbmarch_mkph.pyE9YmJD/gbm_ph_merged.fits            
HISTORY - com-perfile: /tmp/cgbmarch_mkph.pyE9YmJD/com_per_merged.fits          
HISTORY - timlist: DEF                                                          
HISTORY - procnum: 1                                                            
HISTORY - date: 2016-03-01                                                      
HISTORY                                                                         
HISTORY END cgbmgenph                                                           
HISTORY START cgbmarch_correctPHgain.py at 2018-04-27T18:13:37                  
HISTORY                                                                         
HISTORY - date: 2016-03-01                                                      
HISTORY - detnam: HXM1                                                          
HISTORY                                                                         
HISTORY END cgbmarch_correctPHgain.py                                           

# HDU 2 in cgbm_20160301_hxm1_hg.ph:
XTENSION= 'BINTABLE'           / type of extension                              
BITPIX  =                    8 / number of bits per data element                
NAXIS   =                    2 / number of data axes                            
NAXIS1  =                   24 / width of table in bytes                        
NAXIS2  =               689600 / number of rows in table                        
PCOUNT  =                    0 / length of reserved area and heap               
GCOUNT  =                    1 / number of groups                               
TFIELDS =                    6 / number of fields in each row                   
EXTNAME = 'DEADTIME'           / name of this HDU                               
EXTVER  =                    0 / version of the extension                       
TTYPE1  = 'TIME    '           / field name                                     
TUNIT1  = 's       '           / Seconds since MJDREF; end times of bins        
TFORM1  = '1D      '           / data format : 8-byte REAL                      
TTYPE2  = 'MDCTIME '           / field name                                     
TUNIT2  = 's       '           / Mission Data Controller time; end times of bins
TFORM2  = '1D      '           / data format : 8-byte REAL                      
TTYPE3  = 'DT      '           / field name                                     
TUNIT3  = 'us      '           / physical unit                                  
TFORM3  = '1I      '           / data format : 2-byte INTEGER                   
TTYPE4  = 'LD      '           / field name                                     
TUNIT4  = 'count   '           / physical unit                                  
TFORM4  = '1I      '           / data format : 2-byte INTEGER                   
TZERO4  =                32768 / zero point in scaling equation                 
TTYPE5  = 'UD      '           / field name                                     
TUNIT5  = 'count   '           / physical unit                                  
TFORM5  = '1I      '           / data format : 2-byte INTEGER                   
TZERO5  =                32768 / zero point in scaling equation                 
TTYPE6  = 'SPEC_NUM'           / field name                                     
TFORM6  = '1I      '           / data format : 2-byte INTEGER                   
TZERO6  =                32768 / zero point in scaling equation                 
CREATOR = 'cgbmgenph 0.3.0 (2018-04-23)' / software name-version-date           
TELESCOP= 'CALET   '           / observer name                                  
INSTRUME= 'CGBM    '           / instrument name                                
DETNAM  = 'HXM1    '           / detector name                                  
ORIGIN  = 'JAXA, WCOC'         / origin of fits file                            
DATE    = '2018-04-27T18:13:24' / file creation datetime (UTC)                  
DATE-OBS= '2016-02-29T23:59:59' / Date of start of observation                  
DATE-END= '2016-03-01T23:59:56' / Date of end of observation                    
TSTART  = '510105603.961939'   / [CGBM MET] Observation start time              
TSTOP   = '510192000.658375'   / [CGBM MET] Observation stop time               
TIMEDEL = '4.0     '           / Time resolution (bin size)                     
FILTER  = 'none    '           / The instrument filter in use (if any)          
AREASCAL=             1.000000 / No special scaling of effective area by channel
BACKFILE= 'none    '           / Name of corresponding background file (if any) 
BACKSCAL=             1.000000 / No scaling of background                       
CORRFILE= 'none    '           / Name of corresponding correction file (if any) 
CORRSCAL=             1.000000 / Correction scaling file                        
RESPFILE= 'none    '           / Name of corresponding RMF file (if any)        
ANCRFILE= 'none    '           / Name of corresponding ARF file (if any)        
SYS_ERR =             0.000000 / No systematic errors                           
POISSERR=                    T / Assume Poisson Errors                          
GROUPING=                    0 / No special grouping has been applied           
HDUCLASS= 'OGIP    '           / Format conforms to OGIP standard               
HDUCLAS1= 'SPECTRUM'           / PHA dataset (OGIP memo OGIP-92-007)            
HDUCLAS2= 'TOTAL   '           / Indicates gross data (source + background)     
HDUCLAS3= 'COUNT   '           / Indicates data stored as counts                
HDUCLAS4= 'TYPEII  '           / Indicates PHA Type II file format              
HDUVERS = '1.2.1   '           / Version of HDUCLAS1 format in use              
CHANTYPE= 'PHA     '           / No corrections have been applied               
DETCHANS=                  102 / Total number of detector PHA channels          
CHECKSUM= 'ZXEgaVCdTVCdZVCd'   / HDU checksum : 2018-04-27T18:13:25             
DATASUM = '3865508002'         / data unit checksum : 2018-04-27T18:13:25       
MJDREFI =                51544 / MJD reference day                              
MJDREFF =  0.00074287037037037 / MJD reference(fraction of day)                 
TIMEREF = 'LOCAL   '           / reference time                                 
TIMESYS = 'TT      '           / Time system used to define time                
TIMEUNIT= 's       '           / unit for time keyword                          
TIMEPIXR=                    1 / Time stamps refer to end of each bin           
PROCVER = '1.1.1.1 '           / Major.Minor.Tool.CALDB                         
CALDBVER= 'cgbm20180214'       / CALDB version                                  
L1FLAG  =                    0 / Level 1 data flag (0:tmpL1/1: official L1)     
SEQPNUM =                    1 / sequence in procver                            
HISTORY START cgbmgenph at 2018-04-27T18:13:15                                  
HISTORY                                                                         
HISTORY - gbm-thfile: /tmp/cgbmarch_mkph.pyE9YmJD/gbm_ph_merged.fits            
HISTORY - com-perfile: /tmp/cgbmarch_mkph.pyE9YmJD/com_per_merged.fits          
HISTORY - timlist: DEF                                                          
HISTORY - procnum: 1                                                            
HISTORY - date: 2016-03-01                                                      
HISTORY                                                                         
HISTORY END cgbmgenph                                                           
HISTORY START cgbmarch_correctPHgain.py at 2018-04-27T18:13:37                  
HISTORY                                                                         
HISTORY - date: 2016-03-01                                                      
HISTORY - detnam: HXM1                                                          
HISTORY                                                                         
HISTORY END cgbmarch_correctPHgain.py                                           

# HDU 3 in cgbm_20160301_hxm1_hg.ph:
XTENSION= 'BINTABLE'           / binary table extension                         
BITPIX  =                    8 / array data type                                
NAXIS   =                    2 / number of array dimensions                     
NAXIS1  =                   10 / length of dimension 1                          
NAXIS2  =                  102 / length of dimension 2                          
PCOUNT  =                    0 / number of group parameters                     
GCOUNT  =                    1 / number of groups                               
TFIELDS =                    3 / number of table fields                         
TTYPE1  = 'CHANNEL '                                                            
TFORM1  = 'I       '                                                            
TTYPE2  = 'E_MIN   '                                                            
TFORM2  = 'E       '                                                            
TUNIT2  = 'keV     '                                                            
TTYPE3  = 'E_MAX   '                                                            
TFORM3  = 'E       '                                                            
TUNIT3  = 'keV     '                                                            
TELESCOP= 'CALET   '           / observer name                                  
INSTRUME= 'CGBM    '           / instrument name                                
DETNAM  = 'HXM1    '           / detector name                                  
GAIN    = 'HG      '                                                            
ORIGIN  = 'JAXA, WCOC'         / origin of fits file                            
EXTNAME = 'EBOUNDS '                                                            
PI2ENE  =                0.024                                                  
FILTER  = 'none    '           / The instrument filter in use (if any)          
TIMESYS = 'TT      '           / Time system used to define time                
TIMEUNIT= 's       '           / unit for time keyword                          
TIMEREFI=                51544                                                  
TIMEREFF=  0.00074287037037037                                                  
HDUCLASS= 'OGIP    '           / Format conforms to OGIP standard               
HDUCLAS1= 'SPECTRUM'           / PHA dataset (OGIP memo OGIP-92-007)            
HDUCLAS2= 'TOTAL   '           / Indicates gross data (source + background)     
HDUVERS = '1.2.1   '           / Version of HDUCLAS1 format in use              
CHANTYPE= 'PHA     '           / No corrections have been applied               
EXTVAR  =                    1                                                  
TLMIN1  =                    0                                                  
TLMAX1  =                  102                                                  
TLMIN2  =                  0.0                                                  
TLMAX2  =               98.304                                                  
TLMIN3  =                    0                                                  
TLMAX3  =               98.304                                                  
CREATOR = 'cgbmgenph 0.3.0 (2018-04-23)' / software name-version-date           
DATE    = '2018-04-27T18:13:24' / file creation datetime (UTC)                  
DATE-OBS= '2016-02-29T23:59:59' / Date of start of observation                  
DATE-END= '2016-03-01T23:59:56' / Date of end of observation                    
TSTART  = '510105603.961939'   / [CGBM MET] Observation start time              
TSTOP   = '510192000.658375'   / [CGBM MET] Observation stop time               
TIMEDEL = '4.0     '           / Time resolution (bin size)                     
AREASCAL=             1.000000 / No special scaling of effective area by channel
BACKFILE= 'none    '           / Name of corresponding background file (if any) 
BACKSCAL=             1.000000 / No scaling of background                       
CORRFILE= 'none    '           / Name of corresponding correction file (if any) 
CORRSCAL=             1.000000 / Correction scaling file                        
RESPFILE= 'none    '           / Name of corresponding RMF file (if any)        
ANCRFILE= 'none    '           / Name of corresponding ARF file (if any)        
SYS_ERR =             0.000000 / No systematic errors                           
POISSERR=                    T / Assume Poisson Errors                          
GROUPING=                    0 / No special grouping has been applied           
HDUCLAS3= 'COUNT   '           / Indicates data stored as counts                
HDUCLAS4= 'TYPEII  '           / Indicates PHA Type II file format              
DETCHANS=                  102 / Total number of detector PHA channels          
CHECKSUM= 'eZq7eYo4eYo4eYo4'   / HDU checksum : 2018-04-27T18:13:25             
DATASUM = '1414376802'         / data unit checksum : 2018-04-27T18:13:25       
MJDREFI =                51544 / MJD reference day                              
MJDREFF =  0.00074287037037037 / MJD reference(fraction of day)                 
TIMEREF = 'LOCAL   '           / reference time                                 
TIMEPIXR=                    1 / Time stamps refer to end of each bin           
PROCVER = '1.1.1.1 '           / Major.Minor.Tool.CALDB                         
CALDBVER= 'cgbm20180214'       / CALDB version                                  
L1FLAG  =                    0 / Level 1 data flag (0:tmpL1/1: official L1)     
SEQPNUM =                    1 / sequence in procver                            
HISTORY START cgbmgenph at 2018-04-27T18:13:15                                  
HISTORY                                                                         
HISTORY - gbm-thfile: /tmp/cgbmarch_mkph.pyE9YmJD/gbm_ph_merged.fits            
HISTORY - com-perfile: /tmp/cgbmarch_mkph.pyE9YmJD/com_per_merged.fits          
HISTORY - timlist: DEF                                                          
HISTORY - procnum: 1                                                            
HISTORY - date: 2016-03-01                                                      
HISTORY                                                                         
HISTORY END cgbmgenph                                                           
HISTORY START cgbmarch_correctPHgain.py at 2018-04-27T18:13:37                  
HISTORY                                                                         
HISTORY - date: 2016-03-01                                                      
HISTORY - detnam: HXM1                                                          
HISTORY                                                                         
HISTORY END cgbmarch_correctPHgain.py