Changeset 28662
- Timestamp:
- Jul 12, 2010, 4:48:07 PM (16 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 3 edited
-
config/test/tables.xml (modified) (2 diffs)
-
src/ippToPspsBatchTest.c (modified) (7 diffs)
-
src/ippToPspsTestEnums.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/config/test/tables.xml
r27882 r28662 61 61 <column name="dapResid" type="TFLOAT" default="-999" comment="scatter of aperture corrections"></column> 62 62 <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> 63 64 <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column> 64 65 <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column> … … 108 109 <column name="psfTheta" type="TFLOAT" default="-999" comment=" model PSF orientation angle (unit = deg)"></column> 109 110 <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> 110 112 <column name="sky" type="TFLOAT" default="-999" comment=" PSF sky level at source (unit = adu)"></column> 111 113 <column name="skyErr" type="TFLOAT" default="-999" comment=" estimated error in sky (unit = adu)"></column> -
trunk/ippToPsps/src/ippToPspsBatchTest.c
r28559 r28662 107 107 float instMagErr[MAXDETECT]; 108 108 float peakMag[MAXDETECT]; 109 uint64_t flags[MAXDETECT]; 109 110 long objID[MAXDETECT]; 110 111 long detectID[MAXDETECT]; … … 130 131 long maxObjID = LONG_MIN; 131 132 long minObjID = LONG_MAX; 133 uint64_t imageFlags; 132 134 short nOta = 0; 133 135 long i; … … 142 144 143 145 // 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++) { 146 148 147 149 // dodge the corners … … 199 201 psfFwhm = (fwhmMaj+fwhmMin)/2; 200 202 momentFwhm = (momentMaj+momentMin)/2; 203 imageFlags = (uint64_t)pImage->flags; 201 204 fits_write_col(this->fitsOut, TLONG, IMAGEMETA_PHOTOCALID, 1, 1, 1, &pImage->photcode, &status); 202 205 fits_write_col(this->fitsOut, TBYTE, IMAGEMETA_FILTERID, 1, 1, 1, &filterID, &status); … … 204 207 fits_write_col(this->fitsOut, TFLOAT, IMAGEMETA_PSFFWHM, 1, 1, 1, &psfFwhm, &status); 205 208 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); 206 210 207 211 // now move BACK to detections table in smf … … 279 283 ippObjID[s] = (uint64_t)dvoDetections[d].ave.catID*1000000000 + (uint64_t)dvoDetections[d].ave.objID; 280 284 ippDetectID[s] = dvoDetections[d].meas.detID; 285 flags[s] = ((uint64_t)dvoDetections[d].meas.dbFlags << 32) | (uint64_t)dvoDetections[d].meas.photFlags; 281 286 imageID[s] = pspsImageId; 282 287 obsTimes[s] = obsTime; … … 321 326 fits_write_col(this->fitsOut, TFLOAT, DETECTION_INSTFLUXERR, 1, 1, nDet, instFluxErr, &status); 322 327 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); 323 329 if (numOfDuplicates||numInvalidFlux) fits_delete_rowlist(this->fitsOut, removeList, numOfDuplicates+numInvalidFlux, &status); 324 330 -
trunk/ippToPsps/src/ippToPspsTestEnums.h
r27846 r28662 61 61 IMAGEMETA_DAPRESID, 62 62 IMAGEMETA_PHOTOZERO, 63 IMAGEMETA_QAFLAGS, 63 64 IMAGEMETA_CTYPE1, 64 65 IMAGEMETA_CTYPE2, … … 107 108 DETECTION_PSFTHETA, 108 109 DETECTION_PSFCF, 110 DETECTION_INFOFLAG, 109 111 DETECTION_SKY, 110 112 DETECTION_SKYERR,
Note:
See TracChangeset
for help on using the changeset viewer.
