IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28043 for trunk/pswarp


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:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/pswarp/src/Makefile.am

    r27126 r28043  
    3434        pswarpErrorCodes.c              \
    3535        pswarpMapGrid.c                 \
     36        pswarpMaskStats.c               \
    3637        pswarpMatchRange.c              \
    3738        pswarpParseCamera.c             \
  • trunk/pswarp/src/pswarp.h

    r28006 r28043  
    109109    );
    110110
     111bool pswarpMaskStats(const pmReadout *readout,
     112                     psMetadata *stats,
     113                     const pmConfig *config);
     114
     115
    111116/**
    112117 * define threads for this program
  • 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
  • trunk/pswarp/src/pswarpVersion.c

    r23806 r28043  
    8585    psString source  = pswarpSource();  // Software source
    8686
     87    psMetadataAddStr(header, PS_LIST_TAIL, "WARP_V", PS_META_REPLACE, NULL, PSWARP_VERSION);
     88   
    8789    psStringPrepend(&version, "pswarp version: ");
    8890    psStringPrepend(&source, "pswarp source: ");
Note: See TracChangeset for help on using the changeset viewer.