huracanpy.tc.pace#

huracanpy.tc.pace(pressure, wind=None, model=None, sum_by=None, threshold_wind=None, threshold_pressure=None, wind_units='m s-1', **kwargs)[source]#
Calculate a pressure-based accumulated cyclone energy (PACE) for each individual

point

PACE is calculated the same way as ACE, but the wind is derived from fitting a pressure-wind relationship and calculating wind values from pressure using this fit

Example

This function can be called in two ways

1. Pass the pressure and wind to fit a pressure-wind relationship to the data and then calculate pace from the winds derived from this fit

>>> pace, pw_model = get_pace(pressure, wind)

The default model to fit is a quadratic polynomial (numpy.polynomial.polynomial.Polynomial with deg=2)

2. Pass just the pressure and an already fit model to calculate the wind speeds from this model

>>> pace, _ = get_pace(pressure, model=pw_model)
Parameters:
  • pressure (array_like)

  • wind (array_like, optional)

  • model (str, class, or object, optional)

  • sum_by (array_like) – Variable to take the sum of PACE values across. Must have the same length as pressure/wind. For examples, see the documentation for huracanpy.tc.ace

  • threshold_wind (scalar, optional)

  • threshold_pressure (scalar, optional)

  • wind_units (str, default="m s-1")

  • **kwargs

Returns:

  • pace_values (array_like)

  • model (object)