IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36292


Ignore:
Timestamp:
Nov 21, 2013, 9:38:27 AM (13 years ago)
Author:
eugene
Message:

mods to the simulation code

File:
1 edited

Legend:

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

    r36227 r36292  
    3333$FakeOptions = $BaseOptions
    3434$FakeOptions = $FakeOptions -exptime 30.0
    35 $FakeOptions = $FakeOptions -D PSF.MODEL PS_MODEL_GAUSS
     35# $FakeOptions = $FakeOptions -D PSF.MODEL PS_MODEL_GAUSS
     36$FakeOptions = $FakeOptions -D PSF.MODEL PS_MODEL_PS1_V1
    3637$FakeOptions = $FakeOptions -nx 3000 -ny 3000
    3738 
     
    7778end
    7879
     80
     81# generate fake images and run psphot on them
     82macro mkexp.devexp.single
     83  if ($0 != 5)
     84    echo "USAGE: mkexp.devexp.single (basename) (type) (Rmajor) (fwhm)" 
     85    break
     86  end
     87
     88  $basename = $1
     89  $type = $2
     90  $Rmajor = $3
     91  $fwhm = $4
     92
     93  $Aratio = 1.0
     94
     95  $FakeConfig = -camera SIMTEST
     96  $FakeConfig = $FakeConfig -recipe PPSIM STACKTEST.RUN
     97  $FakeConfig = $FakeConfig -D PSASTRO:PSASTRO.CATDIR catdir.ref
     98  $FakeConfig = $FakeConfig -Db STARS.FAKE F                         ; # only use stars from catdir.ref
     99  $FakeConfig = $FakeConfig -Db MATCH.DENSITY F
     100  $FakeConfig = $FakeConfig -Db PSF.CONVOLVE T
     101  $FakeConfig = $FakeConfig -Db GALAXY.FAKE T                        ; # generate a "realistic" distribution of galaxies
     102  $FakeConfig = $FakeConfig -Df GALAXY.MAG 17.0
     103  $FakeConfig = $FakeConfig -Df GALAXY.GRID.MAG 14.5
     104  $FakeConfig = $FakeConfig -Db GALAXY.GRID T                        ; # generate a grid of galaxies (constant mag)
     105  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MIN 0
     106  $FakeConfig = $FakeConfig -Df GALAXY.THETA.MAX 180
     107  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DX 300
     108  $FakeConfig = $FakeConfig -Di GALAXY.GRID.DY 300
     109  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MIN 1.0
     110  $FakeConfig = $FakeConfig -Df GALAXY.INDEX.MAX 1.0
     111  $BaseConfig = $FakeConfig
     112
     113  $FakeConfig = $BaseConfig
     114  $FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MIN $Rmajor
     115  $FakeConfig = $FakeConfig -Df GALAXY.RMAJOR.MAX $Rmajor
     116  $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MIN $Aratio
     117  $FakeConfig = $FakeConfig -Df GALAXY.ARATIO.MAX $Aratio
     118         
     119  mkexp $basename $fwhm $type
     120end
     121
    79122# generate fake images and run psphot on them
    80123macro normtest.mkexp.devexp
     
    507550  $psphotConfig = $psphotConfig -Db PSPHOT:SAVE.RESID T
    508551  $psphotConfig = $psphotConfig -D  PSPHOT:EXTENDED_SOURCE_MODELS_SELECTION $fitModel
     552  $psphotConfig = $psphotConfig -D  PSPHOT:PSF_MODEL PS_MODEL_PS1_V1
    509553
    510554  # ppImage / psphot on the output
Note: See TracChangeset for help on using the changeset viewer.