Changeset 18199 for trunk/Mars


Ignore:
Timestamp:
06/11/15 08:16:35 (9 years ago)
Author:
dneise
Message:
reverting changes made in rev. 17956.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/plots/quality.C

    r18198 r18199  
    9595    Double_t jd = time + 40587 + 2400000.5;
    9696
     97    // Sun properties           
     98    Nova::EquPosn  sun  = Nova::GetSolarEquCoords(jd);                   
     99    Nova::ZdAzPosn hrzs = Nova::GetHrzFromEqu(sun, jd);                 
     100
    97101    // Get source position
    98102    Nova::EquPosn pos = FindPointing(time);
    99103
    100     return FACT::PredictI(jd, pos);
     104
     105    // Moon properties
     106    Nova::EquPosn moon = Nova::GetLunarEquCoords(jd, 0.01);
     107    Nova::HrzPosn hrzm = Nova::GetHrzFromEqu(moon, jd);
     108    double        disk = Nova::GetLunarDisk(jd);
     109
     110    // Derived moon properties
     111    double angle = Nova::GetAngularSeparation(moon, pos);
     112    double edist = Nova::GetLunarEarthDist(jd)/384400;
     113
     114    // Current prediction
     115    double sin_malt  = hrzm.alt<0 ? 0 : sin(hrzm.alt*TMath::DegToRad());
     116    double cos_mdist = cos(angle*TMath::DegToRad());
     117    double sin_szd   = sin(hrzs.zd*TMath::DegToRad());
     118
     119    double c0 = pow(disk,      2.63);
     120    double c1 = pow(sin_malt,  0.60);
     121    double c2 = pow(edist,    -2.00);
     122    double c3 = exp(0.67*cos_mdist*cos_mdist*cos_mdist*cos_mdist);
     123    double c4 = exp(-97.8+105.8*sin_szd*sin_szd);
     124
     125    double cur = 6.2 + 95.7*c0*c1*c2*c3 + c4;
     126
     127    return cur;
    101128}
    102129
Note: See TracChangeset for help on using the changeset viewer.