#ifndef DAYFRACTIONINCLUDED #define DAYFRACTIONINCLUDED #include "TTimeStamp.h" /*! the 'dayfraction' is a number between 0 and 1, that respresents a full siderial day -- * a source makes a full circle in the sky when going from 0 to 1 */ inline double dayfraction_to_time( double dayfraction ) { static TTimeStamp T0 (2020, 1, 1, 0, 0, 0 ); TTimeStamp T; T.SetSec( T0.GetSec() + dayfraction * siderial_day() ); return T; } inline double dayfraction_to_coszenith( double ra, double decl, Det& det, double dayfraction ) { TTimeStamp T = dayfraction_to_time(dayfraction); EquatorialCoords eq( ra, decl ); Vec d = -eq.track_direction( det , T ); return d.z; } #endif