IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2007, 12:05:05 PM (19 years ago)
Author:
eugene
Message:

handle zero psf stars; user parameters for trend Nx,Ny; some code re-org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSF.c

    r15004 r15016  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-09-25 04:49:13 $
     8 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-09-25 22:05:05 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    160160    psf->psfTrendStats = psMemIncrRefCounter (options->stats);
    161161
    162     // the order of the PSF parameter (X,Y) fits is determined by the psfTrendMask polynomial
    163     // (user-specified as in the recipe). the masks of psfTrendMask are applied to each
    164     // parameter.  if psfTrendMask is NULL, these polynomials are not allocated.  in this case,
    165     // the user must set them by hand (as in pmPSFfromMD).  the parameters which are not fitted
    166     // are left as NULL.  these are selected by testing for them by the named values (
    167     // PM_PAR_XPOS, etc)
     162    // the psf parameters may have 2D variations represented as either a polynomial (ordinary
     163    // or chebychev) or as an image map.  The size of the image map is determined by pmPSFtry
     164    // by minimizing the scatter in the fitted data and the rms error in the complete image
     165    // map.  In this case, the user-supplied options of psfTrendNx and psfTrendNy are the
     166    // maximum value used for these axes.  For the polynomial terms, the order is not currently
     167    // set, dynamically.  The value of psfTrendNx and psfTrendNy are used.
    168168
    169169    psImageBinning *binning = psImageBinningAlloc();
     
    172172    binning->nXfine = options->psfFieldNx;
    173173    binning->nYfine = options->psfFieldNy;
     174
     175    // for polynomial representations, nXruff, nYruff are the order number, and may be 0.
     176    // in this case, we cannot set the psImageBinning scale because 0 would be invalid.  these
     177    // elements are only used by the image map representation
    174178    if (options->psfTrendMode == PM_TREND_MAP) {
    175179        psImageBinningSetScale (binning, PS_IMAGE_BINNING_CENTER);
     
    177181    }
    178182
    179     psf->fieldNx = options->psfFieldNx;
    180     psf->fieldNy = options->psfFieldNy;
    181     psf->fieldXo = options->psfFieldXo;
    182     psf->fieldYo = options->psfFieldYo;
     183    // trendNx & trendNy are used in pmPSFtry as the max for these values
     184    psf->psfTrendMode = options->psfTrendMode;
     185    psf->trendNx      = options->psfTrendNx;
     186    psf->trendNy      = options->psfTrendNy;
     187    psf->fieldNx      = options->psfFieldNx;
     188    psf->fieldNy      = options->psfFieldNy;
     189    psf->fieldXo      = options->psfFieldXo;
     190    psf->fieldYo      = options->psfFieldYo;
    183191
    184192    // define the parameter trends
Note: See TracChangeset for help on using the changeset viewer.