IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7716


Ignore:
Timestamp:
Jun 27, 2006, 6:12:57 PM (20 years ago)
Author:
Paul Price
Message:

Renaming pmReadoutSet{Mask,Weight} as pmReadoutGenerate{Mask,Weight} following change in psModules.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendMask.c

    r7508 r7716  
    1616
    1717    if (mask->image->type.type != PS_TYPE_MASK) {
    18         image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);
     18        image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);
    1919    } else {
    20         image = psMemIncrRefCounter (mask->image);
     20        image = psMemIncrRefCounter (mask->image);
    2121    }
    2222
     
    3434
    3535
    36 // XXX this function needs to use pmReadoutSetMask to construct the initial mask
     36// XXX this function needs to use pmReadoutGenerateMask to construct the initial mask
    3737// then the pixels will correspond and pmMaskBadPixels can be correctly applied.
    38 // this function should not have to lookup the value of CELL.SATURATION, nor should it have to 
    39 // apply it. 
     38// this function should not have to lookup the value of CELL.SATURATION, nor should it have to
     39// apply it.
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r7585 r7716  
    1212
    1313    // create the target mask and weight images
    14     pmReadoutSetMaskWeight (input);
     14    pmReadoutGenerateMaskWeight (input);
    1515
    1616    // apply the externally supplied mask to the input->mask pixels
    1717    if (options->doMask) {
    1818        pmReadout *mask = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.MASK");
    19         pmMaskBadPixels (input, mask, options->maskValue);
     19        pmMaskBadPixels (input, mask, options->maskValue);
    2020        // ppImageDetrendMask(input, mask);
    2121    }
     
    4040    // Bias, dark and overscan subtraction are all merged.
    4141    if (options->doBias || options->doDark || options->doOverscan) {
    42         if (!ppImageDetrendBias(input, bias, dark, options)) {
    43             return false;
    44         }
     42        if (!ppImageDetrendBias(input, bias, dark, options)) {
     43            return false;
     44        }
    4545    }
    4646
    4747    // Flat-field correction (no options used?)
    4848    if (options->doFlat) {
    49         pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");
     49        pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");
    5050        if (!pmFlatField(input, flat)) {
    51             return false;
    52         }
     51            return false;
     52        }
    5353    }
    5454
  • trunk/psphot/src/psphotReadout.c

    r7638 r7716  
    1111    // XXX does this need to invoke I/O?
    1212    // XXX move this input the psphotImageLoop level?
    13     if (!pmReadoutSetMaskWeight (readout)) {
    14         return false;
     13    if (!pmReadoutGenerateMaskWeight (readout)) {
     14        return false;
    1515    }
    1616
    1717    // I have a valid mask, now mask in the analysis region of interest
    18     psphotMaskReadout (readout, recipe); 
     18    psphotMaskReadout (readout, recipe);
    1919
    2020    // run a single-model test if desired
     
    3838    // faint sources not classified?
    3939    if (!psphotRoughClass (sources, recipe)) {
    40         psFree (peaks);
    41         psFree (sources);
    42         psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image");
    43         pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");
    44         pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
    45         return false;
     40        psFree (peaks);
     41        psFree (sources);
     42        psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image");
     43        pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");
     44        pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
     45        return false;
    4646    }
    4747
     
    7373    // measure aperture photometry corrections
    7474    if (!psphotApResid (readout, sources, recipe, psf)) {
    75         psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
    76         return false;
     75        psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
     76        return false;
    7777    }
    7878
     
    8989    psphotSourceFreePixels (sources);
    9090
    91     // save the results of the analysis 
     91    // save the results of the analysis
    9292    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY,    "psphot sources", sources);
    9393    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER",  PS_DATA_METADATA, "header stats", header);
Note: See TracChangeset for help on using the changeset viewer.