24#include "AstUtil/StringView.hpp"
75 size_t size()
const {
return data_.size(); }
81 const Entry* getEntry(
int mjd)
const;
87 errc_t setEntry(
int mjd,
const Entry& entry);
98 double getApDaily_UTCMJD(
double mjdUTC)
const;
115 double getKpDaily_UTCMJD(
double mjdUTC)
const;
126 double getF10p7Daily_UTCMJD(
double mjdUTC)
const;
137 double getF10p7Average_UTCMJD(
double mjdUTC)
const;
143 static errc_t load(
StringView filepath, std::vector<Entry>& data);
146 void findEntryIndex(
double mjdUTC,
int& index,
double& frac)
const;
148 void findFluxIndex(
double mjdUTC,
int& index,
double& frac)
const;
151 std::vector<Entry> data_;
空间天气数据提供者抽象接口
定义 SpaceWeatherProvider.hpp:43
virtual double getKpDaily(const TimePoint &tp) const =0
获取指定时间的Kp日平均值
virtual double getApDaily(const TimePoint &tp) const =0
获取指定时间的Ap日平均值
virtual double getF10p7Average(const TimePoint &tp) const =0
获取指定时间的F10.7平均观测值
virtual int getAp3HourlyList(const TimePoint &tp, double *apList, int maxLookback) const
获取从指定时间向前回溯的连续3小时间隔Ap值列表
定义 SpaceWeatherProvider.hpp:73
virtual double getF10p7Daily(const TimePoint &tp) const =0
获取指定时间的F10.7单日观测值
空间天气数据
定义 SpaceWeather.hpp:40
size_t size() const
获取数据大小
定义 SpaceWeather.hpp:75
绝对时间点
定义 TimePoint.hpp:107
空间天气数据条目
定义 SpaceWeather.hpp:43