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

#include <SpaceWeather.hpp>

struct  Entry
 

Public 成员函数

errc_t loadDefault ()
 
errc_t load (StringView filepath)
 
const EntrygetEntry (int mjd) const
 
errc_t setEntry (int mjd, const Entry &entry)
 

Protected 成员函数

void findEntryIndex (double mjdUTC, int &index, double &frac) const
 

静态 Protected 成员函数

static errc_t load (StringView filepath, std::vector< Entry > &data)
 

Protected 属性

std::vector< Entrydata_
 
int startMJD_ = 0
 
int endMJD_ = 0
 

详细描述

空间天气数据

支持加载从Celestrak网站下载的空间天气数据文件。

参见
https://celestrak.org/SpaceData/SpaceWx-format.php

成员函数说明

◆ getEntry()

const SpaceWeather::Entry * ast::SpaceWeather::getEntry ( int mjd) const

获取指定MJD的空间天气数据条目

参数
mjd简约儒略日
返回
空间天气数据条目指针

如果MJD不存在,则返回nullptr。

◆ load()

errc_t ast::SpaceWeather::load ( StringView filepath)

加载空间天气数据文件

参数
filepath文件路径
返回
错误码

◆ loadDefault()

errc_t ast::SpaceWeather::loadDefault ( )

加载默认空间天气数据文件

返回
错误码

◆ setEntry()

errc_t ast::SpaceWeather::setEntry ( int mjd,
const Entry & entry )

设置指定MJD的空间天气数据条目

参数
mjd简约儒略日
entry空间天气数据条目
返回
错误码

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