IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2013, 5:07:02 PM (13 years ago)
Author:
eugene
Message:

make the warp mode (science / background) an argument to TransformReadout, not a test of a metadata in argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpTransformReadout.c

    r35535 r35537  
    1616 * NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT
    1717 */
    18 bool pswarpTransformReadout(pmReadout *output, pmReadout *input, pmConfig *config)
     18bool pswarpTransformReadout(pmReadout *output, pmReadout *input, pmConfig *config, bool backgroundWarp)
    1919{
    2020    // XXX this implementation currently ignores the use of the region
     
    4747    }
    4848    psAssert(mdok, "MASK.INPUT was not defined");
    49 
    50     bool backgroundWarp = psMetadataLookupBool(NULL,config->arguments,"BACKGROUND_WARPING");
    5149
    5250    if (!input->covariance) {
     
    208206    psFree(interp);
    209207
    210     if (goodPixels > 0 && psMetadataLookupBool(&mdok, recipe, "SOURCES")) {
    211       if (!psMetadataLookupBool(NULL,config->arguments,"BACKGROUND_WARPING")) {
    212         if (!pswarpTransformSources(output, input, config)) {
    213           psError(psErrorCodeLast(), false, "Unable to interpolate image.");
    214           return false;
     208    if (goodPixels > 0 && !backgroundWarp && psMetadataLookupBool(&mdok, recipe, "SOURCES")) {
     209        if (!pswarpTransformSources(output, input, config)) {
     210            psError(psErrorCodeLast(), false, "Unable to transform sources.");
     211            return false;
    215212        }
    216       }
    217213    }
    218214
Note: See TracChangeset for help on using the changeset viewer.