IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28662


Ignore:
Timestamp:
Jul 12, 2010, 4:48:07 PM (16 years ago)
Author:
rhenders
Message:

Added image and detection flags to Jim's test batch

Location:
trunk/ippToPsps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/test/tables.xml

    r27882 r28662  
    6161    <column name="dapResid" type="TFLOAT" default="-999" comment="scatter of aperture corrections"></column>
    6262    <column name="photoZero" type="TFLOAT" default="-999" comment=" local derived photometric zero point (unit = mag)"></column>
     63    <column name="qaFlags" type="TLONGLONG" default="-999" comment="Q/A flags for this OTA"></column>
    6364    <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column>
    6465    <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column>
     
    108109    <column name="psfTheta" type="TFLOAT" default="-999" comment=" model PSF orientation angle (unit = deg)"></column>
    109110    <column name="psfCf" type="TFLOAT" default="-999" comment="PSF coverage factor"></column>
     111    <column name="infoFlag" type="TLONGLONG" default="-999" comment="flag indicating provenance information"></column>
    110112    <column name="sky" type="TFLOAT" default="-999" comment=" PSF sky level at source (unit = adu)"></column>
    111113    <column name="skyErr" type="TFLOAT" default="-999" comment=" estimated error in sky (unit = adu)"></column>
  • trunk/ippToPsps/src/ippToPspsBatchTest.c

    r28559 r28662  
    107107    float instMagErr[MAXDETECT];
    108108    float peakMag[MAXDETECT];
     109    uint64_t flags[MAXDETECT];
    109110    long objID[MAXDETECT];
    110111    long detectID[MAXDETECT];
     
    130131    long maxObjID = LONG_MIN;
    131132    long minObjID = LONG_MAX;
     133    uint64_t imageFlags;
    132134    short nOta = 0;
    133135    long i;
     
    142144
    143145    // loop round all 60 chips
    144     for (int x=3; x<4; x++) {
    145         for (int y=3; y<4; y++) {
     146    for (int x=0; x<8; x++) {
     147        for (int y=0; y<8; y++) {
    146148
    147149            // dodge the corners
     
    199201            psfFwhm = (fwhmMaj+fwhmMin)/2;
    200202            momentFwhm = (momentMaj+momentMin)/2;
     203            imageFlags = (uint64_t)pImage->flags;
    201204            fits_write_col(this->fitsOut, TLONG, IMAGEMETA_PHOTOCALID, 1, 1, 1, &pImage->photcode, &status);
    202205            fits_write_col(this->fitsOut, TBYTE, IMAGEMETA_FILTERID, 1, 1, 1, &filterID, &status);
     
    204207            fits_write_col(this->fitsOut, TFLOAT, IMAGEMETA_PSFFWHM, 1, 1, 1, &psfFwhm, &status);
    205208            fits_write_col(this->fitsOut, TFLOAT, IMAGEMETA_PHOTOZERO, 1, 1, 1, &zptObs, &status);
     209            fits_write_col(this->fitsOut, TLONGLONG, IMAGEMETA_QAFLAGS, 1, 1, 1, &imageFlags, &status);
    206210
    207211            // now move BACK to detections table in smf
     
    279283                    ippObjID[s] = (uint64_t)dvoDetections[d].ave.catID*1000000000 + (uint64_t)dvoDetections[d].ave.objID;
    280284                    ippDetectID[s] = dvoDetections[d].meas.detID;
     285                    flags[s] = ((uint64_t)dvoDetections[d].meas.dbFlags << 32) | (uint64_t)dvoDetections[d].meas.photFlags;
    281286                    imageID[s] = pspsImageId;
    282287                    obsTimes[s] = obsTime;
     
    321326            fits_write_col(this->fitsOut, TFLOAT, DETECTION_INSTFLUXERR, 1, 1, nDet, instFluxErr, &status);
    322327            fits_write_col(this->fitsOut, TFLOAT, DETECTION_PEAKADU, 1, 1, nDet, peakFlux, &status);
     328            fits_write_col(this->fitsOut, TLONGLONG, DETECTION_INFOFLAG, 1, 1, nDet, flags, &status);
    323329            if (numOfDuplicates||numInvalidFlux) fits_delete_rowlist(this->fitsOut, removeList, numOfDuplicates+numInvalidFlux, &status);
    324330
  • trunk/ippToPsps/src/ippToPspsTestEnums.h

    r27846 r28662  
    6161  IMAGEMETA_DAPRESID,
    6262  IMAGEMETA_PHOTOZERO,
     63  IMAGEMETA_QAFLAGS,
    6364  IMAGEMETA_CTYPE1,
    6465  IMAGEMETA_CTYPE2,
     
    107108  DETECTION_PSFTHETA,
    108109  DETECTION_PSFCF,
     110  DETECTION_INFOFLAG,
    109111  DETECTION_SKY,
    110112  DETECTION_SKYERR,
Note: See TracChangeset for help on using the changeset viewer.