IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2009, 12:48:19 PM (17 years ago)
Author:
Paul Price
Message:

Adding quality flag to raw, chip, cam, warp, stack, diff product tables. Renaming '-code' flag in the ippTools to '-fault' (clearer meaning, reduces confusion between fault code and quality code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippTools/src/camtool.c

    r23310 r23532  
    465465
    466466    PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false);
    467     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     467    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     468    PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false);
    468469
    469470    // generate restrictions
     
    530531        zpt_lq,
    531532        zpt_uq,
    532         fwhm_major,
    533         fwhm_major_lq,
    534         fwhm_major_uq,
    535         fwhm_minor,
    536         fwhm_minor_lq,
    537         fwhm_minor_uq,
    538 
    539         iq_fwhm_major,
    540         iq_fwhm_major_err,
    541         iq_fwhm_minor,
    542         iq_fwhm_minor_err,
     533        fwhm_major,
     534        fwhm_major_lq,
     535        fwhm_major_uq,
     536        fwhm_minor,
     537        fwhm_minor_lq,
     538        fwhm_minor_uq,
     539
     540        iq_fwhm_major,
     541        iq_fwhm_major_err,
     542        iq_fwhm_minor,
     543        iq_fwhm_minor_err,
    543544
    544545        iq_m2,
     
    573574        n_astrom,
    574575        path_base,
    575         code
     576        fault,
     577        quality
    576578        );
    577579
     
    596598
    597599    // NULL for end_stage means go as far as possible
    598     // EAM : skip here if code != 0
     600    // EAM : skip here if fault != 0
    599601    // Also, we can run fake even if tess_id is not defined
    600     if (code || (pendingRow->end_stage && psStrcasestr(pendingRow->end_stage, "cam"))) {
     602    if (fault || (pendingRow->end_stage && psStrcasestr(pendingRow->end_stage, "cam"))) {
    601603        psFree(row);
    602604        psFree(pendingRow);
     
    723725    pxcamGetSearchArgs (config, where);
    724726    PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "==");
    725     PXOPT_COPY_S16(config->args, where, "-code", "camProcessedExp.fault", "==");
     727    PXOPT_COPY_S16(config->args, where, "-fault", "camProcessedExp.fault", "==");
     728    PXOPT_COPY_S16(config->args, where, "-quality", "camProcessedExp.quality", "==");
    726729
    727730    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     
    811814    PS_ASSERT_PTR_NON_NULL(config, false);
    812815
    813     PXOPT_LOOKUP_S16(code, config->args, "-code", true, false);
     816    PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
    814817
    815818    psMetadata *where = psMetadataAlloc();
     
    819822    PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "==");
    820823
    821     if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, code)) {
     824    if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, fault)) {
    822825        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    823826        psFree (where);
     
    10921095    char sqlFilename[80];
    10931096  } ExportTable;
    1094  
     1097
    10951098  int numExportTables = 2;
    10961099
     
    11721175
    11731176  PS_ASSERT_PTR_NON_NULL(config, NULL);
    1174  
     1177
    11751178  PXOPT_LOOKUP_STR(infile, config->args, "-infile", true,  false);
    11761179
     
    11831186  psAssert (item, "entry not in input?");
    11841187  psAssert (item->type == PS_DATA_METADATA_MULTI, "entry not multi?");
    1185  
     1188
    11861189  psMetadataItem *entry = psListGet (item->data.list, 0);
    11871190  assert (entry);
     
    11921195  // fprintf (stdout, "---- cam run ----\n");
    11931196  // psMetadataPrint (stderr, entry->data.md, 1);
    1194  
     1197
    11951198  item = psMetadataLookup (input, "camProcessedImfile");
    11961199  psAssert (item, "entry not in input?");
Note: See TracChangeset for help on using the changeset viewer.