Changeset 6325
- Timestamp:
- Feb 6, 2006, 11:03:25 AM (20 years ago)
- Location:
- trunk/psModules
- Files:
-
- 9 edited
-
src/config/pmConfig.c (modified) (2 diffs)
-
src/imcombine/pmReadoutCombine.c (modified) (4 diffs)
-
src/imsubtract/pmSubtractBias.c (modified) (3 diffs)
-
src/imsubtract/pmSubtractSky.c (modified) (2 diffs)
-
src/objects/pmObjects.c (modified) (3 diffs)
-
test/config/tst_pmConfig.c (modified) (2 diffs)
-
test/config/verified/tst_pmConfig.stderr (modified) (1 diff)
-
test/config/verified/tst_pmConfig.stdout (modified) (1 diff)
-
test/imcombine/verified/tst_pmImageCombine.stdout (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r6297 r6325 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-02-0 2 04:51:14$5 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-02-06 21:03:23 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 449 449 } 450 450 451 dbh = psDBInit(dbServer, dbUsername, dbPassword, dbName); 451 452 453 psDB *dbh = psDBInit(dbServer, dbUsername, dbPassword, dbName); 452 454 psFree(dbServer); 453 455 psFree(dbUsername); -
trunk/psModules/src/imcombine/pmReadoutCombine.c
r6206 r6325 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 1-26 21:19:25 $7 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-02-06 21:03:25 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 410 410 psRegion minRegion; 411 411 psRegion maxRegion; 412 psStats *minStats = psStatsAlloc(PS_STAT_ ROBUST_MEAN);413 psStats *maxStats = psStatsAlloc(PS_STAT_ ROBUST_MEAN);412 psStats *minStats = psStatsAlloc(PS_STAT_FITTED_MEAN); 413 psStats *maxStats = psStatsAlloc(PS_STAT_FITTED_MEAN); 414 414 psStats *diffStats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 415 415 psVector *diffs = psVectorAlloc(fringePoints->n, PS_TYPE_F32); … … 445 445 } 446 446 447 fp->midValue = 0.5 * (maxStats-> robustMean + minStats->robustMean);448 fp->delta = maxStats-> robustMean - minStats->robustMean;447 fp->midValue = 0.5 * (maxStats->fittedMean + minStats->fittedMean); 448 fp->delta = maxStats->fittedMean - minStats->fittedMean; 449 449 diffs->data.F32[i] = fp->delta; 450 450 } … … 455 455 psFree(diffs); 456 456 if (diffStats == NULL) { 457 psError(PS_ERR_UNKNOWN, true, "Could not determine robustmedian of the differences.\n");457 psError(PS_ERR_UNKNOWN, true, "Could not determine fitted median of the differences.\n"); 458 458 return(NULL); 459 459 } -
trunk/psModules/src/imsubtract/pmSubtractBias.c
r6205 r6325 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 1-26 21:10:51$8 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-06 21:03:25 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 179 179 psStatsOptions opt = 0; 180 180 181 if (stat->options & PS_STAT_ROBUST_MODE) { 182 if (numOptions == 0) { 183 opt = PS_STAT_ROBUST_MODE; 184 } 185 numOptions++; 186 } 187 181 /* 182 if (stat->options & PS_STAT_ROBUST_MODE) { 183 if (numOptions == 0) { 184 opt = PS_STAT_ROBUST_MODE; 185 } 186 numOptions++; 187 } 188 */ 188 189 if (stat->options & PS_STAT_ROBUST_MEDIAN) { 189 190 if (numOptions == 0) { … … 193 194 } 194 195 195 if (stat->options & PS_STAT_ ROBUST_MEAN) {196 if (stat->options & PS_STAT_FITTED_MEAN) { 196 197 if (numOptions == 0) { 197 opt = PS_STAT_ ROBUST_MEAN;198 opt = PS_STAT_FITTED_MEAN; 198 199 } 199 200 numOptions++; -
trunk/psModules/src/imsubtract/pmSubtractSky.c
r5516 r6325 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 200 5-11-15 20:09:03$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-06 21:03:25 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 67 67 } else if (statOptions & PS_STAT_CLIPPED_MEAN) { 68 68 return(PS_STAT_CLIPPED_MEAN); 69 } else if (statOptions & PS_STAT_ ROBUST_MEAN) {70 return(PS_STAT_ ROBUST_MEAN);69 } else if (statOptions & PS_STAT_FITTED_MEAN) { 70 return(PS_STAT_FITTED_MEAN); 71 71 } else if (statOptions & PS_STAT_ROBUST_MEDIAN) { 72 72 return(PS_STAT_ROBUST_MEDIAN); 73 } else if (statOptions & PS_STAT_ROBUST_MODE) {74 return(PS_STAT_ROBUST_MODE);75 73 } 76 74 psError(PS_ERR_UNKNOWN, true, "Unallowable option requested for statistically binning image pixels.\n"); 77 75 return(-1); 76 // XXX 77 //else if (statOptions & PS_STAT_ROBUST_MODE) { 78 // return(PS_STAT_ROBUST_MODE); 79 //} 78 80 } 79 81 -
trunk/psModules/src/objects/pmObjects.c
r6206 r6325 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 1-26 21:19:25 $8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-06 21:03:25 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1653 1653 1654 1654 psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n"); 1655 fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y, yErr, modelFunc); 1655 1656 /* XXXX: Must change this: 1657 fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y, 1658 yErr, modelFunc); 1659 */ 1656 1660 for (int i = 0; i < dparams->n; i++) { 1657 1661 if ((paramMask != NULL) && paramMask->data.U8[i]) … … 1819 1823 1820 1824 psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n"); 1821 fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y, yErr, modelFunc); 1825 /* XXXX: Must change this: 1826 fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y, yErr, modelFunc); 1827 */ 1822 1828 for (int i = 0; i < dparams->n; i++) { 1823 1829 if ((paramMask != NULL) && paramMask->data.U8[i]) -
trunk/psModules/test/config/tst_pmConfig.c
r6205 r6325 13 13 * pmConfigDB() 14 14 * 15 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2006-0 1-26 21:10:51$15 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2006-02-06 21:03:25 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 61 61 str[0] = "ARGS:"; 62 62 str[1] = "-site"; 63 str[2] = " SampleIPPConfig";63 str[2] = "data/SampleIPPConfig"; 64 64 65 65 psMetadata *site = psMetadataAlloc(); -
trunk/psModules/test/config/verified/tst_pmConfig.stderr
r5679 r6325 22 22 Error: *argc is 0 or less. 23 23 <HOST>|I|readConfig 24 Loading site configuration from file SampleIPPConfig24 Loading site configuration from file data/SampleIPPConfig 25 25 26 26 ---> TESTPOINT PASSED (Test Point Driver{pmConfig:} | tst_pmConfig.c) -
trunk/psModules/test/config/verified/tst_pmConfig.stdout
r5679 r6325 16 16 Calling pmConfigRead() with negative argc. Should generate ERROR, return false. 17 17 ---------------------------------------------------------------- 18 Calling pmConfigRead() with acceptable arguments. -
trunk/psModules/test/imcombine/verified/tst_pmImageCombine.stdout
r5258 r6325 19 19 Calling with a NULL stats. Should generate error, return NULL. 20 20 Calling with acceptable data. Should generate a psImage. 21 Image 0, questionable pixel 0 is (1.000000 2.000000) 22 Image 0, questionable pixel 1 is (4.000000 5.000000) 21 23 Image 1, questionable pixel 0 is (0.000000 8.000000) 22 24 Image 1, questionable pixel 1 is (1.000000 2.000000) 23 Image 1, questionable pixel 2 is (3.000000 9.000000) 24 Image 1, questionable pixel 3 is (4.000000 5.000000) 25 Image 1, questionable pixel 4 is (3.000000 8.000000) 26 Image 2, questionable pixel 0 is (9.000000 9.000000) 27 Image 2, questionable pixel 1 is (0.000000 5.000000) 28 Image 2, questionable pixel 2 is (6.000000 2.000000) 29 Image 2, questionable pixel 3 is (3.000000 7.000000) 25 Image 1, questionable pixel 2 is (9.000000 9.000000) 26 Image 1, questionable pixel 3 is (3.000000 9.000000) 27 Image 1, questionable pixel 4 is (4.000000 5.000000) 28 Image 1, questionable pixel 5 is (3.000000 8.000000) 29 Image 2, questionable pixel 0 is (1.000000 2.000000) 30 Image 2, questionable pixel 1 is (9.000000 9.000000) 31 Image 2, questionable pixel 2 is (0.000000 5.000000) 32 Image 2, questionable pixel 3 is (6.000000 2.000000) 33 Image 2, questionable pixel 4 is (3.000000 7.000000) 30 34 Image 3, questionable pixel 0 is (7.000000 5.000000) 35 Image 4, questionable pixel 0 is (3.000000 8.000000) 31 36 32 37 33 38 34 39 Calling pmRejectPixels() with acceptable data. Should generate a psArray. 35 tst_pmImageCombine.c: Image 0 had 0 rejects. 40 tst_pmImageCombine.c: Image 0 had 2 rejects. 41 Image 0, rejected pixel 0 is (1.000000 2.000000) 42 Image 0, rejected pixel 1 is (4.000000 5.000000) 36 43 tst_pmImageCombine.c: Image 1 had 4 rejects. 37 44 Image 1, rejected pixel 0 is (0.000000 8.000000) … … 39 46 Image 1, rejected pixel 2 is (4.000000 5.000000) 40 47 Image 1, rejected pixel 3 is (3.000000 8.000000) 41 tst_pmImageCombine.c: Image 2 had 3 rejects. 42 Image 2, rejected pixel 0 is (0.000000 5.000000) 43 Image 2, rejected pixel 1 is (6.000000 2.000000) 44 Image 2, rejected pixel 2 is (3.000000 7.000000) 48 tst_pmImageCombine.c: Image 2 had 4 rejects. 49 Image 2, rejected pixel 0 is (1.000000 2.000000) 50 Image 2, rejected pixel 1 is (0.000000 5.000000) 51 Image 2, rejected pixel 2 is (6.000000 2.000000) 52 Image 2, rejected pixel 3 is (3.000000 7.000000) 45 53 tst_pmImageCombine.c: Image 3 had 1 rejects. 46 54 Image 3, rejected pixel 0 is (7.000000 5.000000) 47 tst_pmImageCombine.c: Image 4 had 0 rejects. 55 tst_pmImageCombine.c: Image 4 had 1 rejects. 56 Image 4, rejected pixel 0 is (3.000000 8.000000)
Note:
See TracChangeset
for help on using the changeset viewer.
