IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39253 for trunk


Ignore:
Timestamp:
Dec 11, 2015, 4:59:47 PM (11 years ago)
Author:
watersc1
Message:

Correct sersic index using sersic = 1/(2.0 * alpha) transformation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvopsps/src/insert_FGshape_dvopsps_catalog.c

    r39126 r39253  
    229229
    230230    float sersic_index = galphot->index;
    231     if (galphot->modelType == 6) sersic_index = 1.0;
    232     if (galphot->modelType == 7) sersic_index = 4.0;
     231    if (galphot->modelType == 6) {
     232      sersic_index = 1.0;
     233    }
     234    else if (galphot->modelType == 7) {
     235      sersic_index = 4.0;
     236    }
     237    else {
     238      sersic_index = 1.0 / (2.0 * sersic_index);
     239    }
    233240
    234241    PRINT_FLOAT(gal_buffer, galphot->mag,              "%.6e, ");
Note: See TracChangeset for help on using the changeset viewer.