Changeset 23532 for branches/pap/ippTools/src/chiptool.c
- Timestamp:
- Mar 25, 2009, 12:48:19 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ippTools/src/chiptool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippTools/src/chiptool.c
r23418 r23532 409 409 PXOPT_LOOKUP_F32(dtime_script, config->args, "-dtime_script", false, false); 410 410 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 411 PXOPT_LOOKUP_F32(n_stars, config->args, "-n_stars", false, false);412 PXOPT_LOOKUP_F32(n_psfstars, config->args, "-n_psfstars", false, false);413 PXOPT_LOOKUP_F32(n_iqstars, config->args, "-n_iqstars", false, false);414 PXOPT_LOOKUP_F32(n_extended, config->args, "-n_extended", false, false);415 PXOPT_LOOKUP_F32(n_cr, config->args, "-n_cr", false, false);416 PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false);417 PXOPT_LOOKUP_BOOL(magicked, config->args, "-magicked", false);411 PXOPT_LOOKUP_F32(n_stars, config->args, "-n_stars", false, false); 412 PXOPT_LOOKUP_F32(n_psfstars, config->args, "-n_psfstars", false, false); 413 PXOPT_LOOKUP_F32(n_iqstars, config->args, "-n_iqstars", false, false); 414 PXOPT_LOOKUP_F32(n_extended, config->args, "-n_extended", false, false); 415 PXOPT_LOOKUP_F32(n_cr, config->args, "-n_cr", false, false); 416 PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false); 417 PXOPT_LOOKUP_BOOL(magicked, config->args, "-magicked", false); 418 418 419 419 // default values 420 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); 420 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 421 PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false); 421 422 422 423 if (!psDBTransaction(config->dbh)) { … … 449 450 fwhm_minor_uq, 450 451 451 iq_fwhm_major,452 iq_fwhm_major_err,453 iq_fwhm_minor,454 iq_fwhm_minor_err,455 456 iq_m2,457 iq_m2_err,458 iq_m2_lq,459 iq_m2_uq,460 461 iq_m2c,462 iq_m2c_err,463 iq_m2c_lq,464 iq_m2c_uq,465 466 iq_m2s,467 iq_m2s_err,468 iq_m2s_lq,469 iq_m2s_uq,470 471 iq_m3,472 iq_m3_err,473 iq_m3_lq,474 iq_m3_uq,475 476 iq_m4,477 iq_m4_err,478 iq_m4_lq,479 iq_m4_uq,452 iq_fwhm_major, 453 iq_fwhm_major_err, 454 iq_fwhm_minor, 455 iq_fwhm_minor_err, 456 457 iq_m2, 458 iq_m2_err, 459 iq_m2_lq, 460 iq_m2_uq, 461 462 iq_m2c, 463 iq_m2c_err, 464 iq_m2c_lq, 465 iq_m2c_uq, 466 467 iq_m2s, 468 iq_m2s_err, 469 iq_m2s_lq, 470 iq_m2s_uq, 471 472 iq_m3, 473 iq_m3_err, 474 iq_m3_lq, 475 iq_m3_uq, 476 477 iq_m4, 478 iq_m4_err, 479 iq_m4_lq, 480 iq_m4_uq, 480 481 481 482 dtime_detrend, … … 490 491 n_cr, 491 492 path_base, 492 code, 493 fault, 494 quality, 493 495 magicked 494 496 )) { … … 611 613 PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE"); 612 614 PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "=="); 613 PXOPT_COPY_S16(config->args, where, "-code", "chipProcessedImfile.fault", "=="); 615 PXOPT_COPY_S16(config->args, where, "-fault", "chipProcessedImfile.fault", "=="); 616 PXOPT_COPY_S16(config->args, where, "-quality", "chipProcessedImfile.quality", "=="); 614 617 615 618 if (!psListLength(where->list) … … 652 655 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 653 656 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 654 PXOPT_LOOKUP_S16( code, config->args, "-code", true, false);655 656 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, code)) {657 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 658 659 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault)) { 657 660 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 658 661 return false; … … 1273 1276 char sqlFilename[80]; 1274 1277 } ExportTable; 1275 1278 1276 1279 int numExportTables = 3; 1277 1280 … … 1353 1356 { 1354 1357 unsigned int nFail; 1355 1358 1356 1359 int numImportTables = 2; 1357 1360 1358 1361 char tables[2] [80] = {"chipImfile", "chipProcessedImfile"}; 1359 1362 1360 1363 PS_ASSERT_PTR_NON_NULL(config, NULL); 1361 1364 1362 1365 PXOPT_LOOKUP_STR(infile, config->args, "-infile", true, false); 1363 1366 … … 1379 1382 // fprintf (stdout, "---- chip run ----\n"); 1380 1383 // psMetadataPrint (stderr, entry->data.md, 1); 1381 1384 1382 1385 for (int i = 0; i < numImportTables; i++) { 1383 1386 psMetadataItem *item = psMetadataLookup (input, tables[i]); 1384 1387 psAssert (item, "entry not in input?"); 1385 1388 psAssert (item->type == PS_DATA_METADATA_MULTI, "entry not multi?"); 1386 1389 1387 1390 switch (i) { 1388 1391 case 0: … … 1398 1401 } 1399 1402 break; 1400 1403 1401 1404 case 1: 1402 1405 for (int i = 0; i < item->data.list->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
