Changeset 27133 for trunk/ippTools/src/camtool.c
- Timestamp:
- Mar 2, 2010, 9:54:29 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r26981 r27133 686 686 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 687 687 pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "=="); 688 pxAddLabelSearchArgs (config, where, "-data_group", "camRun.data_group", "LIKE"); 688 689 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 689 690 690 if (!psListLength(where->list) && 691 psString where2 = NULL; 692 if (!pxspaceAddWhere(config, &where2, "rawExp")) { 693 psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed"); 694 return false; 695 } 696 if (!pxmagicAddWhere(config, &where2, "chipRun")) { 697 psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed"); 698 return false; 699 } 700 if (!psListLength(where->list) && !where2 && 691 701 !psMetadataLookupBool(NULL, config->args, "-all")) { 692 702 psFree(where); … … 725 735 } 726 736 psFree(where); 737 if (where2) { 738 psStringAppend(&query, " %s", where2); 739 psFree(where2); 740 } 727 741 728 742 // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry 729 psStringAppend(&query, " ORDER BY cam_id");743 psStringAppend(&query, " ORDER BY exp_id, cam_id"); 730 744 731 745 // treat limit == 0 as "no limit"
Note:
See TracChangeset
for help on using the changeset viewer.
