🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::SpaceWeatherProvider类 参考abstract

#include <SpaceWeatherProvider.hpp>

+ 类 ast::SpaceWeatherProvider 继承关系图:

Public 成员函数

virtual double getApDaily (const TimePoint &tp) const =0
 
virtual double getKpDaily (const TimePoint &tp) const =0
 
virtual double getF10p7Daily (const TimePoint &tp) const =0
 
virtual double getF10p7Average (const TimePoint &tp) const =0
 
virtual int getAp3HourlyList (const TimePoint &tp, double *apList, int maxLookback) const
 

详细描述

空间天气数据提供者抽象接口

提供空间天气指数(Ap、Kp、F10.7等)的查询接口。

关于接口设计: 核心接口只包含所有空间天气数据源的公共查询方法。 具体的数据加载方式(文件、网络、内嵌数据等)由子类实现, 不出现在抽象接口中,以保持接口的简洁和可替换性。

参见
SpaceWeather 基于Celestrak文件的具体实现

成员函数说明

◆ getAp3HourlyList()

virtual int ast::SpaceWeatherProvider::getAp3HourlyList ( const TimePoint & tp,
double * apList,
int maxLookback ) const
inlinevirtual

获取从指定时间向前回溯的连续3小时间隔Ap值列表

参数
tp参考时间点(tp所在3小时UTC块 = apList[0])
apList输出缓冲区(apList[0]=当前块, apList[1]=3小时前, apList[2]=6小时前, ...)
maxLookback最多回溯的块数(通常最多20,即60小时)
返回
实际填充的块数。返回0表示无3小时间隔数据,调用者应回退到每日Ap模式。 默认实现返回0(子类需override以提供真实数据)。

ast::SpaceWeather 重载.

◆ getApDaily()

virtual double ast::SpaceWeatherProvider::getApDaily ( const TimePoint & tp) const
pure virtual

获取指定时间的Ap日平均值

参数
tp时间点
返回
对应时间点的Ap值(0-400),无数据时返回0.0

ast::ConstantSpaceWeather , 以及 ast::SpaceWeather 内被实现.

◆ getF10p7Average()

virtual double ast::SpaceWeatherProvider::getF10p7Average ( const TimePoint & tp) const
pure virtual

获取指定时间的F10.7平均观测值

参数
tp时间点
返回
以输入时间为中心的81天平均F10.7观测值(调整到1 AU),无数据时返回0.0

ast::ConstantSpaceWeather , 以及 ast::SpaceWeather 内被实现.

◆ getF10p7Daily()

virtual double ast::SpaceWeatherProvider::getF10p7Daily ( const TimePoint & tp) const
pure virtual

获取指定时间的F10.7单日观测值

参数
tp时间点
返回
对应时间点的F10.7观测值(10⁻²² W·m⁻²·Hz⁻¹),无数据时返回0.0

ast::ConstantSpaceWeather , 以及 ast::SpaceWeather 内被实现.

◆ getKpDaily()

virtual double ast::SpaceWeatherProvider::getKpDaily ( const TimePoint & tp) const
pure virtual

获取指定时间的Kp日平均值

参数
tp时间点
返回
对应时间点的Kp值(0-9),无数据时返回0.0

ast::ConstantSpaceWeather , 以及 ast::SpaceWeather 内被实现.


该类的文档由以下文件生成: