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/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    }
Note: See TracChangeset for help on using the changeset viewer.