Changeset 19132
- Timestamp:
- Aug 19, 2008, 6:55:02 PM (18 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
chiptool.c (modified) (2 diffs)
-
chiptoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r18976 r19132 591 591 592 592 psMetadata *where = psMetadataAlloc(); 593 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 594 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 595 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 596 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 597 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 598 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 599 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 600 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 601 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 602 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 603 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 604 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 605 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 606 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 607 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 608 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 609 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 610 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 611 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 612 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 613 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 614 PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">="); 615 PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<"); 616 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 617 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 618 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 619 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 620 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 621 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 622 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 623 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 624 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 625 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 626 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 627 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 628 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 629 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 630 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 631 PXOPT_COPY_S16(config->args, where, "-code", "fault", "="); 593 594 // from chipRun (XXX is missing from sql) 595 PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "=="); 596 PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "=="); 597 598 // from chipProcessedImfile 599 PXOPT_COPY_S64(config->args, where, "-chip_id", "chipProcessedImfile.chip_id", "=="); 600 PXOPT_COPY_S64(config->args, where, "-exp_id", "chipProcessedImfile.exp_id", "=="); 601 PXOPT_COPY_STR(config->args, where, "-class_id", "chipProcessedImfile.class_id", "=="); 602 PXOPT_COPY_F64(config->args, where, "-bg_min", "chipProcessedImfile.bt", ">="); 603 PXOPT_COPY_F64(config->args, where, "-bg_max", "chipProcessedImfile.bt", "<"); 604 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "chipProcessedImfile.bg_stdev", ">="); 605 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "chipProcessedImfile.bg_stdev", "<"); 606 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "chipProcessedImfile.bg_mean_stdev", ">="); 607 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "chipProcessedImfile.bg_mean_stdev", "<"); 608 PXOPT_COPY_S16(config->args, where, "-code", "chipProcessedImfile.fault", "="); 609 610 // from rawExp 611 PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "=="); 612 PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.camera", "=="); 613 PXOPT_COPY_STR(config->args, where, "-telescope", "rawExp.telescope", "=="); 614 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">="); 615 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<="); 616 PXOPT_COPY_STR(config->args, where, "-exp_tag", "rawExp.exp_tag", "=="); 617 PXOPT_COPY_STR(config->args, where, "-filelevel", "rawExp.filelevel", "=="); 618 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 619 PXOPT_COPY_F64(config->args, where, "-airmass_min", "rawExp.airmass", ">="); 620 PXOPT_COPY_F64(config->args, where, "-airmass_max", "rawExp.airmass", "<"); 621 PXOPT_COPY_F64(config->args, where, "-ra_min", "rawExp.ra", ">="); 622 PXOPT_COPY_F64(config->args, where, "-ra_max", "rawExp.ra", "<"); 623 PXOPT_COPY_F64(config->args, where, "-decl_min", "rawExp.decl", ">="); 624 PXOPT_COPY_F64(config->args, where, "-decl_max", "rawExp.decl", "<"); 625 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "rawExp.exp_time", ">="); 626 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "rawExp.exp_time", "<"); 627 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "rawExp.sat_pixel_frac", ">="); 628 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "rawExp.sat_pixel_frac", "<"); 629 PXOPT_COPY_F64(config->args, where, "-alt_min", "rawExp.alt", ">="); 630 PXOPT_COPY_F64(config->args, where, "-alt_max", "rawExp.alt", "<"); 631 PXOPT_COPY_F64(config->args, where, "-az_min", "rawExp.az", ">="); 632 PXOPT_COPY_F64(config->args, where, "-az_max", "rawExp.az", "<"); 633 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "rawExp.ccd_temp", ">="); 634 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "rawExp.ccd_temp", "<"); 635 PXOPT_COPY_F64(config->args, where, "-posang_min", "rawExp.posang", ">="); 636 PXOPT_COPY_F64(config->args, where, "-posang_max", "rawExp.posang", "<"); 637 PXOPT_COPY_STR(config->args, where, "-object", "rawExp.object", "=="); 638 PXOPT_COPY_F32(config->args, where, "-solang_min", "rawExp.solang", ">="); 639 PXOPT_COPY_F32(config->args, where, "-solang_max", "rawExp.solang", "<"); 632 640 633 641 if (!psListLength(where->list) … … 646 654 647 655 if (where && psListLength(where->list)) { 648 psString whereClause = psDBGenerateWhereConditionSQL(where, "chipProcessedImfile");656 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 649 657 psStringAppend(&query, " AND %s", whereClause); 650 658 psFree(whereClause); -
trunk/ippTools/src/chiptoolConfig.c
r19092 r19132 213 213 psMetadataAddS64(revertprocessedimfileArgs, PS_LIST_TAIL, "-chip_id", 0, "search by chip ID", 0); 214 214 psMetadataAddS64(revertprocessedimfileArgs, PS_LIST_TAIL, "-exp_id", 0, "search by exp_id", 0); 215 psMetadataAddStr(revertprocessedimfileArgs, PS_LIST_TAIL, "-class_id", 0, "search by class ID", NULL); 216 psMetadataAddStr(revertprocessedimfileArgs, PS_LIST_TAIL, "-label", 0, "search by label", NULL); 215 217 psMetadataAddStr(revertprocessedimfileArgs, PS_LIST_TAIL, "-exp_name", 0, "search by exp_name", NULL); 216 218 psMetadataAddStr(revertprocessedimfileArgs, PS_LIST_TAIL, "-inst", 0, "search for camera", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
