Changeset 34051
- Timestamp:
- Jun 21, 2012, 6:51:32 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601
- Files:
-
- 17 edited
-
ippTools/src/pstamptool.c (modified) (4 diffs)
-
ppNorm/src/ppNormCalc.c (modified) (1 diff)
-
ppStack/src/ppStackMatch.c (modified) (1 diff)
-
psLib/src/types/psMetadata.c (modified) (1 diff)
-
psLib/src/types/psMetadataConfig.c (modified) (1 diff)
-
psLib/src/types/psMetadataItemCompare.c (modified) (1 diff)
-
psModules/src/extras/psPipe.c (modified) (1 diff)
-
psphot/src/Makefile.am (modified) (2 diffs)
-
psphot/src/psphotCleanup.c (modified) (1 diff)
-
psphot/src/psphotMakeResiduals.c (modified) (1 diff)
-
psphot/src/psphotPetrosianStats.c (modified) (3 diffs)
-
psphot/src/psphotReadoutCleanup.c (modified) (1 diff)
-
psphot/src/psphotSignificanceImage.c (modified) (3 diffs)
-
pstamp/src/pstamprequest.c (modified) (2 diffs)
-
pswarp/src/pswarpArguments.c (modified) (2 diffs)
-
pswarp/src/pswarpExit.c (modified) (1 diff)
-
pswarp/src/pswarpTransformReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/ippTools/src/pstamptool.c
r33337 r34051 693 693 static bool addjobMode(pxConfig *config) 694 694 { 695 bool stampJob = false;695 bool stampJob = false; 696 696 697 697 PS_ASSERT_PTR_NON_NULL(config, false); … … 739 739 return false; 740 740 } 741 if (stampJob) { /* do something?? */ } 742 741 743 if (!pstampJobInsert(config->dbh, 742 744 0, // job_id … … 1044 1046 // it's an allowed arg because add_poll_args adds it 1045 1047 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1048 if (limit) { /* do something?? */ 1049 1046 1050 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 1047 1051 … … 1448 1452 // it's an allowed arg because add_poll_args adds it 1449 1453 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1454 if (limit) { /* do something?? */ } 1450 1455 1451 1456 if (!psListLength(where->list)) { -
branches/eam_branches/ipp-20120601/ppNorm/src/ppNormCalc.c
r18071 r34051 86 86 psMetadataItem *compsItem; // Item from iteration 87 87 while ((compsItem = psMetadataGetAndIncrement(compsIter))) { 88 if (compsItem->type != PS_ TYPE_F32) {88 if (compsItem->type != PS_DATA_F32) { 89 89 psLogMsg("ppNormCalc", PS_LOG_WARN, 90 90 "Component %s within exposure %s is not of type F32 --- ignored.\n", -
branches/eam_branches/ipp-20120601/ppStack/src/ppStackMatch.c
r33426 r34051 460 460 psMetadataItem *item = NULL;// Item from iteration 461 461 while ((item = psMetadataGetAndIncrement(iter))) { 462 assert(item->type == PS_ TYPE_F32);462 assert(item->type == PS_DATA_F32); 463 463 float norm = item->data.F32; // Normalisation 464 464 sum += norm; -
branches/eam_branches/ipp-20120601/psLib/src/types/psMetadata.c
r30024 r34051 1504 1504 fprintf(fd, "\n"); 1505 1505 break; 1506 case PS_DATA_UNKNOWN:1507 1506 default: 1508 1507 fprintf(fd, "<Unsupported type>\n"); -
branches/eam_branches/ipp-20120601/psLib/src/types/psMetadataConfig.c
r31902 r34051 1573 1573 } 1574 1574 break; 1575 case PS_DATA_UNKNOWN:1576 1575 default: 1577 1576 psError(PS_ERR_BAD_PARAMETER_VALUE, true, -
branches/eam_branches/ipp-20120601/psLib/src/types/psMetadataItemCompare.c
r33998 r34051 278 278 return false; 279 279 } 280 double compareValue = compare->type == PS_ TYPE_F32 ? compare->data.F32 : compare->data.F64;280 double compareValue = compare->type == PS_DATA_F32 ? compare->data.F32 : compare->data.F64; 281 281 COMPARE_VALUES(templateValue, compareValue, true); 282 282 } -
branches/eam_branches/ipp-20120601/psModules/src/extras/psPipe.c
r23487 r34051 105 105 106 106 status = execvp (argv[0], argv); 107 108 // this statement exits the child, not the parent, process 109 exit (1); 107 psWarning ("error running exec for child process"); 108 exit (1); // this statement exits the child, not the parent, process 110 109 } 111 110 psFree (cmd); -
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 -
branches/eam_branches/ipp-20120601/pstamp/src/pstamprequest.c
r26289 r34051 191 191 bool gotRange = false; 192 192 bool needROI = false; 193 bool makeStamps= false;193 // bool makeStamps= false; XXX unused 194 194 unsigned optionMask = PSTAMP_SELECT_IMAGE; 195 195 … … 212 212 psMetadataAddStr (md, PS_LIST_TAIL, "JOB_TYPE", PS_META_REPLACE, "", "stamp"); 213 213 needROI = true; 214 makeStamps = true;214 // XXX unused makeStamps = true; 215 215 } 216 216 -
branches/eam_branches/ipp-20120601/pswarp/src/pswarpArguments.c
r31159 r34051 28 28 pmConfig *pswarpArguments (int argc, char **argv) { 29 29 30 bool status;31 30 int N; 32 31 … … 101 100 array = psArrayAlloc(1); 102 101 array->data[0] = psStringCopy(argv[2]); 103 status =psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array);102 psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array); 104 103 psFree(array); 105 104 -
branches/eam_branches/ipp-20120601/pswarp/src/pswarpExit.c
r27563 r34051 20 20 } 21 21 22 psErrorCode errorCode = psErrorCodeLast(); // Error code 22 23 // gcc -Wswitch complains here if err is declared as type psErrorCode 24 // the collection of ps*ErrorCode values are enums defined separately for 25 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 26 // not include the possible psphot values 27 28 // for now, to get around this, we just use an int for the switch 29 30 // psErrorCode errorCode = psErrorCodeLast(); // Error code 31 int errorCode = psErrorCodeLast(); // Error code 32 23 33 if (errorCode != PS_ERR_NONE) { 24 34 pmFPAfileFreeSetStrict(false); -
branches/eam_branches/ipp-20120601/pswarp/src/pswarpTransformReadout.c
r33090 r34051 51 51 } 52 52 53 int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads54 if (!mdok) {55 nThreads = 0;56 }53 // XXX unused int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads 54 // XXX unused if (!mdok) { 55 // XXX unused nThreads = 0; 56 // XXX unused } 57 57 float poorFrac = psMetadataLookupF32(NULL, config->arguments, "POOR.FRAC"); ///< Flux fraction for "poor" 58 58
Note:
See TracChangeset
for help on using the changeset viewer.
