Changeset 27517 for branches/eam_branches/20100225/ippTools/src/camtool.c
- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/camtool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/ippTools/src/camtool.c
r26981 r27517 255 255 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 256 256 PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "=="); 257 PXOPT_COPY_STR(config->args, where, "-data_group","camRun.data_group", "=="); 257 258 PXOPT_COPY_STR(config->args, where, "-state", "camRun.state", "=="); 258 259 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); … … 266 267 267 268 // pxUpdateRun gets parameters from config->args and updates 268 bool result = pxUpdateRun(config, where, &query, "camRun", true);269 bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true); 269 270 if (!result) { 270 271 psError(psErrorCodeLast(), false, "pxUpdateRun failed"); … … 686 687 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 687 688 pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "=="); 689 pxAddLabelSearchArgs (config, where, "-data_group", "camRun.data_group", "LIKE"); 688 690 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 689 691 690 if (!psListLength(where->list) && 692 psString where2 = NULL; 693 if (!pxspaceAddWhere(config, &where2, "rawExp")) { 694 psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed"); 695 return false; 696 } 697 if (!pxmagicAddWhere(config, &where2, "chipRun")) { 698 psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed"); 699 return false; 700 } 701 if (!psListLength(where->list) && !where2 && 691 702 !psMetadataLookupBool(NULL, config->args, "-all")) { 692 703 psFree(where); … … 725 736 } 726 737 psFree(where); 738 if (where2) { 739 psStringAppend(&query, " %s", where2); 740 psFree(where2); 741 } 727 742 728 743 // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry 729 psStringAppend(&query, " ORDER BY cam_id");744 psStringAppend(&query, " ORDER BY exp_id, cam_id"); 730 745 731 746 // treat limit == 0 as "no limit"
Note:
See TracChangeset
for help on using the changeset viewer.
