IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2013, 6:03:17 AM (13 years ago)
Author:
eugene
Message:

iterate over Reff and Sidx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/psphot/test/tap_psphot_galaxygrid.pro

    r36032 r36033  
    2828$RefOptions = $RefOptions -Df STARS.DENSITY 10.0
    2929$RefOptions = $RefOptions -Df STARS.SIGMA.LIM 0.5
     30$RefOptions = $RefOptions -nx 3000 -ny 3000
    3031
    3132# options for the simulated images (using the refimage for the stars)
     
    3334$FakeOptions = $FakeOptions -exptime 30.0
    3435$FakeOptions = $FakeOptions -D PSF.MODEL PS_MODEL_GAUSS
     36$FakeOptions = $FakeOptions -nx 3000 -ny 3000
    3537 
    3638# sample alternate options:
     
    6567$FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.66
    6668$FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.66
    67 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120
    68 $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120
     69$FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300
     70$FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300
    6971
    7072list fwhm
     
    8991  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0
    9092  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180
    91   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120
    92   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120
     93  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300
     94  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300
    9395  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.0
    9496  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.0
     
    149151  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0
    150152  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180
    151   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120
    152   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120
     153  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300
     154  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300
    153155  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.0
    154156  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.0
     
    288290  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0
    289291  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180
    290   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 120
    291   $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 120
     292  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300
     293  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300
    292294  $FakeConfig = $FakeConfig -D GALAXY.MODEL PS_MODEL_SERSIC
    293295  $BaseConfig = $FakeConfig
     
    307309         
    308310          sprint name "$1/sersic.%02d" $Nseq
    309           # mkexp $name $fwhm SERSIC
     311          mkexp $name $fwhm SERSIC
    310312          echo "$Nseq : $index $Rmajor $Aratio $fwhm"
    311313          $Nseq ++
     
    339341
    340342macro grid.fitexp.sersic
     343  if ($0 != 3)
     344    echo "USAGE: grid.fitexp.sersic (srcdir) (outdir)"
     345    break
     346  end
     347
     348  mkdir $2
     349
    341350  $Nseq = 0
    342351  foreach index 1 2 3 4
     
    345354        foreach fwhm 0.8 1.0 1.5
    346355          sprint name "sersic.%02d" $Nseq
    347           fitexp $name $name.fit SER\_CONV
     356          fitexp $1/$name $2/$name.fit SER\_CONV
    348357          $Nseq ++
    349358        end
Note: See TracChangeset for help on using the changeset viewer.