Struct sounding_analysis::Analysis
source · pub struct Analysis { /* private fields */ }
Expand description
Convenient package for commonly requested analysis values.
All parcel related values are assumed to be for the 100hPa mixed layer at the surface.
Implementations§
source§impl Analysis
impl Analysis
sourcepub fn with_profile_index<T>(self, var: ProfileIndex, value: T) -> Selfwhere
Option<f64>: From<T>,
pub fn with_profile_index<T>(self, var: ProfileIndex, value: T) -> Selfwhere
Option<f64>: From<T>,
Set a value in the analysis
sourcepub fn get_profile_index(&self, var: ProfileIndex) -> Option<f64>
pub fn get_profile_index(&self, var: ProfileIndex) -> Option<f64>
Method to retrieve value from analysis.
sourcepub fn with_mixed_layer_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
pub fn with_mixed_layer_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
Set the mixed layer parcel analysis.
sourcepub fn get_mixed_layer_parcel_analysis(&self) -> Option<&ParcelAnalysis>
pub fn get_mixed_layer_parcel_analysis(&self) -> Option<&ParcelAnalysis>
Get the mixed layer parcel analysis
sourcepub fn with_surface_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
pub fn with_surface_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
Set the surface parcel analysis.
sourcepub fn get_surface_parcel_analysis(&self) -> Option<&ParcelAnalysis>
pub fn get_surface_parcel_analysis(&self) -> Option<&ParcelAnalysis>
Get the surface parcel analysis
sourcepub fn with_most_unstable_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
pub fn with_most_unstable_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
Set the most unstable parcel analysis.
sourcepub fn get_most_unstable_parcel_analysis(&self) -> Option<&ParcelAnalysis>
pub fn get_most_unstable_parcel_analysis(&self) -> Option<&ParcelAnalysis>
Get the most unstable parcel analysis
sourcepub fn with_convective_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
pub fn with_convective_parcel_analysis<T>(self, anal: T) -> Selfwhere
Option<ParcelAnalysis>: From<T>,
Set the convective parcel analysis.
sourcepub fn get_convective_parcel_analysis(&self) -> Option<&ParcelAnalysis>
pub fn get_convective_parcel_analysis(&self) -> Option<&ParcelAnalysis>
Get the convective parcel analysis
sourcepub fn with_downburst_profile<T>(self, parcel_profile: T) -> Selfwhere
Option<ParcelProfile>: From<T>,
pub fn with_downburst_profile<T>(self, parcel_profile: T) -> Selfwhere
Option<ParcelProfile>: From<T>,
Set the downburst profile
sourcepub fn get_downburst_profile(&self) -> Option<&ParcelProfile>
pub fn get_downburst_profile(&self) -> Option<&ParcelProfile>
Get the downburst profile
sourcepub fn with_provider_analysis(
self,
provider_analysis: HashMap<&'static str, f64>
) -> Self
pub fn with_provider_analysis(
self,
provider_analysis: HashMap<&'static str, f64>
) -> Self
Set the provider analysis.
This is just a table of what ever values you want to store, it may be empty.
sourcepub fn provider_analysis(&self) -> &HashMap<&'static str, f64>
pub fn provider_analysis(&self) -> &HashMap<&'static str, f64>
Get a reference to the provider analysis so you can query it.
sourcepub fn provider_analysis_mut(&mut self) -> &mut HashMap<&'static str, f64>
pub fn provider_analysis_mut(&mut self) -> &mut HashMap<&'static str, f64>
Get a mutable reference to the provider analysis so you can modify it.
sourcepub fn fill_in_missing_analysis(self) -> Self
pub fn fill_in_missing_analysis(self) -> Self
Analyze the sounding to get as much information as you can.