IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 20, 2005, 4:19:11 AM (21 years ago)
Author:
eugene
Message:

working on the stability of the galaxy models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/fit_galaxies.c

    r4574 r4582  
    1414
    1515    float MOMENT_R = psMetadataLookupF32 (&status, config, "GAL_MOMENTS_RADIUS");
    16     float RADIUS   = psMetadataLookupF32 (&status, config, "FIT_RADIUS");
     16    // float RADIUS   = psMetadataLookupF32 (&status, config, "FIT_RADIUS");
    1717    float snFaint  = psMetadataLookupF32 (&status, config, "FAINT_SN_LIM");
    1818    float OUTER    = psMetadataLookupF32 (&status, config, "OUTER_RADIUS");
     
    2222    float FLUX_LIMIT  = FIT_NSIGMA * skyStats->sampleStdev;
    2323
    24     psModelType   modelType   = psModelSetType ("PS_MODEL_RGAUSS");
     24    psModelType   modelType   = psModelSetType ("PS_MODEL_SGAUSS");
    2525    psModelRadius modelRadius = psModelRadius_GetFunction (modelType);
    2626
     
    3434
    3535        // recalculate the source moments using the galaxy radius (larger)
    36         status = pmSourceMoments (source, MOMENT_R);
     36        status = pmSourceMoments_EAM (source, MOMENT_R);
     37        if (!status) {
     38          fprintf (stderr, "invalid moments, skipping\n");
     39          continue;
     40        }
    3741
    3842        // use the source moments, etc to guess basic model parameters
Note: See TracChangeset for help on using the changeset viewer.