- Timestamp:
- 08/06/13 10:03:34 (11 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/makedata.cc
r16975 r16996 141 141 const HrzPosn hrzm = GetHrzFromEqu(moon, jd+h); 142 142 143 // Distance between source and moon143 // Angular distance between source and moon 144 144 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; 145 148 146 149 // Current prediction … … 148 151 const double calt = sin(hrzm.alt*M_PI/180); 149 152 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; 152 155 153 156 // Relative energy threshold prediction -
trunk/FACT++/src/makeplots.cc
r16969 r16996 277 277 const double angle = GetAngularSeparation(moon, pos); 278 278 279 // Distance between earth and moon relative to major semi-axis 280 const double dist = GetLunarEarthDist(jd+h)/384400; 281 279 282 // Current prediction 280 283 const double cang = sin(angle *M_PI/180); 281 284 const double calt = sin(hrzm.alt*M_PI/180); 282 285 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; 285 288 286 289 // Relative energy threshold prediction -
trunk/FACT++/src/smartfact.cc
r16972 r16996 2002 2002 2003 2003 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); 2010 2005 2011 2006 // Current prediction 2012 const double cang = sin(angle *M_PI/180);2013 2007 const double calt = sin(hrz.alt*M_PI/180); 2014 2008 2015 const double lc = calt>0 ? ca ng*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; 2017 2011 2018 2012 vec.push_back(cur); // Covert LC to pixel current in uA
Note:
See TracChangeset
for help on using the changeset viewer.