1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*!
Functions and data types for analyzing soundings from the
[sounding-base](https://github.com/rnleach/sounding-base.git) crate.

## Purpose
Provides analysis capabilities for the [sounding-base](https://github.com/rnleach/sounding-base.git)
crate.

*/
#![doc(test(attr(deny(warnings))))]
#![warn(missing_docs)]

//
// API
//
pub use crate::analysis::Analysis;
pub use crate::error::{AnalysisError, Result};
pub use crate::indexes::{
    haines, haines_high, haines_low, haines_mid, hot_dry_windy, kindex, precipitable_water, swet,
    total_totals,
};
pub use crate::interpolation::{linear_interpolate, linear_interpolate_sounding};
pub use crate::layers::{
    cold_surface_temperature_layer, dendritic_snow_zone, effective_inflow_layer, hail_growth_zone,
    inversions, layer_agl, pressure_layer, sfc_based_inversion, warm_temperature_layer_aloft,
    warm_wet_bulb_layer_aloft, Layer, Layers,
};
pub use crate::levels::{
    freezing_levels, max_temperature_in_layer, max_temperature_in_profile, max_wet_bulb_in_layer,
    max_wet_bulb_in_profile, wet_bulb_zero_levels, Level, Levels,
};
pub use crate::parcel::{
    convective_parcel, lowest_level_parcel, mixed_layer_parcel, most_unstable_parcel,
    pressure_parcel, surface_parcel, Parcel,
};
pub use crate::parcel_profile::{
    dcape, lift_parcel, mix_down, partition_cape, ParcelAnalysis, ParcelProfile,
};
pub use crate::profile::{
    equivalent_potential_temperature, hydrolapse, potential_temperature, relative_humidity,
    sfc_to_level_temperature_lapse_rate, temperature_lapse_rate, theta_e_lapse_rate, wet_bulb,
};
pub use crate::wind::{bunkers_storm_motion, mean_wind, sr_helicity};

//
// Internal use only
//

// 3rd party libs
#[macro_use]
extern crate itertools;

// Modules
mod analysis;
mod error;
mod indexes;
mod interpolation;
mod layers;
mod levels;
mod parcel;
mod parcel_profile;
mod profile;
mod wind;

pub(crate) const VEC_SIZE: usize = 2;