FACT++  1.0
bool Source::calcThreshold ( const SolarObjects so)
inline

Definition at line 215 of file makeschedule.cc.

References Nova::SolarObjects::fJD, Nova::GetHrzFromEqu(), max_current, max_zd, FACT::PredictI(), MyDouble::val, and MyDouble::valid.

216  {
217  const HrzPosn hrz = GetHrzFromEqu(equ, so.fJD);
218  const double current = FACT::PredictI(so, equ);
219 
220  if (current>max_current)
221  return false;
222 
223  if (hrz.alt<=0 || 90-hrz.alt>max_zd)
224  return false;
225 
226  if (maxzd.valid && 90-hrz.alt>maxzd.val)
227  return false;
228 
229  if (maxcurrent.valid && current>maxcurrent.val)
230  return false;
231 
232  const double ratio = pow(cos((90-hrz.alt)*M_PI/180), -2.664);
233  threshold = penalty*ratio*pow(current/6.2, 0.394);
234 
235  return true;
236  }
static double max_zd
MyDouble maxzd
EquPosn equ
MyDouble maxcurrent
double fJD
Definition: nova.h:162
HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, double jd)
Definition: nova.h:75
static double max_current
double penalty
double val
double PredictI(const Nova::SolarObjects &so, const Nova::EquPosn &srcEqu)
Definition: Prediction.h:10
double threshold

+ Here is the call graph for this function: