IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 19, 2010, 5:13:52 PM (16 years ago)
Author:
watersc1
Message:

Merging czw_branch (maskstats and software versions) back into the trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/pswarp/src/pswarpLoop.c

    r28010 r28043  
    266266        goto DONE;
    267267    }
    268 
     268    bool doStats = psMetadataLookupBool(&mdok,recipe,"MASK.STATS");
     269    if (doStats) {
     270      if (!pswarpMaskStats(output, stats, config)) {
     271        psError(psErrorCodeLast(), false, "Unable to calculate mask stats.");
     272        psFree(cells);
     273        psFree(view);
     274        goto DONE;
     275      }
     276    }
    269277    // Set covariance matrix for output
    270278    {
     
    332340
    333341    pswarpVersionHeader(hdu->header);
    334 
     342   
    335343    if (!pmAstromWriteWCS(hdu->header, outFPA, outChip, WCS_NONLIN_TOL)) {
    336344        psError(psErrorCodeLast(), false, "Unable to generate WCS header.");
     
    347355    pswarpFileActivation(config, detectorFiles, false);
    348356    pswarpFileActivation(config, independentFiles, false);
     357
    349358
    350359    // We need a new PSF model for the warped frame.  It would be good to generate this analytically, but
     
    421430        }
    422431    }
     432   
    423433
    424434    // Add MD5 information for readout
Note: See TracChangeset for help on using the changeset viewer.