Changeset 7716
- Timestamp:
- Jun 27, 2006, 6:12:57 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ppImage/src/ppImageDetrendMask.c (modified) (2 diffs)
-
ppImage/src/ppImageDetrendReadout.c (modified) (2 diffs)
-
psphot/src/psphotReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendMask.c
r7508 r7716 16 16 17 17 if (mask->image->type.type != PS_TYPE_MASK) { 18 image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);18 image = psImageCopy (NULL, mask->image, PS_TYPE_MASK); 19 19 } else { 20 image = psMemIncrRefCounter (mask->image);20 image = psMemIncrRefCounter (mask->image); 21 21 } 22 22 … … 34 34 35 35 36 // XXX this function needs to use pmReadout SetMask to construct the initial mask36 // XXX this function needs to use pmReadoutGenerateMask to construct the initial mask 37 37 // then the pixels will correspond and pmMaskBadPixels can be correctly applied. 38 // this function should not have to lookup the value of CELL.SATURATION, nor should it have to 39 // apply it. 38 // this function should not have to lookup the value of CELL.SATURATION, nor should it have to 39 // apply it. -
trunk/ppImage/src/ppImageDetrendReadout.c
r7585 r7716 12 12 13 13 // create the target mask and weight images 14 pmReadout SetMaskWeight (input);14 pmReadoutGenerateMaskWeight (input); 15 15 16 16 // apply the externally supplied mask to the input->mask pixels 17 17 if (options->doMask) { 18 18 pmReadout *mask = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.MASK"); 19 pmMaskBadPixels (input, mask, options->maskValue);19 pmMaskBadPixels (input, mask, options->maskValue); 20 20 // ppImageDetrendMask(input, mask); 21 21 } … … 40 40 // Bias, dark and overscan subtraction are all merged. 41 41 if (options->doBias || options->doDark || options->doOverscan) { 42 if (!ppImageDetrendBias(input, bias, dark, options)) {43 return false;44 }42 if (!ppImageDetrendBias(input, bias, dark, options)) { 43 return false; 44 } 45 45 } 46 46 47 47 // Flat-field correction (no options used?) 48 48 if (options->doFlat) { 49 pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");49 pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT"); 50 50 if (!pmFlatField(input, flat)) { 51 return false;52 }51 return false; 52 } 53 53 } 54 54 -
trunk/psphot/src/psphotReadout.c
r7638 r7716 11 11 // XXX does this need to invoke I/O? 12 12 // XXX move this input the psphotImageLoop level? 13 if (!pmReadout SetMaskWeight (readout)) {14 return false;13 if (!pmReadoutGenerateMaskWeight (readout)) { 14 return false; 15 15 } 16 16 17 17 // I have a valid mask, now mask in the analysis region of interest 18 psphotMaskReadout (readout, recipe); 18 psphotMaskReadout (readout, recipe); 19 19 20 20 // run a single-model test if desired … … 38 38 // faint sources not classified? 39 39 if (!psphotRoughClass (sources, recipe)) { 40 psFree (peaks);41 psFree (sources);42 psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image");43 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");44 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");45 return false;40 psFree (peaks); 41 psFree (sources); 42 psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image"); 43 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 44 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 45 return false; 46 46 } 47 47 … … 73 73 // measure aperture photometry corrections 74 74 if (!psphotApResid (readout, sources, recipe, psf)) { 75 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");76 return false;75 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections"); 76 return false; 77 77 } 78 78 … … 89 89 psphotSourceFreePixels (sources); 90 90 91 // save the results of the analysis 91 // save the results of the analysis 92 92 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources); 93 93 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER", PS_DATA_METADATA, "header stats", header);
Note:
See TracChangeset
for help on using the changeset viewer.
