コンテンツにスキップ

CssiSpaceWeather

このコンテンツはまだ日本語訳がありません。

Defined in: cssi.rs:297

pub struct CssiSpaceWeather

Space weather provider backed by CSSI historical data.

Looks up the correct daily record for a given epoch using binary search, then computes the NRLMSISE-00 7-element ap history array from the 3-hourly ap values across day boundaries.

fn new(data: CssiData) -> Self

Create a provider from parsed CSSI data.


fn from_file(path: &std::path::Path) -> [Result<Self, [Box<dyn std::error::Error>](https://doc.rust-lang.org/std/boxed/struct.Box.html)>](https://doc.rust-lang.org/std/result/enum.Result.html)

Create a provider by parsing a CSSI file from a path.


fn with_out_of_range(self, behavior: OutOfRangeBehavior) -> Self

Set out-of-range behavior (builder pattern).


fn data(&self) -> &CssiData

Access the underlying data.


fn into_data(self) -> CssiData

Consume the provider and return the inner data.

If other references to the data exist (via Clone), returns a clone.