IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/chiptool.c

    r23657 r23688  
    409409    PXOPT_LOOKUP_F32(dtime_script, config->args,   "-dtime_script", false, false);
    410410    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);
    418418
    419419    // 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);
    421422
    422423    if (!psDBTransaction(config->dbh)) {
     
    449450                                   fwhm_minor_uq,
    450451
    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,
    480481
    481482                                   dtime_detrend,
     
    490491                                   n_cr,
    491492                                   path_base,
    492                                    code,
     493                                   fault,
     494                                   quality,
    493495                                   magicked
    494496            )) {
     
    618620    PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE");
    619621    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", "==");
    621623
    622624    if (!psListLength(where->list)
     
    659661    PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
    660662    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)) {
    664666        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    665667        return false;
     
    12801282    char sqlFilename[80];
    12811283  } ExportTable;
    1282  
     1284
    12831285  int numExportTables = 3;
    12841286
     
    13601362{
    13611363  unsigned int nFail;
    1362  
     1364
    13631365  int numImportTables = 2;
    1364  
     1366
    13651367  char tables[2] [80] = {"chipImfile", "chipProcessedImfile"};
    13661368
    13671369  PS_ASSERT_PTR_NON_NULL(config, NULL);
    1368  
     1370
    13691371  PXOPT_LOOKUP_STR(infile, config->args, "-infile", true,  false);
    13701372
     
    13861388  // fprintf (stdout, "---- chip run ----\n");
    13871389  // psMetadataPrint (stderr, entry->data.md, 1);
    1388  
     1390
    13891391  for (int i = 0; i < numImportTables; i++) {
    13901392    psMetadataItem *item = psMetadataLookup (input, tables[i]);
    13911393    psAssert (item, "entry not in input?");
    13921394    psAssert (item->type == PS_DATA_METADATA_MULTI, "entry not multi?");
    1393  
     1395
    13941396    switch (i) {
    13951397      case 0:
     
    14051407        }
    14061408        break;
    1407        
     1409
    14081410      case 1:
    14091411        for (int i = 0; i < item->data.list->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.