IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2006, 4:36:54 PM (20 years ago)
Author:
rhl
Message:

Renamed PM_PAR_FLUX to PM_PAR_I0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/models/pmModel_ZGAUSS.c

    r8882 r9529  
    3232    psF32 p  = pow(z, PAR[PM_PAR_7] - 1.0);
    3333    psF32 r  = 1.0 / (1 + z*p + SQ(SQ(pr)));
    34     psF32 f  = PAR[PM_PAR_FLUX]*r + PAR[PM_PAR_SKY];
     34    psF32 f  = PAR[PM_PAR_I0]*r + PAR[PM_PAR_SKY];
    3535
    3636    if (deriv != NULL) {
    3737        // note difference from a pure gaussian: q = params->data.F32[1]*r
    38         psF32 t = PAR[PM_PAR_FLUX]*r*r;
     38        psF32 t = PAR[PM_PAR_I0]*r*r;
    3939        psF32 q = t*(PAR[PM_PAR_7]*p + 4*PAR8*pr*pr*pr);
    4040
     
    7272    norm *= 0.01;
    7373   
    74     psF64 Flux = PAR[PM_PAR_FLUX] * Area * norm;
     74    psF64 Flux = PAR[PM_PAR_I0] * Area * norm;
    7575
    7676    return(Flux);
     
    8989
    9090    if (flux <= 0) return (1.0);
    91     if (PAR[PM_PAR_FLUX] <= 0) return (1.0);
    92     if (flux >= PAR[PM_PAR_FLUX]) return (1.0);
     91    if (PAR[PM_PAR_I0] <= 0) return (1.0);
     92    if (flux >= PAR[PM_PAR_I0]) return (1.0);
    9393
    9494    // convert Sx,Sy,Sxy to major/minor axes
     
    9999    axes = EllipseShapeToAxes (shape);
    100100    psF64 dr = 1.0 / axes.major;
    101     psF64 limit = flux / PAR[PM_PAR_FLUX];
     101    psF64 limit = flux / PAR[PM_PAR_I0];
    102102
    103103    // XXX : we can do this faster with an intelligent starting choice
Note: See TracChangeset for help on using the changeset viewer.