Changeset 13937 for trunk/ippTools/src
- Timestamp:
- Jun 21, 2007, 2:10:11 PM (19 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 6 edited
-
camtool.c (modified) (5 diffs)
-
camtoolConfig.c (modified) (1 diff)
-
chiptool.c (modified) (4 diffs)
-
chiptoolConfig.c (modified) (5 diffs)
-
dettool.c (modified) (11 diffs)
-
dettoolConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r13702 r13937 184 184 } 185 185 186 psString re cipe = psMetadataLookupStr(&status, config->args, "-set_recipe");187 if (!status) { 188 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_re cipe");186 psString reduction = psMetadataLookupStr(&status, config->args, "-set_reduction"); 187 if (!status) { 188 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_reduction"); 189 189 return false; 190 190 } … … 237 237 238 238 // would could do this "all in the database" if we didn't want the option 239 // of changing the label/re cipe/expgroup/dvodb/etc. So we're pulling the239 // of changing the label/reduction/expgroup/dvodb/etc. So we're pulling the 240 240 // data out so we have the option of changing these values or leaving the 241 241 // old values in place (i.e., passing the values through). … … 257 257 workdir ? workdir : row->workdir, 258 258 label ? label : row->label, 259 re cipe ? recipe : row->recipe,259 reduction ? reduction : row->reduction, 260 260 expgroup ? expgroup : row->expgroup, 261 261 dvodb ? dvodb : row->dvodb … … 617 617 pendingRow->workdir, 618 618 pendingRow->label, 619 pendingRow->re cipe,619 pendingRow->reduction, 620 620 pendingRow->expgroup, 621 621 pendingRow->dvodb, … … 628 628 zp_mean, 629 629 zp_stdev, 630 fwhm,631 fwhm_range,632 n_stars,633 n_extended,634 n_cr,635 n_astrom,630 fwhm, 631 fwhm_range, 632 n_stars, 633 n_extended, 634 n_cr, 635 n_astrom, 636 636 path_base, 637 637 code -
trunk/ippTools/src/camtoolConfig.c
r13710 r13937 96 96 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label", 0, 97 97 "define label", NULL); 98 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_re cipe", 0,99 "define re cipe", NULL);98 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_reduction", 0, 99 "define reduction class", NULL); 100 100 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_expgroup", 0, 101 101 "define exposure group", NULL); -
trunk/ippTools/src/chiptool.c
r13891 r13937 173 173 } 174 174 175 psString re cipe = psMetadataLookupStr(&status, config->args, "-set_recipe");176 if (!status) { 177 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_re cipe");175 psString reduction = psMetadataLookupStr(&status, config->args, "-set_reduction"); 176 if (!status) { 177 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_reduction"); 178 178 return false; 179 179 } … … 243 243 244 244 // queue the exp 245 if (!chipQueueExpTag(config, exp_tag, workdir, label, re cipe, expgroup, dvodb)) {245 if (!chipQueueExpTag(config, exp_tag, workdir, label, reduction, expgroup, dvodb)) { 246 246 if (!psDBRollback(config->dbh)) { 247 247 psError(PS_ERR_UNKNOWN, false, "database error"); … … 804 804 processedExp->workdir, 805 805 processedExp->label, 806 processedExp->re cipe,806 processedExp->reduction, 807 807 processedExp->expgroup, 808 808 processedExp->dvodb … … 999 999 pendingExp->workdir, 1000 1000 pendingExp->label, 1001 pendingExp->re cipe,1001 pendingExp->reduction, 1002 1002 pendingExp->expgroup, 1003 1003 pendingExp->dvodb -
trunk/ippTools/src/chiptoolConfig.c
r13649 r13937 94 94 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label", 0, 95 95 "define label", NULL); 96 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_re cipe", 0,97 "define re cipe", NULL);96 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_reduction", 0, 97 "define reduction class", NULL); 98 98 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_expgroup", 0, 99 99 "define exposure group", NULL); … … 115 115 "search by camera of interest", NULL); 116 116 psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-filter", 0, 117 "search by filter of interest", NULL); 117 "search by filter of interest", NULL); 118 118 psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-uri", 0, 119 119 "search by URL", NULL); … … 122 122 psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-simple", 0, 123 123 "use the simple output format", false); 124 124 125 125 // -addprocessedimfile 126 126 psMetadata *addprocessedimfileArgs = psMetadataAlloc(); … … 188 188 "define camera of interest", NULL); 189 189 psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-filter", 0, 190 "define filter of interest", NULL); 190 "define filter of interest", NULL); 191 191 psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-uri", 0, 192 192 "define URL", NULL); … … 226 226 psMetadataAddStr(blockArgs, PS_LIST_TAIL, "-label", 0, 227 227 "name of a label to mask out (required)", NULL); 228 228 229 229 // -masked 230 230 psMetadata *maskedArgs = psMetadataAlloc(); 231 231 psMetadataAddBool(maskedArgs, PS_LIST_TAIL, "-simple", 0, 232 232 "use the simple output format", false); 233 233 234 234 // -unblock 235 235 psMetadata *unblockArgs = psMetadataAlloc(); -
trunk/ippTools/src/dettool.c
r13849 r13937 449 449 } 450 450 451 psString reduction = psMetadataLookupStr(&status, config->args, "-reduction"); 452 if (!status) { 453 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -reduction"); 454 return false; 455 } 456 451 457 psString label = psMetadataLookupStr(&status, config->args, "-label"); 452 458 if (!status) { … … 528 534 // XXX det_id 529 535 detRunInsert(config->dbh, 530 0, 531 0, 532 det_type, 533 mode, 534 "run", 535 filelevel, 536 workdir, 537 camera, 538 telescope, 539 exp_type, 540 filter, 541 airmass_min, 542 airmass_max, 543 exp_time_min, 544 exp_time_max, 545 ccd_temp_min, 546 ccd_temp_max, 547 posang_min, 548 posang_max, 549 registered, 550 time_begin, 551 time_end, 552 use_begin, 553 use_end, 554 solang_min, 555 solang_max, 556 label, 557 0 // parent 536 0, 537 0, 538 det_type, 539 mode, 540 "run", 541 filelevel, 542 workdir, 543 camera, 544 telescope, 545 exp_type, 546 reduction, 547 filter, 548 airmass_min, 549 airmass_max, 550 exp_time_min, 551 exp_time_max, 552 ccd_temp_min, 553 ccd_temp_max, 554 posang_min, 555 posang_max, 556 registered, 557 time_begin, 558 time_end, 559 use_begin, 560 use_end, 561 solang_min, 562 solang_max, 563 label, 564 0 // parent 558 565 ); 559 566 psFree(registered); … … 1172 1179 } 1173 1180 1181 psString reduction = psMetadataLookupStr(&status, config->args, "-reduction"); 1182 if (!status) { 1183 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -reduction"); 1184 return false; 1185 } 1186 1174 1187 psString label = psMetadataLookupStr(&status, config->args, "-label"); 1175 1188 if (!status) { … … 1251 1264 // XXX det_id 1252 1265 detRunInsert(config->dbh, 1253 0, // det_id 1254 0, // iteration 1255 det_type, 1256 mode, 1257 "run", // state 1258 filelevel, 1259 workdir, 1260 camera, 1261 telescope, 1262 "NA", 1263 filter, 1264 airmass_min, 1265 airmass_max, 1266 exp_time_min, 1267 exp_time_max, 1268 ccd_temp_min, 1269 ccd_temp_max, 1270 posang_min, 1271 posang_max, 1272 registered, 1273 time_begin, 1274 time_end, 1275 use_begin, 1276 use_end, 1277 solang_min, 1278 solang_max, 1279 label, 1280 0 // parent 1266 0, // det_id 1267 0, // iteration 1268 det_type, 1269 mode, 1270 "run", // state 1271 filelevel, 1272 workdir, 1273 camera, 1274 telescope, 1275 "NA", 1276 reduction, 1277 filter, 1278 airmass_min, 1279 airmass_max, 1280 exp_time_min, 1281 exp_time_max, 1282 ccd_temp_min, 1283 ccd_temp_max, 1284 posang_min, 1285 posang_max, 1286 registered, 1287 time_begin, 1288 time_end, 1289 use_begin, 1290 use_end, 1291 solang_min, 1292 solang_max, 1293 label, 1294 0 // parent 1281 1295 ); 1282 1296 psFree(registered); … … 1671 1685 psFree(use_end); 1672 1686 } 1687 } 1688 1689 psString reduction = psMetadataLookupStr(&status, config->args, "-set_reduction"); 1690 if (!status) { 1691 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_reduction"); 1692 return false; 1693 } 1694 if (reduction) { 1695 psFree(detRun->reduction); 1696 detRun->reduction = psStringCopy(reduction); 1673 1697 } 1674 1698 … … 2115 2139 " detRun.det_type," 2116 2140 " detRun.workdir," 2141 " detRun.reduction," 2117 2142 " rawImfile.*," 2118 2143 " rawExp.camera" … … 2862 2887 " detRun.det_type,\n" 2863 2888 " detRun.workdir,\n" 2889 " detRun.reduction,\n" 2864 2890 " detProcessedImfile.class_id,\n" 2865 2891 " rawExp.camera\n" … … 2987 3013 // add the two required restrictions: detRun.state and detRun.mode 2988 3014 if ((value = psMetadataLookupStr(&status, config->args, "-select_state"))) { 2989 psStringAppend(&query, " detRun.state = '%s'", value);3015 psStringAppend(&query, " detRun.state = '%s'", value); 2990 3016 } else { 2991 psStringAppend(&query, " detRun.state = 'run'");3017 psStringAppend(&query, " detRun.state = 'run'"); 2992 3018 } 2993 3019 if ((value = psMetadataLookupStr(&status, config->args, "-select_mode"))) { 2994 psStringAppend(&query, " AND detRun.mode = '%s'", value);3020 psStringAppend(&query, " AND detRun.mode = '%s'", value); 2995 3021 } else { 2996 psStringAppend(&query, " AND detRun.mode = 'master'");3022 psStringAppend(&query, " AND detRun.mode = 'master'"); 2997 3023 } 2998 3024 … … 4407 4433 " detRun.mode,\n" 4408 4434 " detRun.workdir,\n" 4435 " detRun.reduction,\n" 4409 4436 " detProcessedImfile.exp_tag,\n" 4410 4437 " detProcessedImfile.class_id,\n" … … 4444 4471 " detRun.mode,\n" 4445 4472 " detRun.workdir,\n" 4473 " detRun.reduction,\n" 4446 4474 " rawImfile.exp_tag,\n" 4447 4475 " rawImfile.class_id,\n" … … 6774 6802 6775 6803 if (!detRunInsert(config->dbh, 6776 0, // det_id 6777 0, // the iteration is fixed at 0 6778 det_type, 6779 mode, 6780 "reg", // state 6781 filelevel, 6782 workdir, 6783 camera, 6784 telescope, 6785 exp_type, 6786 filter, 6787 airmass_min, 6788 airmass_max, 6789 exp_time_min, 6790 exp_time_max, 6791 ccd_temp_min, 6792 ccd_temp_max, 6793 posang_min, 6794 posang_max, 6795 registered, 6796 time_begin, 6797 time_end, 6798 use_begin, 6799 use_end, 6800 solang_min, 6801 solang_max, 6802 label, // label 6803 parent ? (psS64)atoll(parent) : 0 6804 )) { 6804 0, // det_id 6805 0, // the iteration is fixed at 0 6806 det_type, 6807 mode, 6808 "reg", // state 6809 filelevel, 6810 workdir, 6811 camera, 6812 telescope, 6813 exp_type, 6814 NULL, 6815 filter, 6816 airmass_min, 6817 airmass_max, 6818 exp_time_min, 6819 exp_time_max, 6820 ccd_temp_min, 6821 ccd_temp_max, 6822 posang_min, 6823 posang_max, 6824 registered, 6825 time_begin, 6826 time_end, 6827 use_begin, 6828 use_end, 6829 solang_min, 6830 solang_max, 6831 label, // label 6832 parent ? (psS64)atoll(parent) : 0 6833 )) { 6805 6834 psError(PS_ERR_UNKNOWN, false, "database error"); 6806 6835 // rollback -
trunk/ippTools/src/dettoolConfig.c
r13849 r13937 115 115 psMetadataAddStr(definebytagArgs, PS_LIST_TAIL, "-use_end", 0, 116 116 "end of detrend run applicable peroid", NULL); 117 psMetadataAddStr(definebytagArgs, PS_LIST_TAIL, "-reduction", 0, 118 "define reduction class for processing", NULL); 117 119 psMetadataAddStr(definebytagArgs, PS_LIST_TAIL, "-label", 0, 118 120 "define detrun label", NULL); … … 204 206 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-pretend", 0, 205 207 "print the exposures that would be included in the detrend run and exit", false); 208 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-reduction", 0, 209 "define reduction class for processing", NULL); 206 210 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-label", 0, 207 211 "define detrun label", NULL); … … 259 263 psMetadataAddStr(definebydetrunArgs, PS_LIST_TAIL, "-filter_input_end", 0, 260 264 "filter input detrun exp to be in this peroid", NULL); 265 psMetadataAddStr(definebydetrunArgs, PS_LIST_TAIL, "-set_reduction", 0, 266 "define reduction class for processing", NULL); 261 267 psMetadataAddStr(definebydetrunArgs, PS_LIST_TAIL, "-set_label", 0, 262 268 "define detrun label", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
