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_QGAUSS.c

    r8882 r9529  
    3333
    3434    psF32 r  = 1.0 / (1 + PAR[PM_PAR_7]*z + pow(z, QG_S1));
    35     psF32 f  = PAR[PM_PAR_FLUX]*r + PAR[PM_PAR_SKY];
     35    psF32 f  = PAR[PM_PAR_I0]*r + PAR[PM_PAR_SKY];
    3636
    3737    if (deriv != NULL) {
    3838        // note difference from a pure gaussian: q = params->data.F32[1]*r
    39         psF32 t = PAR[PM_PAR_FLUX]*r*r;
     39        psF32 t = PAR[PM_PAR_I0]*r*r;
    4040        psF32 q = t*(PAR[PM_PAR_7] + QG_S1*pow(z, dQG_S1));
    4141
     
    125125    norm *= 0.01;
    126126   
    127     psF64 Flux = PAR[PM_PAR_FLUX] * Area * norm;
     127    psF64 Flux = PAR[PM_PAR_I0] * Area * norm;
    128128
    129129    return(Flux);
     
    138138
    139139    if (flux <= 0) return (1.0);
    140     if (PAR[PM_PAR_FLUX] <= 0) return (1.0);
    141     if (flux >= PAR[PM_PAR_FLUX]) return (1.0);
     140    if (PAR[PM_PAR_I0] <= 0) return (1.0);
     141    if (flux >= PAR[PM_PAR_I0]) return (1.0);
    142142
    143143    // if Sx == Sy, sigma = Sx == Sy
    144144    psF64 sigma = hypot (1.0 / PAR[PM_PAR_SXX], 1.0 / PAR[PM_PAR_SYY]) / sqrt(2.0);
    145145    psF64 dz = 1.0 / (2.0 * sigma*sigma);
    146     psF64 limit = flux / PAR[PM_PAR_FLUX];
     146    psF64 limit = flux / PAR[PM_PAR_I0];
    147147
    148148    // we can do this much better with intelligent choices here
     
    190190    status = true;
    191191    status &= (dP < 0.5);
    192     status &= (PAR[PM_PAR_FLUX] > 0);
    193     status &= ((dPAR[PM_PAR_FLUX]/PAR[PM_PAR_FLUX]) < 0.5);
     192    status &= (PAR[PM_PAR_I0] > 0);
     193    status &= ((dPAR[PM_PAR_I0]/PAR[PM_PAR_I0]) < 0.5);
    194194
    195195    if (status) return true;
Note: See TracChangeset for help on using the changeset viewer.