IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20771


Ignore:
Timestamp:
Nov 16, 2008, 4:41:29 PM (17 years ago)
Author:
eugene
Message:

free the detrend images after they are used; drop the psphot.background model images if they are used

File:
1 edited

Legend:

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

    r20444 r20771  
    9595                    ESCAPE("Unable to detrend readout");
    9696                }
     97
     98                // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
     99                if (!ppImageDetrendFree (config, view)) {
     100                    ESCAPE("Unable to free detrend images");
     101                }
    97102            }
    98103
     
    100105                ppImageDetrendRecord(cell, config, options, view);
    101106            }
    102         }
     107            // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
     108            if (!ppImageDetrendFree (config, view)) {
     109                ESCAPE("Unable to free detrend images");
     110            }
     111        }
     112        // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
     113        if (!ppImageDetrendFree (config, view)) {
     114            ESCAPE("Unable to free detrend images");
     115        }
    103116
    104117        // Apply the fringe correction
     
    108121            }
    109122        }
     123        // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
     124        if (!ppImageFringeFree (config, view)) {
     125            ESCAPE("Unable to free fringe images");
     126        }
    110127
    111128        // measure various statistics for this image
     
    134151            }
    135152        }
     153
     154        // these may be used by ppImageSubtractBackground.
     155        // if these are defined as internal files, drop them here
     156        status = true;
     157        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");
     158        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV");
     159        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
     160        if (!status) {
     161            psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files");
     162            psFree (view);
     163            return false;
     164        }
    136165
    137166        // binning (used for display) must take place after the background is replaced, if desired
Note: See TracChangeset for help on using the changeset viewer.