IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 11, 2013, 11:03:57 AM (13 years ago)
Author:
eugene
Message:

updates to galaxy test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psphot/test/tap_psphot_galaxies.pro

    r35650 r35652  
    5454$FakeConfig = $FakeConfig -Db GALAXY.GRID T                        ; # generate a grid of galaxies (constant mag)
    5555#$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_GAUSS
    56 $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_EXP
     56#$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_EXP
    5757#$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_SERSIC
    5858#$FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_DEV
    5959$FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MIN 10.0
    6060$FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MAX 10.0
    61 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MIN 0.5
    62 $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MAX 0.5
     61$FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MIN 0.25
     62$FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MAX 0.25
    6363$FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0
    6464$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
    6767$FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120
    6868$FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120
     
    9595# create a realistic distribution of fake stars, GAUSS PSF
    9696macro mkexp
    97   if ($0 != 3)
    98     echo "USAGE: mkexp basename fwhm"
     97  if ($0 != 4)
     98    echo "USAGE: mkexp basename (fwhm) (model)"
    9999    break
    100100  end
     
    105105
    106106  # create the raw image
     107  $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_$3
    107108  echo ppSim $FakeOptions $FakeConfig $basename -seeing $fwhm
    108109  exec ppSim $FakeOptions $FakeConfig $basename -seeing $fwhm
     
    447448end
    448449
     450macro 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
     472end
     473
     474macro 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
     485end
     486
    449487if ($SCRIPT)
    450488  echo "no default action defined"
Note: See TracChangeset for help on using the changeset viewer.