Changeset 34044
- Timestamp:
- Jun 20, 2012, 6:58:23 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601/psModules/src
- Files:
-
- 15 edited
-
camera/pmFPAMosaic.c (modified) (1 diff)
-
camera/pmFPARead.c (modified) (1 diff)
-
camera/pmFPAfileDefine.c (modified) (1 diff)
-
camera/pmReadoutFake.c (modified) (1 diff)
-
concepts/pmConceptsStandard.c (modified) (4 diffs)
-
concepts/pmConceptsUpdate.c (modified) (1 diff)
-
config/pmConfigCommand.c (modified) (1 diff)
-
detrend/pmNonLinear.c (modified) (1 diff)
-
detrend/pmShutterCorrection.c (modified) (2 diffs)
-
extras/pmVisualUtils.c (modified) (1 diff)
-
objects/pmSource.c (modified) (3 diffs)
-
objects/pmSourceIO_CMP.c (modified) (4 diffs)
-
objects/pmSourceIO_PS1_CAL_0.c (modified) (4 diffs)
-
objects/pmSourceIO_SMPDATA.c (modified) (4 diffs)
-
objects/pmSourceIO_SX.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/psModules/src/camera/pmFPAMosaic.c
r28007 r34044 661 661 good = false; 662 662 } 663 } 664 if (!good) { 665 // XXX do something to address this? 663 666 } 664 667 -
branches/eam_branches/ipp-20120601/psModules/src/camera/pmFPARead.c
r27346 r34044 957 957 trimsec->y1 = naxis2 + trimsec->y1; 958 958 959 int maxSize; // Number of cols,rows in image960 if (readdir == 1) {961 maxSize = PS_MIN(naxis2, trimsec->y1 - trimsec->y0);962 } else {963 maxSize = PS_MIN(naxis1, trimsec->x1 - trimsec->x0);964 }959 // XX not used int maxSize; // Number of cols,rows in image 960 // XX not used if (readdir == 1) { 961 // XX not used maxSize = PS_MIN(naxis2, trimsec->y1 - trimsec->y0); 962 // XX not used } else { 963 // XX not used maxSize = PS_MIN(naxis1, trimsec->x1 - trimsec->x0); 964 // XX not used } 965 965 966 966 int offset; // start of the segment -
branches/eam_branches/ipp-20120601/psModules/src/camera/pmFPAfileDefine.c
r31633 r34044 333 333 psMetadataItem *fuzz = psMetadataLookup(scheme, "FUZZ"); // Quantisation fuzz? 334 334 if (fuzz) { 335 if (fuzz->type != PS_ TYPE_BOOL) {335 if (fuzz->type != PS_DATA_BOOL) { 336 336 psWarning("FUZZ in compression scheme %s isn't boolean.", fitsType); 337 337 goto FITS_OPTIONS_DONE; -
branches/eam_branches/ipp-20120601/psModules/src/camera/pmReadoutFake.c
r33624 r34044 332 332 #define CONCEPT_SET_S32(CONCEPTS, NAME, OLD, NEW) { \ 333 333 psMetadataItem *item = psMetadataLookup(CONCEPTS, NAME); \ 334 psAssert(item->type == PS_ TYPE_S32, "Incorrect type: %x", item->type); \334 psAssert(item->type == PS_DATA_S32, "Incorrect type: %x", item->type); \ 335 335 if (item->data.S32 == OLD) { \ 336 336 item->data.S32 = NEW; \ -
branches/eam_branches/ipp-20120601/psModules/src/concepts/pmConceptsStandard.c
r32941 r34044 118 118 assert(concept); 119 119 assert(cell); 120 assert(concept->type == PS_ TYPE_F32);120 assert(concept->type == PS_DATA_F32); 121 121 122 122 float rn = concept->data.F32; // Read noise … … 930 930 psFree(timesysName); 931 931 932 if (!item || item->type != PS_ TYPE_S32) {932 if (!item || item->type != PS_DATA_S32) { 933 933 psWarning("Unable to find %s --- assuming UTC", timesysName); 934 934 return PS_TIME_UTC; … … 1258 1258 #endif 1259 1259 default: 1260 if (concept->type == PS_ TYPE_F32 && concept->data.F32 - (int)concept->data.F32 == 0) {1260 if (concept->type == PS_DATA_F32 && concept->data.F32 - (int)concept->data.F32 == 0) { 1261 1261 offset = concept->data.F32; 1262 } else if (concept->type == PS_ TYPE_F64 && concept->data.F64 - (int)concept->data.F64 == 0) {1262 } else if (concept->type == PS_DATA_F64 && concept->data.F64 - (int)concept->data.F64 == 0) { 1263 1263 offset = concept->data.F64; 1264 1264 } else { … … 1558 1558 assert(cameraFormat); 1559 1559 1560 if (concept->type != PS_ TYPE_S32) {1560 if (concept->type != PS_DATA_S32) { 1561 1561 psError(PS_ERR_UNKNOWN, true, "Concept %s is not of type S32, as expected.\n", concept->name); 1562 1562 return NULL; -
branches/eam_branches/ipp-20120601/psModules/src/concepts/pmConceptsUpdate.c
r20095 r34044 30 30 if (isfinite(gain)) { 31 31 psMetadataItem *rn = psMetadataLookup(cell->concepts, "CELL.READNOISE"); // Read noise 32 psAssert(rn && rn->type == PS_ TYPE_F32, "Should be of the correct type");32 psAssert(rn && rn->type == PS_DATA_F32, "Should be of the correct type"); 33 33 rn->data.F32 *= gain; 34 34 psMetadataRemoveKey(cell->concepts, "CELL.READNOISE.UPDATE"); -
branches/eam_branches/ipp-20120601/psModules/src/config/pmConfigCommand.c
r18937 r34044 42 42 psMetadataItem *item; // Item from iteration 43 43 while ((item = psMetadataGetAndIncrement(iter))) { 44 assert(item->type == PS_ TYPE_S32);44 assert(item->type == PS_DATA_S32); 45 45 psStringAppend(command, " -trace %s %d", item->name, item->data.S32); 46 46 } -
branches/eam_branches/ipp-20120601/psModules/src/detrend/pmNonLinear.c
r29935 r34044 82 82 } 83 83 PS_ASSERT_PTR_NON_NULL(outFlux,NULL); 84 psS32 tableSize = inFlux->n;84 // XXX unused psS32 tableSize = inFlux->n; 85 85 if (inFlux->n != outFlux->n) { 86 tableSize = PS_MIN(inFlux->n, outFlux->n);86 // XXX unused tableSize = PS_MIN(inFlux->n, outFlux->n); 87 87 psLogMsg(__func__, PS_LOG_WARN, 88 88 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): " -
branches/eam_branches/ipp-20120601/psModules/src/detrend/pmShutterCorrection.c
r33089 r34044 406 406 407 407 // Check input sizes, generate first-pass statistics 408 psRegion refRegion; // Reference region409 408 psVector *refs = psVectorAlloc(num, PS_TYPE_F32); // Reference measurements 410 409 psVectorInit(refs, 0); … … 441 440 numCols = image->numCols; 442 441 // define the reference region : a box of size 'size' at the center 443 refRegion = psRegionForSquare(0.5 * numCols, 0.5 * numRows, size);442 // XXX unused psRegion refRegion = psRegionForSquare(0.5 * numCols, 0.5 * numRows, size); 444 443 // Set up the sample regions : boxes of size 'size' at the 4 image corners 445 444 for (int j = 0; j < MEASURE_SAMPLES; j++) { -
branches/eam_branches/ipp-20120601/psModules/src/extras/pmVisualUtils.c
r31373 r34044 424 424 nwritten = fwrite (line, 1, strlen(line), output); 425 425 } 426 if (nwritten < 1) { 427 } 426 428 } 427 429 -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSource.c
r33963 r34044 1098 1098 if (!addNoise && !addModelVar) source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED; 1099 1099 } 1100 if (!status) { 1101 // XXX maybe raise an error or warning? 1102 } 1100 1103 1101 1104 return true; … … 1166 1169 status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy); 1167 1170 } 1171 if (!status) { 1172 // XXX raise an error or warning? 1173 } 1168 1174 1169 1175 // restore original values … … 1253 1259 } else { 1254 1260 status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy); 1261 } 1262 if (!status) { 1263 // XXX raise an error or warning? 1255 1264 } 1256 1265 -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_CMP.c
r32347 r34044 65 65 int i, type; 66 66 // psMetadataItem *mdi; 67 psF32 *PAR , *dPAR;67 psF32 *PAR; 68 68 float lsky = 0; 69 69 bool status; … … 130 130 131 131 PAR = model->params->data.F32; 132 dPAR = model->dparams->data.F32;133 132 134 133 type = pmSourceGetDophotType (source); … … 174 173 bool status; 175 174 int Ninstar; 176 psF32 *PAR , *dPAR;175 psF32 *PAR; 177 176 psEllipseAxes axes; 178 177 … … 273 272 274 273 PAR = source->modelPSF->params->data.F32; 275 dPAR = source->modelPSF->dparams->data.F32;276 274 277 275 PAR[PM_PAR_SKY] = pow (atof (array->data[5]), 10.0); -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_PS1_CAL_0.c
r32347 r34044 322 322 } 323 323 324 # define WRITE_AP_DATA 0 325 324 326 bool pmSourcesWrite_PS1_CAL_0_XSRC (psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname, psMetadata *recipe) 325 327 { … … 338 340 } 339 341 342 # if (WRITE_AP_DATA) 340 343 bool calMags = false; 341 344 bool status1 = false; … … 350 353 calMags = true; 351 354 } 355 # endif 352 356 353 357 // create a header to hold the output data … … 424 428 psMetadataAdd (row, PS_LIST_TAIL, "Y_EXT_SIG", PS_DATA_F32, "Sigma in EXT y coordinate", yErr); 425 429 426 # if ( 0)430 # if (WRITE_AP_DATA) 427 431 // Petrosian measurements 428 432 // XXX insert header data: petrosian ref radius, flux ratio -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SMPDATA.c
r32347 r34044 63 63 psMetadata *row; 64 64 int i; 65 psF32 *PAR , *dPAR;65 psF32 *PAR; 66 66 bool status; 67 67 psEllipseAxes axes; … … 85 85 if (model != NULL) { 86 86 PAR = model->params->data.F32; 87 dPAR = model->dparams->data.F32;88 87 xPos = PAR[PM_PAR_XPOS]; 89 88 yPos = PAR[PM_PAR_YPOS]; … … 145 144 146 145 bool status; 147 psF32 *PAR , *dPAR;146 psF32 *PAR; 148 147 psEllipseAxes axes; 149 148 float lsky; … … 176 175 177 176 PAR = model->params->data.F32; 178 dPAR = model->dparams->data.F32;179 177 180 178 psMetadata *row = table->data[i]; -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SX.c
r32347 r34044 56 56 PS_ASSERT_PTR_NON_NULL(filename, false); 57 57 58 psF32 *PAR , *dPAR;58 psF32 *PAR; 59 59 psEllipseAxes axes; 60 60 … … 77 77 78 78 PAR = model->params->data.F32; 79 dPAR = model->dparams->data.F32;80 79 81 80 // pmSourceSextractType (source, &type, &flags);
Note:
See TracChangeset
for help on using the changeset viewer.
