PCal Outfile Files and & Description  (Sept 18, 2008)
FPCal_sis v1.1
pcl01 - WSDC D-I108

Interface Name:     FPCal Interface
Type of Interface:  program i/o

Written By:         Frame Photometric Calibration System (FPCal) __________ S. Wheelock
Read By:            Scan Photometric Calibration System (SPCal ) __________ S. Wheelock


Description & Caveats: File contains all frame level source matches to a calibration star. 
                       All FPCal output files associated with a single scan plus all WPHOT extraction files
                       will be used during the 
                       scan level processing to determine the scan calibration offset values.
                       
Version 0.1 of FPCal, single-frame processing by PCal.

______________________________________________________________________________________________

Specification of output variables:

Header comments:

TMATCHES = Total number of extracted sources in frame that matches a calibrator. 
PMATCHES[1,2,3,4] = Number of extracted sources matching a primary calibrator for WISE band [1,2,3,4].
SMATCHES[1,2,3,4] = Number of extracted sources matching a seconday calibrator for WISE band [1,2,3,4].
Tabular data:


  cols   Name   Description                                                Units   Type    Format
  ----   ----   -----------------------------------------------            ------- ----   --------
   1     src_name  extracted source ID counter - from WPHOT file            --     int    I8
   2     src_ra    extracted source right ascension (J2000) 		   deg     R*8    e20.10
   3     src_dec   extracted source  declination (J2000)		   deg     R*8    e20.10
   4     cal_name  calibrator name			                    --     char   s*15 
   5     ps        primary or secondary indicator	                    --     char   s*3 
   5     cal_ra    calibrator right ascension (J2000)                      deg     R*8    e20.10
   6     cal_dec   calibrator declination (J2000)                          deg     R*8    e20.10
   7     pos_diff  position difference (arcsec)                            asec    R*8    e20.9
   8     cw1mag    calibrator mag  WISE Band 1                             mag     R*8    e9.4
   9     cw2mag    calibrator mag  WISE Band 2                             mag     R*8    e9.4
  10     cw3mag    calibrator mag  WISE Band 3                             mag     R*8    e9.4
  11     cw4mag    calibrator mag  WISE Band 4                             mag     R*8    e9.4
  12     cband     Bands that have magnitudes for this calibrator           --     char   s*4
  13     frL_1     fraction of pixels with latents per Frank Band 1         --     R*8    e10.4
  14     frL_2     fraction of pixels with latents per Frank Band 2         --     R*8    e10.4
  15     frL_3     fraction of pixels with latents per Frank Band 3         --     R*8    e10.4
  16     frL_4     fraction of pixels with latents per Frank Band 4         --     R*8    e10.4
  17     snrw1     SNR Band 1 from WPHOT                                    --     R*8    e10.4
  18     snrw2     SNR Band 2 from WPHOT                                    --     R*8    e10.4
  19     snrw3     SNR Band 3 from WPHOT                                    --     R*8    e10.4
  20     snrw4     SNR Band 4 from WPHOT                                    --     R*8    e10.4
  21     pw1mag    PSF Band 1 mag                                          mag     R*8    e10.4
  22     pw2mag    PSF Band 2 mag                                          mag     R*8    e10.4
  23     pw3mag    PSF Band 3 mag                                          mag     R*8    e10.4
  24     pw4mag    PSF Band 4 mag                                          mag     R*8    e10.4
  25     epw1mag   PSF Band 1 mag error                                    mag     R*8    e10.4
  26     epw2mag   PSF Band 2 mag error                                    mag     R*8    e10.4
  27     epw3mag   PSF Band 3 mag error                                    mag     R*8    e10.4
  28     epw4mag   PSF Band 4 mag error                                    mag     R*8    e10.4
  29     chi2w1    Reduced Chi2 Band 1 from WPHOT                           --     R*8    e10.4
  30     chi2w2    Reduced Chi2 Band 2 from WPHOT                           --     R*8    e10.4
  31     chi2w3    Reduced Chi2 Band 3 from WPHOT                           --     R*8    e10.4
  32     chi2w4    Reduced Chi2 Band 4 from WPHOT                           --     R*8    e10.4
  33     aw1mag    Standard Aperture mag Band 1                            mag     R*8    e10.4
  34     aw2mag    Standard Aperture mag Band 2                            mag     R*8    e10.4
  35     aw3mag    Standard Aperture mag Band 3                            mag     R*8    e10.4
  36     aw4mag    Standard Aperture mag Band 4                            mag     R*8    e10.4
  37     aw1magc   Standard Aperture mag Corr Band 1                       mag     R*8    e10.4
  38     aw2magc   Standard Aperture mag Corr Band 2                       mag     R*8    e10.4
  39     aw3magc   Standard Aperture mag Corr Band 3                       mag     R*8    e10.4
  40     aw4magc   Standard Aperture mag Corr Band 4                       mag     R*8    e10.4
  41     eaw1mag   Standard Aperture mag error Band 1                      mag     R*8    e10.4
  42     eaw2mag   Standard Aperture mag error Band 2                      mag     R*8    e10.4
  43     eaw3mag   Standard Aperture mag error Band 3                      mag     R*8    e10.4
  44     eaw4mag   Standard Aperture mag error Band 4                      mag     R*8    e10.4
