IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36033


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

iterate over Reff and Sidx

Location:
branches/eam_branches/ipp-20130711/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/psphot/src/psphotExtendedSourceFits.c

    r36028 r36033  
    304304
    305305// XXX TEST
    306             if (!isInteractive && false) {
     306            if (!isInteractive) {
    307307                if (!psThreadJobAddPending(job)) {
    308308                    psError(PS_ERR_UNKNOWN, false, "Unable to guess model.");
  • branches/eam_branches/ipp-20130711/psphot/src/psphotSourceFits.c

    r36032 r36033  
    558558}
    559559
    560 # define TIMING 1
     560# define TIMING 0
    561561
    562562bool psphotSersicModelGuessPCM (pmPCMdata *pcm, pmSource *source, psImageMaskType maskVal, float psfSize);
     
    759759
    760760// 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 4
    763 
    764 float reffGuess[] = {3.0, 10.0, 30.0};
    765 # define N_REFF_GUESS 3
     761float indexGuessInv[] = {0.5, 0.4, 0.3, 0.25, 0.20, 0.15, 0.125};
     762# define N_INDEX_GUESS_INV 7
     763
     764float reffGuess[] = {3.0, 10.0, 20.0, 30.0, 40.0};
     765# define N_REFF_GUESS 5
    766766
    767767// A sersic model is very sensitive to the index.  attempt to find the index first by grid search in just the index
     
    882882                rMin = reffGuess[j];
    883883            }
    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");
    886886        }
    887887    }
  • 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.