Changeset 34051 for branches/eam_branches/ipp-20120601/psphot/src
- Timestamp:
- Jun 21, 2012, 6:51:32 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601/psphot/src
- Files:
-
- 6 edited
-
Makefile.am (modified) (2 diffs)
-
psphotCleanup.c (modified) (1 diff)
-
psphotMakeResiduals.c (modified) (1 diff)
-
psphotPetrosianStats.c (modified) (3 diffs)
-
psphotReadoutCleanup.c (modified) (1 diff)
-
psphotSignificanceImage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/psphot/src/Makefile.am
r33690 r34051 183 183 psphotSourcePlots.c \ 184 184 psphotRadialPlot.c \ 185 psphotKronMasked.c \186 185 psphotKronIterate.c \ 187 186 psphotRadialProfileWings.c \ … … 209 208 psphotSetNFrames.c 210 209 211 # re-instate these210 # not currently used 212 211 # psphotIsophotal.c \ 213 212 # psphotAnnuli.c \ 214 213 # psphotKron.c \ 214 # psphotKronMasked.c \ 215 215 # 216 216 -
branches/eam_branches/ipp-20120601/psphot/src/psphotCleanup.c
r29548 r34051 29 29 psExit psphotGetExitStatus (void) { 30 30 31 psErrorCode err = psErrorCodeLast (); 31 // gcc -Wswitch complains here if err is declared as type psErrorCode 32 // the collection of ps*ErrorCode values are enums defined separately for 33 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 34 // not include the possible psphot values 35 36 // for now, to get around this, we just use an int for the switch 37 38 // psErrorCode err = psErrorCodeLast (); 39 int err = psErrorCodeLast (); 32 40 switch (err) { 33 41 case PS_ERR_NONE: -
branches/eam_branches/ipp-20120601/psphot/src/psphotMakeResiduals.c
r30624 r34051 177 177 178 178 mflux = 0; 179 bool offImage = false;180 179 if (psImageInterpolate (&flux, &dflux, &mflux, ix, iy, interp) == PS_INTERPOLATE_STATUS_OFF) { 181 180 // This pixel is off the image 182 offImage = true;183 181 fmasks->data.PS_TYPE_VECTOR_MASK_DATA[i] = badMask; 184 182 } else { -
branches/eam_branches/ipp-20120601/psphot/src/psphotPetrosianStats.c
r32348 r34051 46 46 47 47 bool anyPetro = false; 48 bool manyPetro = false;48 // bool manyPetro = false; XXX not used 49 49 bool above = true; 50 50 float Asum = 0.0; … … 122 122 } 123 123 above = false; 124 if (anyPetro) manyPetro = true;124 // if (anyPetro) manyPetro = true; 125 125 anyPetro = true; 126 126 } … … 212 212 source->extpars->petrosianR50 = R50; 213 213 source->extpars->petrosianR90 = R90; 214 source->extpars->petrosianFill = petApix / petArea;214 source->extpars->petrosianFill = petApix / petArea; 215 215 216 216 // XXX add the errors -
branches/eam_branches/ipp-20120601/psphot/src/psphotReadoutCleanup.c
r29936 r34051 7 7 8 8 // remove internal pmFPAfiles, if created 9 if (psErrorCodeLast() == PSPHOT_ERR_DATA) {9 if (psErrorCodeLast() == (psErrorCode) PSPHOT_ERR_DATA) { 10 10 psErrorStackPrint(stderr, "Error in the psphot readout analysis"); 11 11 psErrorClear(); -
branches/eam_branches/ipp-20120601/psphot/src/psphotSignificanceImage.c
r31154 r34051 8 8 float SIGMA_SMTH, NSIGMA_SMTH; 9 9 bool status = false; 10 bool guess = false;11 10 12 11 // smooth the image and variance map … … 35 34 SIGMA_SMTH = 0.5*(fwhmMajor + fwhmMinor) / (2.0*sqrt(2.0*log(2.0))); 36 35 NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA"); 37 guess = false;38 36 } else { 39 37 // if we do not know the FWHM, use the guess smoothing kernel supplied. … … 43 41 NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA"); 44 42 PS_ASSERT (status, NULL); 45 guess = true;46 43 } 47 44 // record the actual smoothing sigma
Note:
See TracChangeset
for help on using the changeset viewer.
