Changeset 35652 for branches/eam_branches/ipp-20130509/psphot
- Timestamp:
- Jun 11, 2013, 11:03:57 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psphot/test/tap_psphot_galaxies.pro
r35650 r35652 54 54 $FakeConfig = $FakeConfig -Db GALAXY.GRID T ; # generate a grid of galaxies (constant mag) 55 55 #$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_GAUSS 56 $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_EXP56 #$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_EXP 57 57 #$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_SERSIC 58 58 #$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_DEV 59 59 $FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MIN 10.0 60 60 $FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MAX 10.0 61 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MIN 0. 562 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MAX 0. 561 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MIN 0.25 62 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MAX 0.25 63 63 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0 64 64 $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180 65 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1 66 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1 65 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.66 66 $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.66 67 67 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120 68 68 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120 … … 95 95 # create a realistic distribution of fake stars, GAUSS PSF 96 96 macro mkexp 97 if ($0 != 3)98 echo "USAGE: mkexp basename fwhm"97 if ($0 != 4) 98 echo "USAGE: mkexp basename (fwhm) (model)" 99 99 break 100 100 end … … 105 105 106 106 # create the raw image 107 $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_$3 107 108 echo ppSim $FakeOptions $FakeConfig $basename -seeing $fwhm 108 109 exec ppSim $FakeOptions $FakeConfig $basename -seeing $fwhm … … 447 448 end 448 449 450 macro plot.angles 451 if ($0 != 2) 452 echo "USAGE: plot.angles (file.dat)" 453 break 454 end 455 456 data $1 457 read x 1 y 2 type 4 trad 9 458 set t = trad * 180 / 3.14159265 459 subset xs = x if (type == 1) 460 subset ys = y if (type == 1) 461 subset ts = t if (type == 1) 462 463 set cs = dcos(ts) 464 set sn = dsin(ts) 465 466 delete xp yp 467 erase red 468 for i 0 xs[] 469 point red LINE xs[$i] ys[$i] {10*cs[$i]} {10*sn[$i]} 470 end 471 plot xp yp -pt 100 472 end 473 474 macro check.flux 475 if ($0 != 2) 476 echo "USAGE: plot.angles (file.dat)" 477 break 478 end 479 480 data $1 481 read f 3 type 4 482 subset F = f if (type == 1) 483 set M = -2.5*log(F) 484 vstat M 485 end 486 449 487 if ($SCRIPT) 450 488 echo "no default action defined"
Note:
See TracChangeset
for help on using the changeset viewer.
