TECA
The Toolkit for Extreme Climate Analysis
teca_saffir_simpson Namespace Reference

Codes dealing with the Saffir-Simpson scale. More...

Functions

template<typename n_t >
constexpr n_t get_lower_bound_kmph (int c)
 get the lower bound for the given class of storm More...
 
template<typename n_t >
constexpr n_t get_upper_bound_kmph (int c)
 get the higher bound for the given class of storm More...
 
template<typename n_t >
int classify_kmph (n_t w)
 
template<typename n_t >
constexpr n_t get_lower_bound_mps (int c)
 get the low bound for the given class of storm More...
 
template<typename n_t >
constexpr n_t get_upper_bound_mps (int c)
 get the high bound for the given class of storm More...
 
template<typename n_t >
int classify_mps (n_t w)
 

Variables

constexpr double low_wind_bound_kmph []
 
constexpr double high_wind_bound_kmph []
 get the high bound for the given class of storm More...
 

Detailed Description

Codes dealing with the Saffir-Simpson scale.

Function Documentation

◆ classify_kmph()

template<typename n_t >
int teca_saffir_simpson::classify_kmph ( n_t  w)

given wind speed in km/hr return Saffir-Simpson category NOTE: there is some ambiguity in the above as it's defined using integers. we are not converting to integer here. get the low bound for the given class of storm

◆ classify_mps()

template<typename n_t >
int teca_saffir_simpson::classify_mps ( n_t  w)

given wind speed in km/hr return Saffir-Simpson category NOTE: there is some ambiguity in the above as it's defined using integers. we are not converting to integer here. get the low bound for the given class of storm

◆ get_lower_bound_kmph()

template<typename n_t >
constexpr n_t teca_saffir_simpson::get_lower_bound_kmph ( int  c)
constexpr

get the lower bound for the given class of storm

◆ get_lower_bound_mps()

template<typename n_t >
constexpr n_t teca_saffir_simpson::get_lower_bound_mps ( int  c)
constexpr

get the low bound for the given class of storm

◆ get_upper_bound_kmph()

template<typename n_t >
constexpr n_t teca_saffir_simpson::get_upper_bound_kmph ( int  c)
constexpr

get the higher bound for the given class of storm

◆ get_upper_bound_mps()

template<typename n_t >
constexpr n_t teca_saffir_simpson::get_upper_bound_mps ( int  c)
constexpr

get the high bound for the given class of storm

Variable Documentation

◆ high_wind_bound_kmph

constexpr double teca_saffir_simpson::high_wind_bound_kmph[]
constexpr
Initial value:
= {63.0,
119.0, 154.0, 178.0, 209.0, 252.0,
std::numeric_limits<double>::max()}

get the high bound for the given class of storm

◆ low_wind_bound_kmph

constexpr double teca_saffir_simpson::low_wind_bound_kmph[]
constexpr
Initial value:
= {0.0, 63.0,
119.0, 154.0, 178.0, 209.0, 252.0}

Saffir-Simpson scale prescribes the following limits: CAT wind km/h -1: 0- 63 : Tropical depression 0: 63-119 : Tropical storm 1: 119-153 km/h 2: 154-177 km/h 3: 178-208 km/h 4: 209-251 km/h 5: 252 km/h or higher