Changeset 15016 for trunk/psModules/src/objects/pmPSF.c
- Timestamp:
- Sep 25, 2007, 12:05:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSF.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF.c
r15004 r15016 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.3 0$ $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 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 160 160 psf->psfTrendStats = psMemIncrRefCounter (options->stats); 161 161 162 // the order of the PSF parameter (X,Y) fits is determined by the psfTrendMask polynomial163 // (user-specified as in the recipe). the masks of psfTrendMask are applied to each164 // 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 fitted166 // 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. 168 168 169 169 psImageBinning *binning = psImageBinningAlloc(); … … 172 172 binning->nXfine = options->psfFieldNx; 173 173 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 174 178 if (options->psfTrendMode == PM_TREND_MAP) { 175 179 psImageBinningSetScale (binning, PS_IMAGE_BINNING_CENTER); … … 177 181 } 178 182 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; 183 191 184 192 // define the parameter trends
Note:
See TracChangeset
for help on using the changeset viewer.
