Changeset 36033
- Timestamp:
- Aug 26, 2013, 6:03:17 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130711/psphot
- Files:
-
- 3 edited
-
src/psphotExtendedSourceFits.c (modified) (1 diff)
-
src/psphotSourceFits.c (modified) (3 diffs)
-
test/tap_psphot_galaxygrid.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/psphot/src/psphotExtendedSourceFits.c
r36028 r36033 304 304 305 305 // XXX TEST 306 if (!isInteractive && false) {306 if (!isInteractive) { 307 307 if (!psThreadJobAddPending(job)) { 308 308 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); -
branches/eam_branches/ipp-20130711/psphot/src/psphotSourceFits.c
r36032 r36033 558 558 } 559 559 560 # define TIMING 1560 # define TIMING 0 561 561 562 562 bool psphotSersicModelGuessPCM (pmPCMdata *pcm, pmSource *source, psImageMaskType maskVal, float psfSize); … … 759 759 760 760 // float indexGuessInv[] = {0.5, 0.33, 0.25, 0.167, 0.125, 0.083}; 761 float indexGuessInv[] = {0.5, 0. 25, 0.167, 0.125};762 # define N_INDEX_GUESS_INV 4763 764 float reffGuess[] = {3.0, 10.0, 30.0};765 # define N_REFF_GUESS 3761 float indexGuessInv[] = {0.5, 0.4, 0.3, 0.25, 0.20, 0.15, 0.125}; 762 # define N_INDEX_GUESS_INV 7 763 764 float reffGuess[] = {3.0, 10.0, 20.0, 30.0, 40.0}; 765 # define N_REFF_GUESS 5 766 766 767 767 // A sersic model is very sensitive to the index. attempt to find the index first by grid search in just the index … … 882 882 rMin = reffGuess[j]; 883 883 } 884 fprintf (stderr, "%d | %f %f %f %f | %f %f %f %f", i, indexGuessInv[i], reffGuess[j], Io, Chisq, sMin, rMin, iMin, xMin);885 fprintf (stderr, "\n");884 // fprintf (stderr, "%d | %f %f %f %f | %f %f %f %f", i, indexGuessInv[i], reffGuess[j], Io, Chisq, sMin, rMin, iMin, xMin); 885 // fprintf (stderr, "\n"); 886 886 } 887 887 } -
branches/eam_branches/ipp-20130711/psphot/test/tap_psphot_galaxygrid.pro
r36032 r36033 28 28 $RefOptions = $RefOptions -Df STARS.DENSITY 10.0 29 29 $RefOptions = $RefOptions -Df STARS.SIGMA.LIM 0.5 30 $RefOptions = $RefOptions -nx 3000 -ny 3000 30 31 31 32 # options for the simulated images (using the refimage for the stars) … … 33 34 $FakeOptions = $FakeOptions -exptime 30.0 34 35 $FakeOptions = $FakeOptions -D PSF.MODEL PS_MODEL_GAUSS 36 $FakeOptions = $FakeOptions -nx 3000 -ny 3000 35 37 36 38 # sample alternate options: … … 65 67 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.66 66 68 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.66 67 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 12068 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 12069 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300 70 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300 69 71 70 72 list fwhm … … 89 91 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0 90 92 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180 91 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 12092 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 12093 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300 94 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300 93 95 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.0 94 96 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.0 … … 149 151 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0 150 152 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180 151 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120152 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120153 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300 154 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300 153 155 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.0 154 156 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.0 … … 288 290 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0 289 291 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180 290 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120291 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120292 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300 293 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300 292 294 $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_SERSIC 293 295 $BaseConfig = $FakeConfig … … 307 309 308 310 sprint name "$1/sersic.%02d" $Nseq 309 #mkexp $name $fwhm SERSIC311 mkexp $name $fwhm SERSIC 310 312 echo "$Nseq : $index $Rmajor $Aratio $fwhm" 311 313 $Nseq ++ … … 339 341 340 342 macro grid.fitexp.sersic 343 if ($0 != 3) 344 echo "USAGE: grid.fitexp.sersic (srcdir) (outdir)" 345 break 346 end 347 348 mkdir $2 349 341 350 $Nseq = 0 342 351 foreach index 1 2 3 4 … … 345 354 foreach fwhm 0.8 1.0 1.5 346 355 sprint name "sersic.%02d" $Nseq 347 fitexp $ name$name.fit SER\_CONV356 fitexp $1/$name $2/$name.fit SER\_CONV 348 357 $Nseq ++ 349 358 end
Note:
See TracChangeset
for help on using the changeset viewer.
