Changeset 23688 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/chiptool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/chiptool.c
r23657 r23688 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 )) { … … 618 620 PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE"); 619 621 PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "=="); 620 PXOPT_COPY_S16(config->args, where, "- code", "chipProcessedImfile.fault", "==");622 PXOPT_COPY_S16(config->args, where, "-fault", "chipProcessedImfile.fault", "=="); 621 623 622 624 if (!psListLength(where->list) … … 659 661 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 660 662 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 661 PXOPT_LOOKUP_S16( code, config->args, "-code", true, false);662 663 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, code)) {663 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 664 665 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault)) { 664 666 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 665 667 return false; … … 1280 1282 char sqlFilename[80]; 1281 1283 } ExportTable; 1282 1284 1283 1285 int numExportTables = 3; 1284 1286 … … 1360 1362 { 1361 1363 unsigned int nFail; 1362 1364 1363 1365 int numImportTables = 2; 1364 1366 1365 1367 char tables[2] [80] = {"chipImfile", "chipProcessedImfile"}; 1366 1368 1367 1369 PS_ASSERT_PTR_NON_NULL(config, NULL); 1368 1370 1369 1371 PXOPT_LOOKUP_STR(infile, config->args, "-infile", true, false); 1370 1372 … … 1386 1388 // fprintf (stdout, "---- chip run ----\n"); 1387 1389 // psMetadataPrint (stderr, entry->data.md, 1); 1388 1390 1389 1391 for (int i = 0; i < numImportTables; i++) { 1390 1392 psMetadataItem *item = psMetadataLookup (input, tables[i]); 1391 1393 psAssert (item, "entry not in input?"); 1392 1394 psAssert (item->type == PS_DATA_METADATA_MULTI, "entry not multi?"); 1393 1395 1394 1396 switch (i) { 1395 1397 case 0: … … 1405 1407 } 1406 1408 break; 1407 1409 1408 1410 case 1: 1409 1411 for (int i = 0; i < item->data.list->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
