- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/pmPSFtryModel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c
-
- Property svn:ignore
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects/pmPSFtryModel.c
r34403 r36680 36 36 #include "pmSourceDiffStats.h" 37 37 #include "pmSourceSatstar.h" 38 #include "pmSourceLensing.h" 38 39 #include "pmSource.h" 39 40 #include "pmSourceFitModel.h" … … 111 112 112 113 // set the max order (0 = constant) which the number of psf stars can support: 114 int MaxOrderForStars = 0; 115 116 // we require only 3 stars for n = 0, increase stars / cell for higher order 117 if (sources->n >= 16) MaxOrderForStars = 1; // 4 cells, 4 per cell 118 if (sources->n >= 54) MaxOrderForStars = 2; // 9 cells, 6 per cell 119 if (sources->n >= 128) MaxOrderForStars = 3; // 16 cells, 8 per cell 120 if (sources->n >= 300) MaxOrderForStars = 4; // 25 cells, 12 per cell 121 if (sources->n > 576) MaxOrderForStars = 5; // 36 cells, 16 per cell 122 113 123 // rule of thumb: require 3 stars per 'cell' (order+1)^2 114 int MaxOrderForStars = 0;115 if (sources->n >= 12) MaxOrderForStars = 1; // 4cells116 if (sources->n >= 27) MaxOrderForStars = 2; // 9cells117 if (sources->n >= 48) MaxOrderForStars = 3; // 16cells118 if (sources->n > 75) MaxOrderForStars = 4; // 25cells124 // if (sources->n >= 12) MaxOrderForStars = 1; // 4 cells 125 // if (sources->n >= 27) MaxOrderForStars = 2; // 9 cells 126 // if (sources->n >= 48) MaxOrderForStars = 3; // 16 cells 127 // if (sources->n >= 75) MaxOrderForStars = 4; // 25 cells 128 // if (sources->n > 108) MaxOrderForStars = 5; // 36 cells 119 129 120 130 int orderMax = PS_MAX (options->psfTrendNx, options->psfTrendNy); … … 236 246 // linear clipped fit of chisq trend vs flux 237 247 if (options->chiFluxTrend) { 248 249 if (0) { 250 FILE *f = fopen ("test.psf.dat", "w"); 251 int fd = fileno (f); 252 p_psVectorPrint (fd, flux, "flux"); 253 p_psVectorPrint (fd, chisq, "chisq"); 254 p_psVectorPrint (fd, mask, "mask"); 255 fclose (f); 256 } 257 238 258 bool result = psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, options->stats, 239 259 mask, 0xff, chisq, NULL, flux);
Note:
See TracChangeset
for help on using the changeset viewer.
