INNER CODE UNIT · Python
potential_intensity
QianyeSu/Skyborn · src/skyborn/calc/GPI/core.py:591
def potential_intensity(
sst: Any,
psl: Any,
pressure_levels: np.ndarray,
temperature: np.ndarray,
mixing_ratio: np.ndarray,
actual_levels: Optional[int] = None,
) -> Tuple[Any, Any, int]:
"""
Calculate tropical cyclone potential intensity with automatic dimension detection.
This is the primary NumPy entry point. It automatically detects whether the
thermodynamic input describes a single profile, a 3D gridded field, or a
4D time series and dispatches to the compiled backend directly.
Parameters
----------
sst : float or ndarray