🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
SpaceWeather.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/StringView.hpp"
25#include <vector>
26
27AST_NAMESPACE_BEGIN
28
38class AST_CORE_API SpaceWeather
39{
40public:
42 struct Entry{
43 int mjd;
44 int BSRN;
45 int ND;
46 int Kp1, Kp2, Kp3, Kp4, Kp5, Kp6, Kp7, Kp8;
47 int KpSum;
48 int Ap1, Ap2, Ap3, Ap4, Ap5, Ap6, Ap7, Ap8;
49 int ApAvg;
50 double Cp;
51 int C9;
52 int ISN;
53 int fluxQualifier;
54 double F10p7Adj;
55 double F10p7AdjCtr81;
56 double F10p7AdjLst81;
57 double F10p7Obs;
58 double F10p7ObsCtr81;
59 double F10p7ObsLst81;
60 };
61 SpaceWeather() = default;
62 ~SpaceWeather() = default;
63
66 errc_t loadDefault();
67
71 errc_t load(StringView filepath);
72
77 const Entry* getEntry(int mjd) const;
78
83 errc_t setEntry(int mjd, const Entry& entry);
84protected:
85 static errc_t load(StringView filepath, std::vector<Entry>& data);
86
87 void findEntryIndex(double mjdUTC, int& index, double& frac) const;
88
89protected:
90 std::vector<Entry> data_;
91 int startMJD_ = 0;
92 int endMJD_ = 0;
93};
94
97AST_NAMESPACE_END
空间天气数据
定义 SpaceWeather.hpp:39
空间天气数据条目
定义 SpaceWeather.hpp:42