IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2010, 9:45:07 PM (15 years ago)
Author:
watersc1
Message:

Merge of czw_branch/20100817 into trunk. This includes the non-linearity correction application code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppImage/src/ppImageOptions.c

    r28043 r29833  
    88{
    99    psFree(options->overscan);
    10     psFree(options->nonLinearData);
    11     psFree(options->nonLinearSource);
     10    // psFree(options->nonLinearData);
     11    // psFree(options->nonLinearSource);
    1212}
    1313
     
    130130        psMetadataItem *dataItem = psMetadataLookup(recipe, "NONLIN.DATA");
    131131        if (! dataItem) {
    132             psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to "
    133                      "find NONLIN.DATA in recipe %s.", RECIPE_NAME);
     132            psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.DATA in recipe %s.", RECIPE_NAME);
    134133            exit(EXIT_FAILURE);
    135134        }
     
    147146            // This is a menu; we need the key
    148147          case PS_DATA_METADATA:
    149             {
    150                 bool status;
    151                 options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE");
    152                 if (! status || ! options->nonLinearSource) {
    153                     psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to "
    154                             "find NONLIN.SOURCE in recipe %s.", RECIPE_NAME);
    155                     exit(EXIT_FAILURE);
    156                 }
    157             }
     148            options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE");
     149            if (! status || ! options->nonLinearSource) {
     150                psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.SOURCE in recipe %s.", RECIPE_NAME);
     151                exit(EXIT_FAILURE);
     152            }
    158153            break;
    159154          default:
    160             psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but "
    161                     "NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME);
     155            psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME);
    162156            exit(EXIT_FAILURE);
    163157        }
Note: See TracChangeset for help on using the changeset viewer.