Revision 40291, 6.6 KB (checked in by eugene, 5 months ago)

merge EAM development branch changes for DR2 into trunk (add PS1_V6 dvo format; change Mcal to McalPSF, McalAPER; change opihi int vectors to 64bit)

1STRUCT       Measure
4SIZE         236
5DESCRIPTION  DVO Detection Measurement Table
7FIELD R,              RA,            double,         RA at epoch,                  degrees
8FIELD D,              DEC,           double,         DEC at epoch,                 degrees
9FIELD M,              MAG,           float,          catalog mag,                    mag
10FIELD dM,             MAG_ERR,       float,          mag error,                      mag
11FIELD Map,            M_APER,        float,          aperture mag,                   mag
12FIELD dMap,           M_APER,        float,          aperture mag,                   mag
13FIELD Mkron,          M_KRON,        float,          kron magnitude,                 mag
14FIELD dMkron,         M_KRON_ERR,    float,          kron magnitude error,           mag
15FIELD McalPSF,        MCAL_PSF,      float,          image cal mag,                  mag
16FIELD dMcal,          MAG_CAL_ERR,   float,          systematic calibration error,   mag
17FIELD dt,             M_TIME,        float,          exposure time,                  2.5*log(exptime)
19# for stacks only?
20FIELD FluxPSF,        FLUX_PSF,      float,         flux from psf fit,              counts/sec
21FIELD dFluxPSF,       FLUX_PSF_ERR,  float,         error on psf flux,              counts/sec
22FIELD FluxKron,       FLUX_KRON,     float,         flux from kron ap,              counts/sec
23FIELD dFluxKron,      FLUX_KRON_ERR, float,         error on kron flux,             counts/sec
24FIELD FluxAp,         FLUX_AP,       float,         flux from ap,                   counts/sec
25FIELD dFluxAp,        FLUX_AP_ERR,   float,         error on ap flux,               counts/sec
27# note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation
28FIELD airmass,        AIRMASS,      float,          (airmass - 1),                  airmass
29FIELD az,             AZ,           float,          telescope azimuth
31# new field elements needed for Pan-STARRS:
32FIELD Xccd,           X_CCD,        float,          X coord on chip (raw value),  pixels
33FIELD Yccd,           Y_CCD,        float,          Y coord on chip (raw value),  pixels
35FIELD Xfix,           X_FIX,        float,          X coord after correction,     pixels
36FIELD Yfix,           Y_FIX,        float,          Y coord after correction,     pixels
38FIELD XoffKH,         X_OFF_KH,      float,          X offset from correction,     pixels
39FIELD YoffKH,         Y_OFF_KH,      float,          Y offset from correction,     pixels
40FIELD XoffDCR,        X_OFF_DCR,     float,          X offset from correction,     pixels
41FIELD YoffDCR,        Y_OFF_DCR,     float,          Y offset from correction,     pixels
42FIELD XoffCAM,        X_OFF_CAM,     float,          X offset from correction,     pixels
43FIELD YoffCAM,        Y_OFF_CAM,     float,          Y offset from correction,     pixels
45FIELD Mflat,          M_FLAT,        float,          Static Flat-field offset,     mag
46FIELD McalAPER,       MCAL_APER,     float,          image cal mag for apertures,  mag
48# could these be packed into fewer bits?
49FIELD Sky,            SKY_FLUX,     float,          local estimate of sky flux,     counts/sec
50FIELD dSky,           SKY_FLUX_ERR, float,          local estimate of sky flux,     counts/sec
52FIELD t,              TIME,         int,            time in seconds (UNIX)
53FIELD averef,         AVE_REF,      unsigned int,   reference to average entry     
55# internally, this is an unsigned int; however, we do NOT convert with TZERO/TSCAL on output
56FIELD detID,          DET_ID,       unsigned int,   detection ID
57FIELD objID,          OBJ_ID,       unsigned int,   unique ID for object in table
58FIELD catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
60# extID needs to be on an 8-byte boundary
61# PSPS uses a 64-bit detection ID
62FIELD extID,          EXT_ID,       uint64_t,       external ID (eg PSPS detID)
64FIELD imageID,        IMAGE_ID,     unsigned int,   reference to DVO image ID
66# do we need more resolution than a short? should this be a log?
67FIELD psfQF,          PSF_QF,        float,          psf coverage/quality factor
68FIELD psfQFperf,      PSF_QF_PEFECT, float,          psf coverage / quality factor (all mask bits)
69FIELD psfChisq,       PSF_CHISQ,     float,          psf fit chisq
71FIELD psfNdof,        PSF_NDOF,      int,            psf degrees of freedom
72FIELD psfNpix,        PSF_NPIX,      int,            psf number of pixels
73FIELD photFlags2,     PHOT_FLAGS,    int,            flags supplied by photometry program
74FIELD extNsigma,      EXT_NSIGMA,    float,          Nsigma deviation towards EXT
76# model shape parameters
77FIELD FWx,            FWHM_MAJOR,   short,          object fwhm major axis,         1/100 of pixels
78FIELD FWy,            FWHM_MINOR,   short,          object fwhm minor axis,         1/100 of pixels
79FIELD theta,          PSF_THETA,    short,          angle wrt ccd X dir,            (0xffff/360) deg
81# moments
82FIELD Mxx,            MXX,          short,          second moments in pixel coords, 1/100 of pixels^2
83FIELD Mxy,            MXY,          short,          second moments in pixel coords, 1/100 of pixels^2
84FIELD Myy,            MYY,          short,          second moments in pixel coords, 1/100 of pixels^2
86# fractional exposure time
87FIELD t_msec,         TIME_MSEC,    unsigned short, time fraction of second,        milliseconds
88FIELD photcode,       PHOTCODE,     unsigned short, photcode
90# convert this to error in pixels on load?
91FIELD dXccd,          X_CCD_ERR,    short,          X coord error on chip,          1/100 of pixels
92FIELD dYccd,          Y_CCD_ERR,    short,          Y coord error on chip,          1/100 of pixels
93FIELD dRsys,          POS_SYS_ERR,  short,          systematic error from astrom,   1/100 of pixels
95# local astrometry scales
96FIELD posangle,       POSANGLE,     short,          position angle sky to chip,     (0xffff/360) deg
97FIELD pltscale,       PLTSCALE,     float,          plate scale,                    arcsec/pixel
99FIELD dbFlags,        DB_FLAGS,     unsigned int,   flags supplied by analysis in database
100FIELD photFlags,      PHOT_FLAGS,   unsigned int,   flags supplied by photometry program
102# *** 20090206 : new fields : t_msec, extID, Mxx, Mxy, Myy, posangle,
103#                psfNdof, psfNpix, Map_small; deprecated dophot.
104#                Changed dbFlags, photFlags : uint16_t to uint64_t
106# *** 20140617 : changed: dR,dD -> R,D (removed dependence on average.R,D)
107                 added: dMap, FluxAp, dFluxAp, (X,Y)off(KH,DCR,GAL)
109# XXX unsigned int values are probably not being saved in the FITS file correctly: no BZERO, BSCALE
Note: See TracBrowser for help on using the browser.