Changeset 16996 for trunk


Ignore:
Timestamp:
08/06/13 10:03:34 (11 years ago)
Author:
tbretz
Message:
Updated current prediction to latest one.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/makedata.cc

    r16975 r16996  
    141141        const HrzPosn hrzm = GetHrzFromEqu(moon, jd+h);
    142142
    143         // Distance between source and moon
     143        // Angular distance between source and moon
    144144        const double angle = GetAngularSeparation(moon, pos);
     145
     146        // Distance between earth and moon relative to major semi-axis
     147        const double dist  = GetLunarEarthDist(jd+h)/384400;
    145148
    146149        // Current prediction
     
    148151        const double calt = sin(hrzm.alt*M_PI/180);
    149152
    150         const double lc = cang==0 ? -1 : calt*pow(disk, 3)/sqrt(cang);
    151         const double cur = lc>0 ? 8.1+94.6*lc : 8.1;
     153        const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pos(dist, -2);
     154        const double cur = lc>0 ? 4+103*lc : 4;
    152155
    153156        // Relative  energy threshold prediction
  • trunk/FACT++/src/makeplots.cc

    r16969 r16996  
    277277            const double angle = GetAngularSeparation(moon, pos);
    278278
     279            // Distance between earth and moon relative to major semi-axis
     280            const double dist  = GetLunarEarthDist(jd+h)/384400;
     281
    279282            // Current prediction
    280283            const double cang = sin(angle   *M_PI/180);
    281284            const double calt = sin(hrzm.alt*M_PI/180);
    282285
    283             const double lc = cang==0 ? -1 : calt*pow(disk, 3)/sqrt(cang);
    284             const double cur = lc>0 ? 8.1+94.6*lc : 8.1;
     286            const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2);
     287            const double cur = lc>0 ? 4+103*lc : 4;
    285288
    286289            // Relative  energy threshold prediction
  • trunk/FACT++/src/smartfact.cc

    r16972 r16996  
    20022002
    20032003                const Nova::HrzPosn hrz = Nova::GetHrzFromEqu(moon, jd+h);
    2004 
    2005                 Moon m;
    2006                 m.ra  = moon.ra;
    2007                 m.dec = moon.dec;
    2008 
    2009                 const double angle = m.Angle(src->ra/15, src->dec);
     2004                const double dist  = Nova::GetLunarEarthDist(jd+h);
    20102005
    20112006                // Current prediction
    2012                 const double cang = sin(angle  *M_PI/180);
    20132007                const double calt = sin(hrz.alt*M_PI/180);
    20142008
    2015                 const double lc = calt>0 ? cang*sqrt(calt)*pow(disk, 3) : -1;
    2016                 cur = lc>0 ? 8+104.5*lc : -1;
     2009                const double lc = calt>0 ? calt*pow(disk, 2.2)*pow(dist, -2) : -1;
     2010                cur = lc>0 ? 4+103*lc : -1;
    20172011
    20182012                vec.push_back(cur); // Covert LC to pixel current in uA
Note: See TracChangeset for help on using the changeset viewer.