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

Definition at line 175 of file makeschedule.cc.

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

176  {
177  const HrzPosn hrz = GetHrzFromEqu(equ, so.fJD);
178  const double current = FACT::PredictI(so, equ);
179 
180  if (current>max_current)
181  return false;
182 
183  if (hrz.alt<=0 || 90-hrz.alt>max_zd)
184  return false;
185 
186  if (maxzd.valid && 90-hrz.alt>maxzd.val)
187  return false;
188 
189  if (maxcurrent.valid && current>maxcurrent.val)
190  return false;
191 
192  return true;
193  }
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 val
double PredictI(const Nova::SolarObjects &so, const Nova::EquPosn &srcEqu)
Definition: Prediction.h:10

+ Here is the call graph for this function: