Changeset 34058
- Timestamp:
- Jun 23, 2012, 6:57:16 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601
- Files:
-
- 22 edited
-
ippTools/src/dettool.c (modified) (1 diff)
-
ippTools/src/dettool_processedexp.c (modified) (2 diffs)
-
ippTools/src/dettool_processedimfile.c (modified) (1 diff)
-
ippTools/src/dettool_residexp.c (modified) (1 diff)
-
ippTools/src/disttool.c (modified) (4 diffs)
-
ippTools/src/dqstatstool.c (modified) (1 diff)
-
ippTools/src/faketool.c (modified) (1 diff)
-
ippTools/src/laptool.c (modified) (4 diffs)
-
ippTools/src/magicdstool.c (modified) (1 diff)
-
ippTools/src/mergetool.c (modified) (2 diffs)
-
ippTools/src/minidvodbtool.c (modified) (1 diff)
-
ippTools/src/pstamptool.c (modified) (6 diffs)
-
ippTools/src/pztool.c (modified) (1 diff)
-
ippTools/src/regtool.c (modified) (4 diffs)
-
ippTools/src/stacktool.c (modified) (2 diffs)
-
ippTools/src/staticskytool.c (modified) (2 diffs)
-
ippTools/src/vptool.c (modified) (2 diffs)
-
ippTools/src/warptool.c (modified) (4 diffs)
-
magic/remove/src/streakscompare.c (modified) (1 diff)
-
magic/remove/src/streaksio.c (modified) (1 diff)
-
magic/remove/src/streaksrelease.c (modified) (1 diff)
-
psLib/src/imageops/psImageStructManip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/ippTools/src/dettool.c
r31205 r34058 2116 2116 PS_ASSERT_PTR_NON_NULL(config, NULL); 2117 2117 2118 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false);2118 // replaced below PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 2119 2119 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 2120 2120 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/dettool_processedexp.c
r28578 r34058 266 266 PS_ASSERT_PTR_NON_NULL(config, NULL); 267 267 268 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false);268 // PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 269 269 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 270 270 … … 283 283 bool updatestateprocessedMode(pxConfig *config) { 284 284 PS_ASSERT_PTR_NON_NULL(config, NULL); 285 PXOPT_LOOKUP_S64(det_id,config->args, "-det_id",true,false);285 // PXOPT_LOOKUP_S64(det_id,config->args, "-det_id",true,false); 286 286 PXOPT_LOOKUP_STR(data_state,config->args, "-data_state", true, false); 287 287 -
branches/eam_branches/ipp-20120601/ippTools/src/dettool_processedimfile.c
r28578 r34058 298 298 PS_ASSERT_PTR_NON_NULL(config, NULL); 299 299 300 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false);300 // PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 301 301 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 302 302 -
branches/eam_branches/ipp-20120601/ippTools/src/dettool_residexp.c
r28578 r34058 356 356 bool updatestateresidMode(pxConfig *config) { 357 357 PS_ASSERT_PTR_NON_NULL(config, NULL); 358 PXOPT_LOOKUP_S64(det_id,config->args, "-det_id",true,false);358 // PXOPT_LOOKUP_S64(det_id,config->args, "-det_id",true,false); 359 359 PXOPT_LOOKUP_STR(data_state,config->args, "-data_state", true, false); 360 360 -
branches/eam_branches/ipp-20120601/ippTools/src/disttool.c
r33042 r34058 403 403 } 404 404 405 if (0) { 406 fprintf (stderr, "runJoinStr: %s\n", runJoinStr); 407 } 408 405 409 if (!strcmp(stage, "raw")) { 406 410 if (!no_magic) { … … 726 730 } 727 731 732 if (simple) {/* no option? */} 728 733 729 734 if (pretend) { … … 1833 1838 psStringAppend(&query, " %s last_fileset = '%s'", sep, last_fileset); 1834 1839 } 1840 #else 1841 if (0) { fprintf (stderr, "sep: %s\n", sep); } 1835 1842 #endif 1836 1843 … … 2186 2193 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 2187 2194 2188 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false);2189 PXOPT_LOOKUP_BOOL(full, config->args, "-full", false);2195 // PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 2196 // PXOPT_LOOKUP_BOOL(full, config->args, "-full", false); 2190 2197 2191 2198 pxAddLabelSearchArgs (config, where, "-label", "distRun.label", "=="); -
branches/eam_branches/ipp-20120601/ippTools/src/dqstatstool.c
r31969 r34058 829 829 static bool updaterunMode(pxConfig *config) { 830 830 PS_ASSERT_PTR_NON_NULL(config,false); 831 PXOPT_LOOKUP_S64(dqstats_id, config->args, "-dqstats_id", true, false);831 // PXOPT_LOOKUP_S64(dqstats_id, config->args, "-dqstats_id", true, false); 832 832 PXOPT_LOOKUP_STR(state, config->args, "-set_state", true, false); 833 833 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/faketool.c
r32943 r34058 1263 1263 PS_ASSERT_PTR_NON_NULL(config, NULL); 1264 1264 1265 PXOPT_LOOKUP_S64(det_id, config->args, "-fake_id", true, false);1265 // PXOPT_LOOKUP_S64(det_id, config->args, "-fake_id", true, false); 1266 1266 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 1267 1267 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/laptool.c
r33336 r34058 464 464 465 465 psMetadata *where = psMetadataAlloc(); 466 PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 466 467 // require? PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 467 468 PXOPT_COPY_S64(config->args, where, "-lap_id", "lap_id", "=="); 468 469 … … 633 634 { 634 635 PS_ASSERT_PTR_NON_NULL(config, false); 635 PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 636 636 637 // require? PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 637 638 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 638 639 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 705 706 706 707 psMetadata *where = psMetadataAlloc(); 707 PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 708 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 709 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false); 708 709 // test for required opts? 710 // PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 711 // PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 712 // PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false); 710 713 711 714 PXOPT_LOOKUP_S64(set_chip_id, config->args, "-set_chip_id", false, false); … … 841 844 { 842 845 PS_ASSERT_PTR_NON_NULL(config, false); 843 PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 846 847 // PXOPT_LOOKUP_S64(lap_id, config->args, "-lap_id", true, false); 844 848 845 849 psMetadata *where = psMetadataAlloc(); -
branches/eam_branches/ipp-20120601/ippTools/src/magicdstool.c
r33625 r34058 1343 1343 { 1344 1344 // required 1345 PXOPT_LOOKUP_S64(magic_ds_id, config->args, "-magic_ds_id", true, false);1345 // PXOPT_LOOKUP_S64(magic_ds_id, config->args, "-magic_ds_id", true, false); 1346 1346 1347 1347 psMetadata *where = psMetadataAlloc(); -
branches/eam_branches/ipp-20120601/ippTools/src/mergetool.c
r33030 r34058 738 738 PS_ASSERT_PTR_NON_NULL(config, NULL); 739 739 psMetadata *where = psMetadataAlloc(); 740 PXOPT_LOOKUP_U64(minidvodb_id, config->args, "-merge_id", true, false);740 // PXOPT_LOOKUP_U64(minidvodb_id, config->args, "-merge_id", true, false); 741 741 PXOPT_COPY_S64(config->args, where, "-merge_id", "mergedvodbProcessed.merge_id", "=="); 742 742 PXOPT_LOOKUP_F32(dtime_merge, config->args, "-set_dtime_merge", false, false); … … 1139 1139 PS_ASSERT_PTR_NON_NULL(config, false); 1140 1140 psMetadata *where = psMetadataAlloc(); 1141 PXOPT_LOOKUP_U64(mergedvodbcopy_id, config->args, "-mergedvodbcopy_id", false, false); 1142 PXOPT_LOOKUP_U64(merge_id, config->args, "-merge_id", false, false); 1141 1142 // require? PXOPT_LOOKUP_U64(mergedvodbcopy_id, config->args, "-mergedvodbcopy_id", false, false); 1143 // require? PXOPT_LOOKUP_U64(merge_id, config->args, "-merge_id", false, false); 1143 1144 PXOPT_LOOKUP_STR(state, config->args, "-state", false, false); 1144 1145 PXOPT_LOOKUP_STR(host, config->args, "-host", false, false); 1145 1146 PXOPT_LOOKUP_STR(rsync_path, config->args, "-mergedvodb_rsync_path", false, false); 1146 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);1147 // PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 1147 1148 1148 1149 PXOPT_LOOKUP_S16(set_fault, config->args, "-set_fault", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/minidvodbtool.c
r33030 r34058 411 411 PS_ASSERT_PTR_NON_NULL(config, false); 412 412 psMetadata *where = psMetadataAlloc(); 413 PXOPT_LOOKUP_U64(minidvodbcopy_id, config->args, "-minidvodbcopy_id", false, false); 414 PXOPT_LOOKUP_U64(minidvodb_id, config->args, "-minidvodb_id", false, false); 413 414 // PXOPT_LOOKUP_U64(minidvodbcopy_id, config->args, "-minidvodbcopy_id", false, false); 415 // PXOPT_LOOKUP_U64(minidvodb_id, config->args, "-minidvodb_id", false, false); 415 416 PXOPT_LOOKUP_STR(state, config->args, "-state", false, false); 416 417 PXOPT_LOOKUP_STR(host, config->args, "-host", false, false); 417 418 PXOPT_LOOKUP_STR(rsync_path, config->args, "-minidvodb_rsync_path", false, false); 418 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);419 // PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 419 420 420 421 PXOPT_LOOKUP_S16(set_fault, config->args, "-set_fault", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/pstamptool.c
r34052 r34058 48 48 static bool stopdependentjobMode(pxConfig *config); 49 49 static bool revertjobMode(pxConfig *config); 50 51 # if (0) 52 // these are unused functions -- since they are 'static', this raises an warning 50 53 static bool addprojectMode(pxConfig *config); 51 54 static bool projectMode(pxConfig *config); … … 59 62 static bool listfileMode(pxConfig *config); 60 63 static bool deletefileMode(pxConfig *config); 64 # endif 61 65 62 66 # define MODECASE(caseName, func) \ … … 98 102 MODECASE(PSTAMPTOOL_MODE_STOPDEPENDENTJOB, stopdependentjobMode); 99 103 MODECASE(PSTAMPTOOL_MODE_REVERTJOB, revertjobMode); 104 # if (0) 100 105 MODECASE(PSTAMPTOOL_MODE_ADDPROJECT, addprojectMode); 101 106 MODECASE(PSTAMPTOOL_MODE_MODPROJECT, modprojectMode); … … 109 114 MODECASE(PSTAMPTOOL_MODE_LISTFILE, listfileMode); 110 115 MODECASE(PSTAMPTOOL_MODE_DELETEFILE, deletefileMode); 116 # endif 111 117 default: 112 118 psAbort("invalid option (this should not happen)"); … … 1095 1101 } 1096 1102 1103 # if (0) 1104 // these are unused functions 1097 1105 static bool addprojectMode(pxConfig *config) 1098 1106 { … … 1634 1642 return true; 1635 1643 } 1644 # endif -
branches/eam_branches/ipp-20120601/ippTools/src/pztool.c
r33533 r34058 338 338 } 339 339 340 /* psStringAppend(&query, " ORDER BY dateobs"); */ 341 /* if (desc) { */ 342 /* psStringAppend(&query, " DESC"); */ 343 /* } */ 340 if (0) { 341 psStringAppend(&query, " ORDER BY dateobs"); 342 if (desc) { 343 psStringAppend(&query, " DESC"); 344 } 345 } 344 346 345 347 // request the full "limit" from each known camera and throw away any -
branches/eam_branches/ipp-20120601/ippTools/src/regtool.c
r32593 r34058 613 613 PXOPT_LOOKUP_F32(teltemp_extra, config->args, "-teltemp_extra", false, false); 614 614 PXOPT_LOOKUP_F32(pon_time, config->args, "-pon_time", false, false); 615 PXOPT_LOOKUP_S16(burntool_state, config->args, "-burntool_state", false, false);615 // PXOPT_LOOKUP_S16(burntool_state, config->args, "-burntool_state", false, false); 616 616 PXOPT_LOOKUP_F64(user_1, config->args, "-user_1", false, false); 617 617 PXOPT_LOOKUP_F64(user_2, config->args, "-user_2", false, false); … … 1664 1664 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1665 1665 1666 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);1666 // XXX unused PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1667 1667 1668 1668 psString query = pxDataGet("regtool_finishcompressexp.sql"); … … 1792 1792 psStringPrepend(&whereClause,"\n AND "); 1793 1793 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1794 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);1794 // PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1795 1795 1796 1796 psString limitString = NULL; … … 2033 2033 PS_ASSERT_PTR_NON_NULL(config, NULL); 2034 2034 2035 PXOPT_LOOKUP_S64(det_id, config->args, "-exp_id", true, false);2035 // unused and wrong! PXOPT_LOOKUP_S64(det_id, config->args, "-exp_id", true, false); 2036 2036 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 2037 2037 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); -
branches/eam_branches/ipp-20120601/ippTools/src/stacktool.c
r33821 r34058 810 810 811 811 // XXX require at least a stack id (add better search options) 812 PXOPT_LOOKUP_S64(stack_id, config->args, "-stack_id", true, false);812 // PXOPT_LOOKUP_S64(stack_id, config->args, "-stack_id", true, false); 813 813 814 814 psMetadata *where = psMetadataAlloc(); … … 1697 1697 PS_ASSERT_PTR_NON_NULL(config, NULL); 1698 1698 1699 PXOPT_LOOKUP_S64(det_id, config->args, "-stack_id", true, false);1699 // PXOPT_LOOKUP_S64(det_id, config->args, "-stack_id", true, false); 1700 1700 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 1701 1701 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); -
branches/eam_branches/ipp-20120601/ippTools/src/staticskytool.c
r33919 r34058 424 424 425 425 // XXX require at least a sky id (add better search options) 426 PXOPT_LOOKUP_S64(sky_id, config->args, "-sky_id", true, false);426 // PXOPT_LOOKUP_S64(sky_id, config->args, "-sky_id", true, false); 427 427 428 428 psMetadata *where = psMetadataAlloc(); … … 797 797 PS_ASSERT_PTR_NON_NULL(config, NULL); 798 798 799 PXOPT_LOOKUP_S64(det_id, config->args, "-sky_id", true, false);799 // XXX unused PXOPT_LOOKUP_S64(det_id, config->args, "-sky_id", true, false); 800 800 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 801 801 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); -
branches/eam_branches/ipp-20120601/ippTools/src/vptool.c
r32770 r34058 126 126 } 127 127 128 GET_VALUE (psS64, S64, exp_id, "exp_id");128 // GET_VALUE (psS64, S64, exp_id, "exp_id"); 129 129 GET_VALUE (psString, Str, raw_workdir, "workdir"); 130 130 GET_VALUE (psString, Str, raw_label, "label"); 131 GET_VALUE (psString, Str, raw_reduction, "reduction");131 // GET_VALUE (psString, Str, raw_reduction, "reduction"); 132 132 // GET_VALUE (psString, Str, raw_expgroup, "expgroup"); 133 GET_VALUE (psString, Str, raw_dvodb, "dvodb");134 GET_VALUE (psString, Str, raw_tess_id, "tess_id");135 GET_VALUE (psString, Str, raw_end_stage, "end_stage");133 // GET_VALUE (psString, Str, raw_dvodb, "dvodb"); 134 // GET_VALUE (psString, Str, raw_tess_id, "tess_id"); 135 // GET_VALUE (psString, Str, raw_end_stage, "end_stage"); 136 136 137 137 if (!row->exp_id) { … … 672 672 PXOPT_COPY_S16(config->args, where, "-fault", "vpProcessedCell.fault", "=="); 673 673 674 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);674 // PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 675 675 676 676 if (!psListLength(where->list)) { -
branches/eam_branches/ipp-20120601/ippTools/src/warptool.c
r33112 r34058 1185 1185 pxAddLabelSearchArgs (config, where, "-label", "label", "=="); 1186 1186 1187 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);1187 // PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1188 1188 1189 1189 psString query = pxDataGet("warptool_finished_run_select.sql"); … … 1831 1831 PS_ASSERT_PTR_NON_NULL(config, NULL); 1832 1832 1833 PXOPT_LOOKUP_S64(warp_id, config->args, "-warp_id", true, false);1833 // PXOPT_LOOKUP_S64(warp_id, config->args, "-warp_id", true, false); 1834 1834 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1835 1835 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 2169 2169 PS_ASSERT_PTR_NON_NULL(config, NULL); 2170 2170 2171 PXOPT_LOOKUP_S64(det_id, config->args, "-warp_id", true, false);2171 // PXOPT_LOOKUP_S64(det_id, config->args, "-warp_id", true, false); 2172 2172 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 2173 2173 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 2358 2358 pxAddLabelSearchArgs (config, where, "-label", "warpRun.label", "LIKE"); 2359 2359 2360 //PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);2361 PXOPT_LOOKUP_BOOL(no_magic, config->args, "-no_magic", false);2360 // PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 2361 // PXOPT_LOOKUP_BOOL(no_magic, config->args, "-no_magic", false); 2362 2362 2363 2363 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); -
branches/eam_branches/ipp-20120601/magic/remove/src/streakscompare.c
r30315 r34058 165 165 } 166 166 167 if (nebulousImage) { /* do something? */ } 168 167 169 if (argc != 1) { 168 170 psString unexpectedArguments = NULL; -
branches/eam_branches/ipp-20120601/magic/remove/src/streaksio.c
r32687 r34058 659 659 660 660 // Ensure input is of the expected type 661 ps DataType expected = isMask ? PS_TYPE_IMAGE_MASK : PS_TYPE_F32; // Expected type for image661 psElemType expected = isMask ? PS_TYPE_IMAGE_MASK : PS_TYPE_F32; // Expected type for image 662 662 for (int i = 0; i < in->imagecube->n; i++) { 663 663 psImage *image = in->imagecube->data[i]; // Image of interest -
branches/eam_branches/ipp-20120601/magic/remove/src/streaksrelease.c
r30315 r34058 288 288 } else { 289 289 // we have an image cube 290 double initValue;290 // double initValue; 291 291 if (exciseImageCube) { 292 292 // copy the entire input image to the recovery image 293 293 writeImageCube(sf->recImage, sf->inImage->imagecube, extname, sf->extnum); 294 initValue = NAN;294 // initValue = NAN; 295 295 } else { 296 296 // otherwise write it to the output 297 297 writeImageCube(sf->outImage, sf->inImage->imagecube, extname, sf->extnum); 298 initValue = 0;298 // initValue = 0; 299 299 } 300 300 -
branches/eam_branches/ipp-20120601/psLib/src/imageops/psImageStructManip.c
r34052 r34058 212 212 elementSize = PSELEMTYPE_SIZEOF(inDatatype); 213 213 214 if (0) { fprintf (stderr, "%d elements, %d total memory\n", elements, elements * element sSize); }214 if (0) { fprintf (stderr, "%d elements, %d total memory\n", elements, elements * elementSize); } 215 215 216 216 output = p_psImageRecycle(file, lineno, func, output, numCols, numRows, type);
Note:
See TracChangeset
for help on using the changeset viewer.
