24 #ifndef SKA_CHEETAH_DATA_TIMEFREQUENCYCOMMON_H 25 #define SKA_CHEETAH_DATA_TIMEFREQUENCYCOMMON_H 27 #include "cheetah/data/TimeFrequencyMetadata.h" 28 #include "panda/DataChunk.h" 38 template <
class DerivedType>
42 typedef boost::units::quantity<MegaHertz, double> FrequencyType;
43 typedef boost::units::quantity<boost::units::si::time, double> TimeType;
44 typedef cheetah::utils::ModifiedJulianClock::time_point TimePointType;
49 template <
typename OtherDerivedType>
60 TimePointType
start_time(std::size_t offset)
const;
67 void start_time(TimePointType
const& start_time);
102 FrequencyType
const& delta);
107 template<
class InputIterator>
129 #include "cheetah/data/detail/TimeFrequencyCommon.cpp" 130 #endif // SKA_CHEETAH_DATA_TIMEFREQUENCYCOMMON_H
void set_channel_frequencies_const_width(FrequencyType const &start, FrequencyType const &delta)
Set the frequency index based on evenly spaced channels.
std::pair< FrequencyType, FrequencyType > low_high_frequencies() const
TimePointType const & start_time() const
Some limits and constants for FLDO.
TimeType sample_interval() const
void set_channel_frequencies(InputIterator begin, InputIterator const end)
std::vector< FrequencyType > const & channel_frequencies() const
TimePointType end_time() const
TimeFrequencyMetadata const & metadata() const