Changeset 19339 for trunk/ippTools/src/pxchip.c
- Timestamp:
- Sep 3, 2008, 9:53:10 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxchip.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxchip.c
r19324 r19339 34 34 psMetadataAddS64(md, PS_LIST_TAIL, "-exp_id", 0, "search by exp_id", 0); 35 35 psMetadataAddStr(md, PS_LIST_TAIL, "-exp_name", 0, "search by exp_name", NULL); 36 psMetadataAddStr(md, PS_LIST_TAIL, "-class_id", 0, "search by class ID", NULL);36 // psMetadataAddStr(md, PS_LIST_TAIL, "-class_id", 0, "search by class ID", NULL); 37 37 psMetadataAddStr(md, PS_LIST_TAIL, "-inst", 0, "search for camera", NULL); 38 38 psMetadataAddStr(md, PS_LIST_TAIL, "-telescope", 0, "search for telescope", NULL); … … 42 42 psMetadataAddStr(md, PS_LIST_TAIL, "-exp_type", 0, "search by exp_type", "object"); 43 43 psMetadataAddStr(md, PS_LIST_TAIL, "-filelevel", 0, "search by filelevel", NULL); 44 psMetadataAddStr(md, PS_LIST_TAIL, "-reduction", 0, "search by reduction class", NULL);44 // psMetadataAddStr(md, PS_LIST_TAIL, "-reduction", 0, "search by reduction class", NULL); 45 45 psMetadataAddStr(md, PS_LIST_TAIL, "-filter", 0, "search for filter", NULL); 46 46 psMetadataAddF32(md, PS_LIST_TAIL, "-airmass_min", 0, "search by min airmass", NAN); … … 72 72 psMetadataAddF32(md, PS_LIST_TAIL, "-solang_max", 0, "search by max solar angle", NAN); 73 73 psMetadataAddStr(md, PS_LIST_TAIL, "-comment", 0, "search by comment field (LIKE comparison)", NULL); 74 psMetadataAddStr(md, PS_LIST_TAIL, "-label", 0, "search by label (LIKE comparison)", NULL);74 // psMetadataAddStr(md, PS_LIST_TAIL, "-label", 0, "search by label (LIKE comparison)", NULL); 75 75 return true; 76 76 } … … 80 80 bool pxchipGetSearchArgs (pxConfig *config, psMetadata *where) { 81 81 82 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 83 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 84 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 85 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 86 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 87 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 88 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 89 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 90 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 91 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 92 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 93 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 94 PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">="); 95 PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<"); 96 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 97 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 98 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 99 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 100 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 101 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 102 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 103 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 104 PXOPT_COPY_F64(config->args, where, "-bg_min", "bg", ">="); 105 PXOPT_COPY_F64(config->args, where, "-bg_max", "bg", "<"); 106 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 107 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 108 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 109 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 110 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 111 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 112 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 113 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 114 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 115 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 116 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 117 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 118 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 119 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 120 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 121 PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE"); 122 PXOPT_COPY_STR(config->args, where, "-label", "label", "LIKE"); 82 // definebyquery : rawExp only 83 // updaterun : rawExp, chipRun 84 // pendingimfile : rawExp, chipRun 85 // processedimfile : rawExp, chipRun, chipProcessedImfile 86 // revertprocessedimfile : rawExp, chipProcessedImfile 87 // updateprocessedimfile : chipProcessedImfile 88 PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "=="); 89 PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "=="); 90 PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.camera", "=="); 91 PXOPT_COPY_STR(config->args, where, "-telescope", "rawExp.telescope", "=="); 92 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">="); 93 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<="); 94 PXOPT_COPY_STR(config->args, where, "-exp_tag", "rawExp.exp_tag", "=="); 95 PXOPT_COPY_STR(config->args, where, "-exp_type", "rawExp.exp_type", "=="); 96 PXOPT_COPY_STR(config->args, where, "-filelevel", "rawExp.filelevel", "=="); 97 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 98 PXOPT_COPY_F64(config->args, where, "-airmass_min", "rawExp.airmass", ">="); 99 PXOPT_COPY_F64(config->args, where, "-airmass_max", "rawExp.airmass", "<"); 100 PXOPT_COPY_F64(config->args, where, "-ra_min", "rawExp.ra", ">="); 101 PXOPT_COPY_F64(config->args, where, "-ra_max", "rawExp.ra", "<"); 102 PXOPT_COPY_F64(config->args, where, "-decl_min", "rawExp.decl", ">="); 103 PXOPT_COPY_F64(config->args, where, "-decl_max", "rawExp.decl", "<"); 104 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "rawExp.exp_time", ">="); 105 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "rawExp.exp_time", "<"); 106 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "rawExp.sat_pixel_frac", ">="); 107 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "rawExp.sat_pixel_frac", "<"); 108 PXOPT_COPY_F64(config->args, where, "-bg_min", "rawExp.bg", ">="); 109 PXOPT_COPY_F64(config->args, where, "-bg_max", "rawExp.bg", "<"); 110 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "rawExp.bg_stdev", ">="); 111 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "rawExp.bg_stdev", "<"); 112 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "rawExp.bg_mean_stdev", ">="); 113 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "rawExp.bg_mean_stdev", "<"); 114 PXOPT_COPY_F64(config->args, where, "-alt_min", "rawExp.alt", ">="); 115 PXOPT_COPY_F64(config->args, where, "-alt_max", "rawExp.alt", "<"); 116 PXOPT_COPY_F64(config->args, where, "-az_min", "rawExp.az", ">="); 117 PXOPT_COPY_F64(config->args, where, "-az_max", "rawExp.az", "<"); 118 PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "rawExp.ccd_temp", ">="); 119 PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "rawExp.ccd_temp", "<"); 120 PXOPT_COPY_F64(config->args, where, "-posang_min", "rawExp.posang", ">="); 121 PXOPT_COPY_F64(config->args, where, "-posang_max", "rawExp.posang", "<"); 122 PXOPT_COPY_STR(config->args, where, "-object", "rawExp.object", "=="); 123 PXOPT_COPY_F32(config->args, where, "-solang_min", "rawExp.solang", ">="); 124 PXOPT_COPY_F32(config->args, where, "-solang_max", "rawExp.solang", "<"); 125 PXOPT_COPY_STR(config->args, where, "-comment", "rawExp.comment", "LIKE"); 123 126 return true; 124 127 }
Note:
See TracChangeset
for help on using the changeset viewer.
