Changeset 19203 for trunk/ippTools/src/warptool.c
- Timestamp:
- Aug 25, 2008, 3:21:22 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r19160 r19203 223 223 224 224 if (!psListLength(where->list) && 225 !psMetadataLookupBool(NULL, config->args, "-all")) {225 !psMetadataLookupBool(NULL, config->args, "-all")) { 226 226 psFree(where); 227 227 psError(PXTOOLS_ERR_DATA, false, "search parameters are required"); … … 303 303 dvodb ? dvodb : row->dvodb, 304 304 tess_id ? tess_id : row->tess_id, 305 end_stage ? end_stage : row->end_stage)) 306 {305 end_stage ? end_stage : row->end_stage)) 306 { 307 307 psError(PS_ERR_UNKNOWN, false, "failed to trying to queue fake_id: %" PRId64, row->fake_id); 308 308 psFree(row); … … 1143 1143 1144 1144 psMetadata *where = psMetadataAlloc(); 1145 PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "=="); 1146 PXOPT_COPY_STR(config->args, where, "-skycell_id", "skycell_id", "=="); 1147 PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "=="); 1148 PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "=="); 1149 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 1150 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1151 1152 // XXX These may need to be updated with the table name? 1153 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); 1154 PXOPT_COPY_STR(config->args, where, "-inst", "camera", "=="); 1155 PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "=="); 1156 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">="); 1157 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<="); 1158 PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "=="); 1159 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 1160 PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "=="); 1161 PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "=="); 1162 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 1163 1164 PXOPT_COPY_F32(config->args, where, "-airmass_min", "airmass", ">="); 1165 PXOPT_COPY_F32(config->args, where, "-airmass_max", "airmass", "<"); 1166 PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">="); 1167 PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<"); 1168 PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">="); 1169 PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<"); 1170 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">="); 1171 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<"); 1172 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">="); 1173 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<"); 1174 PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">="); 1175 PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<"); 1176 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">="); 1177 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<"); 1178 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">="); 1179 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<"); 1180 PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">="); 1181 PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<"); 1182 PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">="); 1183 PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<"); 1184 PXOPT_COPY_F64(config->args, where, "-ccd_temp_min", "ccd_temp", ">="); 1185 PXOPT_COPY_F64(config->args, where, "-ccd_temp_max", "ccd_temp", "<"); 1186 PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">="); 1187 PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<"); 1188 PXOPT_COPY_STR(config->args, where, "-object", "object", "=="); 1189 PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">="); 1190 PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<"); 1145 PXOPT_COPY_S64(config->args, where, "-warp_id", "warpSkyfile.warp_id", "=="); 1146 PXOPT_COPY_STR(config->args, where, "-skycell_id", "warpSkyfile.skycell_id", "=="); 1147 PXOPT_COPY_STR(config->args, where, "-tess_id", "warpSkyfile.tess_id", "=="); 1148 PXOPT_COPY_S64(config->args, where, "-fake_id", "fakeRun.fake_id", "=="); 1149 PXOPT_COPY_S64(config->args, where, "-chip_id", "chipRun.chip_id", "=="); 1150 PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "=="); 1151 1152 PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "=="); 1153 PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.camera", "=="); 1154 PXOPT_COPY_STR(config->args, where, "-telescope", "rawExp.telescope", "=="); 1155 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">="); 1156 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<="); 1157 PXOPT_COPY_STR(config->args, where, "-exp_tag", "rawExp.exp_tag", "=="); 1158 PXOPT_COPY_STR(config->args, where, "-exp_type", "rawExp.exp_type", "=="); 1159 PXOPT_COPY_STR(config->args, where, "-filelevel", "rawExp.filelevel", "=="); 1160 PXOPT_COPY_STR(config->args, where, "-reduction", "rawExp.reduction", "=="); 1161 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1162 1163 PXOPT_COPY_F32(config->args, where, "-airmass_min", "rawExp.airmass", ">="); 1164 PXOPT_COPY_F32(config->args, where, "-airmass_max", "rawExp.airmass", "<"); 1165 PXOPT_COPY_F64(config->args, where, "-ra_min", "rawExp.ra", ">="); 1166 PXOPT_COPY_F64(config->args, where, "-ra_max", "rawExp.ra", "<"); 1167 PXOPT_COPY_F64(config->args, where, "-decl_min", "rawExp.decl", ">="); 1168 PXOPT_COPY_F64(config->args, where, "-decl_max", "rawExp.decl", "<"); 1169 PXOPT_COPY_F32(config->args, where, "-exp_time_min", "rawExp.exp_time", ">="); 1170 PXOPT_COPY_F32(config->args, where, "-exp_time_max", "rawExp.exp_time", "<"); 1171 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "rawExp.sat_pixel_frac", ">="); 1172 PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "rawExp.sat_pixel_frac", "<"); 1173 PXOPT_COPY_F64(config->args, where, "-bg_min", "rawExp.bg", ">="); 1174 PXOPT_COPY_F64(config->args, where, "-bg_max", "rawExp.bg", "<"); 1175 PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "rawExp.bg_stdev", ">="); 1176 PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "rawExp.bg_stdev", "<"); 1177 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "rawExp.bg_mean_stdev", ">="); 1178 PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "rawExp.bg_mean_stdev", "<"); 1179 PXOPT_COPY_F64(config->args, where, "-alt_min", "rawExp.alt", ">="); 1180 PXOPT_COPY_F64(config->args, where, "-alt_max", "rawExp.alt", "<"); 1181 PXOPT_COPY_F64(config->args, where, "-az_min", "rawExp.az", ">="); 1182 PXOPT_COPY_F64(config->args, where, "-az_max", "rawExp.az", "<"); 1183 PXOPT_COPY_F64(config->args, where, "-ccd_temp_min", "rawExp.ccd_temp", ">="); 1184 PXOPT_COPY_F64(config->args, where, "-ccd_temp_max", "rawExp.ccd_temp", "<"); 1185 PXOPT_COPY_F64(config->args, where, "-posang_min", "rawExp.posang", ">="); 1186 PXOPT_COPY_F64(config->args, where, "-posang_max", "rawExp.posang", "<"); 1187 PXOPT_COPY_STR(config->args, where, "-object", "rawExp.object", "=="); 1188 PXOPT_COPY_F32(config->args, where, "-solang_min", "rawExp.solang", ">="); 1189 PXOPT_COPY_F32(config->args, where, "-solang_max", "rawExp.solang", "<"); 1191 1190 PXOPT_COPY_S16(config->args, where, "-code", "warpSkyfile.fault", "=="); 1192 1191
Note:
See TracChangeset
for help on using the changeset viewer.
