validate_juliantime#

namespace saltro
namespace validation

Functions

bool validateJulianTime(const Eigen::Ref<const Eigen::VectorXd> &jtime, std::string &error_msg)#

Validate a mission time vector expressed in Julian centuries.

The mission timeline is expected to be within [0.20, 0.40] Julian centuries and strictly increasing.

Validation checks:

  • vector is not empty

  • each value is finite (not NaN or infinity)

  • no value is zero

  • each value lies within mission bounds [0.20, 0.40]

  • values are strictly increasing

Parameters:
  • jtime – Time vector in Julian centuries.

  • error_msg – Output error message when validation fails.

Returns:

true if valid, false otherwise.