
# extra data which belongs to table header
HEADER METADATA
  COMMENT  STR  MULTI
  COMMENT  STR   
  COMMENT  STR   This HDU applies to all detections that have been analyzed
  COMMENT  STR   with the IPP PSF fitting procedure. Note that the IPP_IDET
  COMMENT  STR   must be unique within a file so as to allow matching up
  COMMENT  STR   sources between the PSF matching and either the alternative
  COMMENT  STR   PSF fits for P2, P4S, and P4D detections or the extended
  COMMENT  STR   source fits to the Image Stack/Cumulative Sky detections.
  COMMENT  STR
  EXTNAME  STR PSF_FIT_PARAMS
END

# description of the FITS table columns
COLUMNS METADATA
  TYPE              TTYPE  TFORM TUNIT            TMIN   TMAX   COMMENT
  IPP_IDET          TTYPE  J     NONE             NONE   NONE   "IPP detection identifer index"                 
  X_PSF             TTYPE  E     PIXELS              0   5000   "PSF x coordinate"                              
  Y_PSF             TTYPE  E     PIXELS              0   5000   "PSF y coordinate"                              
  X_PSF_SIG         TTYPE  E     PIXELS              0     10   "Sigma in PSF x coordinate"                     
  Y_PSF_SIG         TTYPE  E     PIXELS              0     10   "Sigma in PSF y coordinate"                     
  RA_PSF            TTYPE  D    "DECIMAL DEGREES"    0    360   "RA from PSF fit"
  DEC_PSF           TTYPE  D    "DECIMAL DEGREES"  -90    +90   "DEC from PSF fit"
  RA_PSF_SIG        TTYPE  E     ARCSECONDS          0      1   "Sigma of PSF fit RA"
  DEC_PSF_SIG       TTYPE  E     ARCSECONDS          0      1   "Sigma of PSF fit DEC"
  PSF_INST_MAG      TTYPE  E     MAG               -20      0   "PSF fit instrumental magnitude"
  PSF_INST_MAG_SIG  TTYPE  E     MAG                 0    0.5   "Sigma of PSF instrumental magnitude"
  PEAK_FLUX_AS_MAG  TTYPE  E     MAG               -20      0   "Peak flux expressed as magnitude"
  SKY               TTYPE  E     ADU                 0  60000   "Sky level"
  SKY_SIGMA         TTYPE  E     ADU                 0  60000   "Sigma of sky level"
  STAR_GALAXY_SEP   TTYPE  E     NONE                0      1   "Star-Galaxy separator"
  PSF_WIDTH_X       TTYPE  E     ARCSECONDS          0     20   "PSF width in x coordinate"
  PSF_WIDTH_Y       TTYPE  E     ARCSECONDS          0     20   "PSF width in y coordinate"
  PSF_THETA         TTYPE  E     DEGREES          -180   +180   "PSF orientation angle"
  PSF_QF            TTYPE  E     NONE                0      1   "PSF coverage/quality factor"
  CAL_PSF_MAG       TTYPE  E     MAG               -10    +30   "Calibrated magnitude"
  CAL_PSF_MAG_SIG   TTYPE  E     MAG                 0    0.5   "Sigma of calibrated magnitude"
  N_FRAMES          TTYPE  I     NONE                0  10000   "Number of frames overlapping source center"
END
