Changeset 19182 for trunk/ippTools/src/camtool.c
- Timestamp:
- Aug 24, 2008, 3:13:32 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r19153 r19182 104 104 105 105 psMetadata *where = psMetadataAlloc(); 106 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 107 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 108 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 109 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 110 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 111 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 112 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 113 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 114 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 115 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 116 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 117 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 118 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 119 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 120 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 121 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 122 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 123 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 124 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 125 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 126 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 127 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 128 PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">="); 129 PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<"); 130 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 131 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 132 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 133 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 134 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 135 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 136 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 137 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 138 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 139 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 140 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 141 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 142 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 143 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 144 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 106 pxcamGetSearchArgs (config, where); 145 107 146 108 if (!psListLength(where->list) … … 257 219 psMetadata *where = psMetadataAlloc(); 258 220 PXOPT_COPY_S64(config->args, where, "-cam_id", "cam_id", "=="); 259 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 260 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 261 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 262 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 263 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 264 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 265 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 266 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 267 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 268 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 269 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 270 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 271 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 272 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 273 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 274 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 275 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 276 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 277 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 278 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 279 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 280 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 281 PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">="); 282 PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<"); 283 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 284 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 285 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 286 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 287 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 288 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 289 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 290 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 291 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 292 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 293 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 294 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 295 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 296 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 297 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 221 pxcamGetSearchArgs (config, where); 298 222 299 223 if (!psListLength(where->list) … … 341 265 psMetadata *where = psMetadataAlloc(); 342 266 PXOPT_COPY_S64(config->args, where, "-cam_id", "cam_id", "=="); 343 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");267 pxcamGetSearchArgs (config, where); 344 268 345 269 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 406 330 PXOPT_COPY_STR(config->args, where, "-class", "class", "=="); 407 331 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 332 pxcamGetSearchArgs (config, where); 408 333 409 334 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 638 563 psMetadata *where = psMetadataAlloc(); 639 564 PXOPT_COPY_S64(config->args, where, "-cam_id", "cam_id", "=="); 640 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 641 PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "=="); 565 pxcamGetSearchArgs (config, where); 642 566 643 567 psString query = pxDataGet("camtool_find_processedexp.sql"); … … 707 631 psMetadata *where = psMetadataAlloc(); 708 632 PXOPT_COPY_S64(config->args, where, "-cam_id", "cam_id", "=="); 709 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 710 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 711 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 712 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 713 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 714 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 715 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 716 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 717 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 718 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 719 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 720 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 721 PXOPT_COPY_F32(config->args, where, "-airmass_min", "airmass", ">="); 722 PXOPT_COPY_F32(config->args, where, "-airmass_max", "airmass", "<"); 723 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 724 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 725 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 726 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 727 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 728 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 729 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 730 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 731 PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">="); 732 PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<"); 733 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 734 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 735 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 736 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 737 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 738 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 739 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 740 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 741 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 742 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 743 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 744 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 745 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 746 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 747 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 633 pxcamGetSearchArgs (config, where); 748 634 749 635 if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
Note:
See TracChangeset
for help on using the changeset viewer.
