IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 5:03:33 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMaskReadout.c

    r21183 r21366  
    11# include "psphotInternal.h"
    22
    3 // generate mask and weight if not defined, additional mask for restricted subregion
    4 bool psphotSetMaskAndWeight (pmConfig *config, pmReadout *readout, psMetadata *recipe) {
     3// generate mask and variance if not defined, additional mask for restricted subregion
     4bool psphotSetMaskAndVariance (pmConfig *config, pmReadout *readout, psMetadata *recipe) {
    55
    66    bool status;
     
    1515    psMetadataAddImageMask (recipe, PS_LIST_TAIL, "MASK.BAD", PS_META_REPLACE, "user-defined mask", maskBad);
    1616
    17     // generate mask & weight images if they don't already exit
     17    // generate mask & variance images if they don't already exit
    1818    if (!readout->mask) {
    1919        if (!pmReadoutGenerateMask(readout, maskSat, maskBad)) {
     
    2222        }
    2323    }
    24     if (!readout->weight) {
    25         if (!pmReadoutGenerateWeight(readout, true)) {
    26             psError (PSPHOT_ERR_CONFIG, false, "trouble creating weight");
     24    if (!readout->variance) {
     25        if (!pmReadoutGenerateVariance(readout, true)) {
     26            psError (PSPHOT_ERR_CONFIG, false, "trouble creating variance");
    2727            return false;
    2828        }
     
    4949        psphotSaveImage (NULL, readout->image,  "image.fits");
    5050        psphotSaveImage (NULL, readout->mask,   "mask.fits");
    51         psphotSaveImage (NULL, readout->weight, "weight.fits");
     51        psphotSaveImage (NULL, readout->variance, "variance.fits");
    5252    }
    5353
Note: See TracChangeset for help on using the changeset viewer.