IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2009, 11:33:52 AM (17 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20090208: add PS1_V1 formats; rename average.code to flags, image.code to flags; some opihi function name clarification; drop Stars as autocode struct; rework addstar to isolate input -> Measure conversions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/def/measure.d

    r16810 r21508  
    22EXTNAME      DVO_MEASURE
    33TYPE         BINTABLE
    4 SIZE         112
     4SIZE         146
    55DESCRIPTION  DVO Detection Measurement Table
    66
    7 FIELD dR,             D_RA,         float,          RA offset,                    arcsec
    8 FIELD dD,             D_DEC,        float,          DEC offset,                   arcsec
    9 FIELD M,              MAG,          float,          catalog mag,                  mag
    10 FIELD Mcal,           M_CAL,        float,          image cal mag,                mag
    11 FIELD Map,            M_APER,       float,          aperture mag,                 mag
    12 FIELD dM,             MAG_ERR,      float,          mag error,                    mag
    13 FIELD dMcal,          MAG_CAL_ERR,  float,          systematic calibration error, mag
    14 FIELD dt,             M_TIME,       float,          exposure time,                2.5*log(exptime)
     7FIELD dR,             D_RA,         float,          RA offset,                      arcsec
     8FIELD dD,             D_DEC,        float,          DEC offset,                     arcsec
     9FIELD M,              MAG,          float,          catalog mag,                    mag
     10FIELD Mcal,           M_CAL,        float,          image cal mag,                  mag
     11FIELD Map,            M_APER,       float,          aperture mag,                   mag
     12FIELD dM,             MAG_ERR,      float,          mag error,                      mag
     13FIELD dMcal,          MAG_CAL_ERR,  float,          systematic calibration error,   mag
     14FIELD dt,             M_TIME,       float,          exposure time,                  2.5*log(exptime)
    1515
    1616# note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation
    17 FIELD airmass,        AIRMASS,      float,          (airmass - 1),                airmass
     17FIELD airmass,        AIRMASS,      float,          (airmass - 1),                  airmass
    1818FIELD az,             AZ,           float,          telescope azimuth
    1919
    2020# new field elements needed for Pan-STARRS:
    21 FIELD Xccd,           X_CCD,        float,          X coord on chip,               pixels
    22 FIELD Yccd,           Y_CCD,        float,          Y coord on chip,               pixels
     21FIELD Xccd,           X_CCD,        float,          X coord on chip,                pixels
     22FIELD Yccd,           Y_CCD,        float,          Y coord on chip,                pixels
    2323
    2424# could these be packed into fewer bits?
    25 FIELD Sky,            SKY_FLUX,     float,          local estimate of sky flux,    counts/sec
    26 FIELD dSky,           SKY_FLUX_ERR, float,          local estimate of sky flux,    counts/sec
     25FIELD Sky,            SKY_FLUX,     float,          local estimate of sky flux,     counts/sec
     26FIELD dSky,           SKY_FLUX_ERR, float,          local estimate of sky flux,     counts/sec
    2727
    28 FIELD t,              TIME,         unsigned int,   time in seconds (UNIX)
     28FIELD t,              TIME,         int,            time in seconds (UNIX)
     29FIELD t_msec,         TIME_MSEC,    unsigned short, time fraction of second,        milliseconds
    2930FIELD averef,         AVE_REF,      unsigned int,   reference to average entry     
    3031
    31 # Pan-STARRS uses a 64-bit detection ID.  keep this in two 32 bit ints for backwards compatibility?
    3232FIELD detID,          DET_ID,       unsigned int,   detection ID
    3333FIELD imageID,        IMAGE_ID,     unsigned int,   reference to DVO image ID
     34FIELD objID,          OBJ_ID,       unsigned int,   unique ID for object in table
     35FIELD catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
     36
     37# PSPS uses a 64-bit detection ID
     38FIELD extID,          EXT_ID,       uint64_t,       external ID (eg PSPS detID)
    3439
    3540# do we need more resolution than a short? should this be a log?
    36 FIELD qPSF,           PSF_QF,       float,          psf coverage/quality factor
     41FIELD psfQual,        PSF_QF,       float,          psf coverage/quality factor
    3742FIELD psfChisq,       PSF_CHISQ,    float,          psf fit chisq
     43FIELD psfNdof,        PSF_NDOF,     int,            psf degrees of freedom
     44FIELD psfNpix,        PSF_NPIX,     int,            psf number of pixels
    3845FIELD crNsigma,       CR_NSIGMA,    float,          Nsigma deviation towards CR
    3946FIELD extNsigma,      EXT_NSIGMA,   float,          Nsigma deviation towards EXT
    4047
    41 FIELD FWx,            FWHM_MAJOR,   short,          object fwhm major axis,       1/100 of arcsec
    42 FIELD FWy,            FWHM_MINOR,   short,          object fwhm minor axis,       1/100 of arcsec
    43 FIELD theta,          PSF_THETA,    short,          angle wrt ccd X dir,          (0xffff/360) deg
     48# model shape parameters
     49FIELD FWx,            FWHM_MAJOR,   short,          object fwhm major axis,         1/100 of pixels
     50FIELD FWy,            FWHM_MINOR,   short,          object fwhm minor axis,         1/100 of pixels
     51FIELD theta,          PSF_THETA,    short,          angle wrt ccd X dir,            (0xffff/360) deg
     52
     53# moments
     54FIELD Mxx,            MXX,          short,          second moments in pixel coords, 1/100 of pixels^2
     55FIELD Mxy,            MXY,          short,          second moments in pixel coords, 1/100 of pixels^2
     56FIELD Myy,            MYY,          short,          second moments in pixel coords, 1/100 of pixels^2
     57
     58# convert this to error in pixels on load?
     59FIELD dXccd,          X_CCD_ERR,    short,          X coord error on chip,          1/100 of pixels
     60FIELD dYccd,          Y_CCD_ERR,    short,          Y coord error on chip,          1/100 of pixels
     61
     62FIELD posangle,       POSANGLE,     short,          position angle sky to chip,     (0xffff/360) deg
     63FIELD pltscale,       PLTSCALE,     float,          plate scale,                    arcsec/pixel
     64
    4465FIELD photcode,       PHOTCODE,     unsigned short, photcode
     66FIELD dbFlags,        DB_FLAGS,     unsigned int,   flags supplied by analysis in database
     67FIELD photFlags,      PHOT_FLAGS,   unsigned int,   flags supplied by photometry program
    4568
    46 # convert this to error in arcsec on load?
    47 FIELD dXccd,          X_CCD_ERR,    short,          X coord error on chip,         pixels
    48 FIELD dYccd,          Y_CCD_ERR,    short,          Y coord error on chip,         pixels
     69# *** 20090206 : new fields : t_msec, extID, Mxx, Mxy, Myy, posangle,
     70#                psfNdof, psfNpix, Map_small; deprecated dophot.
     71#                Changed dbFlags, photFlags : uint16_t to uint64_t
    4972
    50 FIELD dbFlags,        DB_FLAGS,     unsigned short, flags for various uses 
    51 FIELD photFlags,      PHOT_FLAGS,   unsigned short, flags supplied by photometry program
    52 
    53 FIELD stargal,        STAR_GAL,     char,           star-galaxy separator
    54 
    55 # absorb these into photFlags?
    56 FIELD dophot,         DOPHOT,       char,           dophot type
    57 
    58 FIELD dummy,          DUMMY,        char[6],        padding
     73# XXX unsigned int values are probably not being saved in the FITS file correctly: no BZERO, BSCALE
Note: See TracChangeset for help on using the changeset viewer.