IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2006, 8:01:02 PM (21 years ago)
Author:
Paul Price
Message:

Fixing flat field so that it only acts on the trim section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/detrend/pmFlatField.c

    r6062 r6076  
    2424 *  @author Ross Harman, MHPCC
    2525 *
    26  *  @version $Revision: 1.4.8.1.2.1 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-01-20 02:38:28 $
     26 *  @version $Revision: 1.4.8.1.2.2 $ $Name: not supported by cvs2svn $
     27 *  @date $Date: 2006-01-20 06:01:02 $
    2828 *
    2929 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6767    }
    6868
    69     inImage = in->image;
    70     flatImage = flat->image;
     69    // Get the TRIMSEC of each image
     70    {
     71        psRegion *trimsec = psMetadataLookupPtr(NULL, in->parent->concepts, "CELL.TRIMSEC");
     72        inImage = psImageSubset(in->image, *trimsec);
     73        trimsec = psMetadataLookupPtr(NULL, flat->parent->concepts, "CELL.TRIMSEC");
     74        flatImage = psImageSubset(flat->image, *trimsec);
     75    }
     76
    7177    if (inImage == NULL) {
    7278        psError( PS_ERR_BAD_PARAMETER_NULL, true,
Note: See TracChangeset for help on using the changeset viewer.