______________________________________________________________________________________________


Example table:

\int PMATCHES1 = 2
\int PMATCHES2 = 3
\int PMATCHES3 = 2
\int PMATCHES4 = 2
\int SMATCHES1 = 1
\int SMATCHES2 = 0
\int SMATCHES3 = 0
\int SMATCHES4 = 0
\int TMATCHES = 4
 src_name|src_ra              |src_dec             |cal_name       |ps |cal_ra              |cal_dec             |pos_diff            |cw1mag    |cw2mag
    |cw3mag    |cw4mag    |cband |frL_1     |frL_2     |frL_3     |frL_4     |snrw1     |snrw2     |snrw3     |snrw4     |pw1mag    |pw2mag    |pw3mag  
  |pw4mag    |epw1mag   |epw2mag   |epw3mag   |epw4mag   |chi2w1    |chi2w2    |chi2w3    |chi2w4    |aw1mag    |aw2mag    |aw3mag    |aw4mag    |aw1mag
c   |aw2magc   |aw3magc   |aw4magc   |eaw1mag   |eaw2mag   |eaw3mag   |eaw4mag   |
|int     |double              |double              |char           |cha|double              |double              |double              |double    |double
    |double    |double    |char  |double    |double    |double    |double    |double    |double    |double    |double    |double    |double    |double  
  |double    |double    |double    |double    |double    |double    |double    |double    |double    |double    |double    |double    |double    |double
    |double    |double    |double    |double    |double    |double    |double    |
|        |deg                 |deg                 |               |   |deg                 |deg                 |arcsec              |mag       |mag   
    |mag       |mag       |      |          |          |          |          |          |          |          |          |mag       |mag       |mag     
  |mag       |mag       |mag       |mag       |mag       |          |          |          |          |mag       |mag       |mag       |mag       |mag   
    |mag       |mag       |mag       |mag       |mag       |mag       |mag       |
 6        3.4662066150e+02     2.6839585700e+01     KASDF3          p   3.4662066150e+02     2.6839585700e+01     3.073585127e-03      9.2480e+00 7.6070
e+00 7.8040e+00 1.0598e+01 1111   0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 7.2400e+01 1.1390e+02 3.0900e+01 2.6000e+00 9.2480e+00 7.6070e+00 7.8040e+
00 1.0598e+01 1.5000e-02 1.0000e-02 3.5000e-02 4.1800e-01 1.0393e+02 2.6487e+01 2.2930e+00 3.7200e-01 9.9000e+01 9.9000e+01 9.9000e+01 9.9000e+01 0.0000
e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 
 11       3.4594842530e+02     2.7152237000e+01     KASDFD          s   3.4594842530e+02     2.7152237000e+01     0.000000000e+00      8.2910e+00 1.1674
e+01 9.8590e+00 9.2690e+00 1000   0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 5.5100e+01 -5.9000e+0 -3.0000e-0 3.0000e-01 8.2910e+00 1.1674e+01 9.8590e+
00 9.2690e+00 2.0000e-02 9.9900e+00 9.9900e+00 9.9900e+00 1.9940e+00 2.3730e+00 5.2600e-01 7.3600e-01 8.4670e+00 8.2400e+00 8.5540e+00 9.9000e+01 0.0000
e+00 0.0000e+00 0.0000e+00 0.0000e+00 2.0000e-03 3.0000e-03 4.2000e-02 0.0000e+00 
 22       3.4653676630e+02     2.6809123700e+01     KASDF4          p   3.4653676630e+02     2.6809123700e+01     0.000000000e+00      9.3630e+00 8.7570
e+00 8.9480e+00 9.7940e+00 1111   0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 6.8300e+01 5.7700e+01 1.1600e+01 5.1000e+00 9.3630e+00 8.7570e+00 8.9480e+
00 9.7940e+00 1.6000e-02 1.9000e-02 9.3000e-02 2.1100e-01 5.1752e+01 9.5833e+01 1.0780e+00 6.2450e+00 9.9000e+01 9.9000e+01 9.9000e+01 9.9000e+01 0.0000
e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 
 80       3.4641421070e+02     2.7388940700e+01     KF03T4          p   3.4641421070e+02     2.7388940700e+01     0.000000000e+00      1.4738e+01 1.0228
e+01 9.4970e+00 9.2180e+00 0100   0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 -2.2000e+0 5.6200e+01 1.1000e+00 5.0000e-01 1.4738e+01 1.0228e+01 9.4970e+
00 9.2180e+00 9.9900e+00 1.9000e-02 9.9900e+00 9.9900e+00 1.4700e+00 1.4940e+00 5.9000e-01 2.0010e+00 1.0758e+01 1.0360e+01 1.0625e+01 9.9000e+01 0.0000
e+00 0.0000e+00 0.0000e+00 0.0000e+00 1.0000e-02 1.9000e-02 2.9200e-01 0.0000e+00