IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36933


Ignore:
Timestamp:
Jun 22, 2014, 5:20:23 PM (12 years ago)
Author:
eugene
Message:

do not autocode ps1-sv3 (needs to have column swaps)

Location:
branches/eam_branches/ipp-20140610/Ohana/src/libautocode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/libautocode/Makefile.Targets

    r36912 r36933  
    8282$(ASRC)/cmf-ps1-sv1.$(ARCH).o \
    8383$(ASRC)/cmf-ps1-sv2.$(ARCH).o \
    84 $(ASRC)/cmf-ps1-sv3.$(ARCH).o \
    8584$(ASRC)/cmf-ps1-dv4.$(ARCH).o \
    8685$(ASRC)/cmf-smpdata.$(ARCH).o \
     
    9594$(ASRC)/FlatCorrectionImage.$(ARCH).o \
    9695$(ASRC)/FlatCorrection.$(ARCH).o
     96
     97# $(ASRC)/cmf-ps1-sv3.$(ARCH).o
    9798
    9899AINCS = \
     
    179180$(AINC)/cmf-ps1-sv1.h \
    180181$(AINC)/cmf-ps1-sv2.h \
    181 $(AINC)/cmf-ps1-sv3.h \
    182182$(AINC)/cmf-ps1-dv4.h \
    183183$(AINC)/cmf-smpdata.h \
  • branches/eam_branches/ipp-20140610/Ohana/src/libautocode/def/cmf-ps1-sv3.d

    r36912 r36933  
    33EXTNAME CMF_PS1_SV3
    44TYPE    BINTABLE
    5 SIZE    208
    6 
    7 ## note that this definition is inconsistent with the definition in
    8 ## pmModules/src/objects/pmSourceIO_CMF.c.in.  The version in
    9 ## pmSourceIO*.c creates a table with data not properly aligned with
    10 ## the 8-byte boundaries. The structure defined by libautocode does
    11 ## this, but has a different order of elements (and adds padding2 to
    12 ## fix things). We have generated may files with PS1_SV1 as is, so
    13 ## I'll leave it. But in future a PS1_SV2 should be forced to match
    14 ## libautocode. Note that addstar knows to detect the alternate
    15 ## version of PS1_SV1 and correctly interpret its fields.
     5SIZE    224
    166
    177# elements of data structure / FITS table
     
    2010FIELD Y,              Y_PSF,             float,    y coord,               pixels
    2111FIELD dX,             X_PSF_SIG,         float,    x coord error,         pixels
    22 
    2312FIELD dY,             Y_PSF_SIG,         float,    y coord error,         pixels
    2413FIELD posangle,       POSANGLE,          float,    Posangle at source,    degrees
    2514FIELD pltscale,       PLTSCALE,          float,    Plate Scale at source, arcsec/pixel
    2615FIELD M,              PSF_INST_MAG,      float,    inst mags,             mags
    27 
    2816FIELD dM,             PSF_INST_MAG_SIG,  float,    inst mag error,        mags
    2917FIELD Flux,           PSF_INST_FLUX,     float,    psf flux,           counts
    3018FIELD dFlux,          PSF_INST_FLUX_SIG, float,    psf flux error,        counts     
    3119FIELD Map,            AP_MAG,            float,    standard aperture mag, mags
    32 
    3320FIELD MapRaw,         AP_MAG_RAW,        float,    raw aperture mag,      mags
    3421FIELD apRadius,       AP_MAG_RADIUS,     float,    radius used for fit,   pixels
    3522FIELD apFlux,         AP_FLUX,           float,    aperture flux,         counts
    3623FIELD apFluxErr,      AP_FLUX_SIG,       float,    error on ap flux,      counts
    37 
     24FIELD apNpix,         AP_NPIX,           int,      pixels used for aper
    3825FIELD Mcalib,         CAL_PSF_MAG,       float,    calibrated psf mag,    mags
    3926FIELD dMcal,          CAL_PSF_MAG_SIG,   float,    zero point scatter,    mags
     27
     28# this field is in the wrong order (is between DEC and sky in cmf, but breaks byte boundary).
     29# I need to move these bytes around on read (fix PS1_V5?)
     30FIELD Mpeak,          PEAK_FLUX_AS_MAG,  float,    peak flux as a mag,    mags
    4031
    4132# NOTE: RA & DEC (both double) need to be on an 8-byte boundary...
     
    4334FIELD DEC,            DEC_PSF,           double,   PSF DEC coord,         degrees
    4435
    45 FIELD Mpeak,          PEAK_FLUX_AS_MAG,  float,    peak flux as a mag,    mags
    4636FIELD sky,            SKY,               float,    sky flux,              cnts/sec
    4737FIELD dSky,           SKY_SIG,           float,    sky flux error,        cnts/sec
    4838FIELD psfChisq,       PSF_CHISQ,         float,    psf fit chisq
    49 
     39 
    5040FIELD crNsigma,       CR_NSIGMA,         float,    Nsigma deviations from PSF to CF
    5141FIELD extNsigma,      EXT_NSIGMA,        float,    Nsigma deviations from PSF to EXT
    5242FIELD fx,             PSF_MAJOR,         float,    psf fit major axis,    pixels
    5343FIELD fy,             PSF_MINOR,         float,    psf fit minor axis,    pixels
    54 
    5544FIELD df,             PSF_THETA,         float,    ellipse angle,         degrees
     45FIELD k,              PSF_CORE,          float,    extra PSF parameter,   unitless
     46FIELD fwhmMaj,        PSF_FWHM_MAJ,      float,    true fwhm of psf,      pixels
     47FIELD fwhmMin,        PSF_FWHM_MIN,      float,    true fwhm (minor),     pixels
    5648FIELD psfQF,          PSF_QF,            float,    quality factor
    5749FIELD psfQFperf,      PSF_QF_PERFECT,    float,    quality factor perfect
    5850FIELD psfNdof,        PSF_NDOF,          int,      psf degrees of freedom
     51FIELD psfNpix,        PSF_NPIX,          int,      psf number of pixels
    5952
    60 FIELD psfNpix,        PSF_NPIX,          int,      psf number of pixels
    6153FIELD Mxx,            MOMENTS_XX,        float,    second moment X,       pixels^2
    6254FIELD Mxy,            MOMENTS_XY,        float,    second moment Y,       pixels^2
    6355FIELD Myy,            MOMENTS_YY,        float,    second moment XY,      pixels^2
    64 
    6556FIELD M3c,            MOMENTS_M3C,       float,    third moment cos(t),   pixels^3
    6657FIELD M3s,            MOMENTS_M3S,       float,    third moment sin(t),   pixels^3
    6758FIELD M4c,            MOMENTS_M4C,       float,    fourth moment cos(t),  pixels^4
    6859FIELD M4s,            MOMENTS_M4S,       float,    fourth moment sin(t),  pixels^4
    69 
    7060FIELD Mr1,            MOMENTS_R1,        float,    first radial moment,   pixels
    7161FIELD Mrh,            MOMENTS_RH,        float,    half radial moment,    pixels^1/2
    7262FIELD kronFlux,       KRON_FLUX,         float,    kron flux,             counts
    7363FIELD kronFluxErr,    KRON_FLUX_ERR,     float,    kron flux error,       counts
    74 
    7564FIELD kronInner,      KRON_FLUX_INNER,   float,    kron flux 1<R<2.5,     counts
    7665FIELD kronOuter,      KRON_FLUX_OUTER,   float,    kron flux 2.5<R<4,     counts
     
    7867FIELD flags2,         FLAGS2,            int,      analysis flags (2)
    7968
    80 FIELD padding2,       PADDING2,          int,      padding for 8byte records
    8169FIELD nFrames,        N_FRAMES,          short,    images overlapping peak
    8270FIELD padding,        PADDING,           short,    padding for 8byte records
     71FIELD padding2,       PADDING2,          int,      padding for 8byte records
    8372
    84 # for an object in an image, we have three triplets that tell us about the shape:
    85 # second moments: Mxx, Mxy, Myy
    86 # model shape parameters: F_major, F_minor, F_theta
    87 # centroid errors: sigma_X, sigma_Y, sigma_XY
    88 
    89 # # elements of data structure / FITS table
    90 # FIELD detID,          IPP_IDET,          IPP_IDET           1J      unsigned int, detection ID                     
    91 # FIELD X,              X_PSF,             X_PSF              1E      float,    x coord,               pixels
    92 # FIELD Y,              Y_PSF,             Y_PSF              1E      float,    y coord,               pixels
    93 # FIELD dX,             X_PSF_SIG,         X_PSF_SIG          1E      float,    x coord error,         pixels
    94 # FIELD dY,             Y_PSF_SIG,         Y_PSF_SIG          1E      float,    y coord error,         pixels
    95 # FIELD posangle,       POSANGLE,          POSANGLE           1E      float,    Posangle at source,    degrees
    96 # FIELD pltscale,       PLTSCALE,          PLTSCALE           1E      float,    Plate Scale at source, arcsec/pixel
    97 # FIELD M,              PSF_INST_MAG,      PSF_INST_MAG       1E      float,    inst mags,             mags
    98 # FIELD dM,             PSF_INST_MAG_SIG,  PSF_INST_MAG_SIG   1E      float,    inst mag error,        mags
    99 # FIELD flux,           PSF_INST_FLUX,     PSF_INST_FLUX      1E      float,    psf flux,              counts
    100 # FIELD flux,           PSF_INST_FLUX_SIG, PSF_INST_FLUX_SIG  1E      float,    psf flux error,        counts     
    101 # FIELD Map,            AP_MAG_STANDARD,   AP_MAG             1E      float,    standard aperture mag, mags
    102 # FIELD Map,            AP_MAG_RAW,        AP_MAG_RAW         1E      float,    raw aperture mag,      mags
    103 # FIELD apRadius,       AP_MAG_RADIUS,     AP_MAG_RADIUS      1E      float,    radius used for fit,   pixels
    104 # FIELD Mpeak,          PEAK_FLUX_AS_MAG,  PEAK_FLUX_AS_MAG   1E      float,    peak flux as a mag,    mags
    105 # FIELD Mcalib,         CAL_PSF_MAG,       CAL_PSF_MAG        1E      float,    calibrated psf mag,    mags
    106 # FIELD dMcal,          CAL_PSF_MAG_SIG,   CAL_PSF_MAG_SIG    1E      float,    zero point scatter,    mags
    107 # FIELD RA,             RA_PSF,            RA_PSF             1D      double,   PSF RA coord,          degrees
    108 # FIELD DEC,            DEC_PSF,           DEC_PSF            1D      double,   PSF DEC coord,         degrees
    109 # FIELD sky,            SKY,               SKY                1E      float,    sky flux,              cnts/sec
    110 # FIELD dSky,           SKY_SIG,           SKY_SIGMA          1E      float,    sky flux error,        cnts/sec
    111 # FIELD psfChisq,       PSF_CHISQ,         PSF_CHISQ          1E      float,    psf fit chisq
    112 # FIELD crNsigma,       CR_NSIGMA,         CR_NSIGMA          1E      float,    Nsigma deviations from PSF to CF
    113 # FIELD extNsigma,      EXT_NSIGMA,        EXT_NSIGMA         1E      float,    Nsigma deviations from PSF to EXT
    114 # FIELD fx,             PSF_MAJOR,         PSF_MAJOR          1E      float,    psf fit major axis,    pixels
    115 # FIELD fy,             PSF_MINOR,         PSF_MINOR          1E      float,    psf fit minor axis,    pixels
    116 # FIELD df,             PSF_THETA,         PSF_THETA          1E      float,    ellipse angle,         degrees
    117 # FIELD psfQF,          PSF_QF,            PSF_QF             1E      float,    quality factor
    118 # FIELD psfQFperf,      PSF_QF_PERFECT,    PSF_QF_PERFECT     1E      float,    quality factor perfect
    119 # FIELD psfNdof,        PSF_NDOF,          PSF_NDOF           1J      int,      psf degrees of freedom
    120 # FIELD psfNpix,        PSF_NPIX,          PSF_NPIX           1J      int,      psf number of pixels
    121 # FIELD Mxx,            MOMENTS_XX,        MOMENTS_XX         1E      float,    second moment X,       pixels^2
    122 # FIELD Mxy,            MOMENTS_XY,        MOMENTS_XY         1E      float,    second moment Y,       pixels^2
    123 # FIELD Myy,            MOMENTS_YY,        MOMENTS_YY         1E      float,    second moment XY,      pixels^2
    124 # FIELD M3c,            MOMENTS_M3C,       MOMENTS_M3C        1E      float,    third moment cos(t),   pixels^3
    125 # FIELD M3s,            MOMENTS_M3S,       MOMENTS_M3S        1E      float,    third moment sin(t),   pixels^3
    126 # FIELD M4c,            MOMENTS_M4C,       MOMENTS_M4C        1E      float,    fourth moment cos(t),  pixels^4
    127 # FIELD M4s,            MOMENTS_M4S,       MOMENTS_M4S        1E      float,    fourth moment sin(t),  pixels^4
    128 # FIELD Mr1,            MOMENTS_R1,        MOMENTS_R1         1E      float,    first radial moment,   pixels
    129 # FIELD Mrh,            MOMENTS_RH,        MOMENTS_RH         1E      float,    half radial moment,    pixels^1/2
    130 # FIELD kronFlux,       KRON_FLUX,         KRON_FLUX          1E      float,    kron flux,             counts
    131 # FIELD kronFluxErr,    KRON_FLUX_ERR,     KRON_FLUX_ERR      1E      float,    kron flux error,       counts
    132 # FIELD kronInner,      KRON_FLUX_INNER,   KRON_FLUX_INNER    1E      float,    kron flux 1<R<2.5,     counts
    133 # FIELD kronOuter,      KRON_FLUX_OUTER,   KRON_FLUX_OUTER    1E      float,    kron flux 2.5<R<4,     counts
    134 # FIELD flags,          FLAGS,             FLAGS              1J      int,      analysis flags
    135 # FIELD flags2,         FLAGS,             FLAGS2             1J      int,      analysis flags (2)
    136 # FIELD nFrames,        N_FRAMES,          N_FRAMES           1I      short,    images overlapping peak
    137 # FIELD padding,        PADDING,           PADDING            1I      short,    padding for 8byte records
    138 
    139      
    140 
Note: See TracChangeset for help on using the changeset viewer.