INNER CODE UNIT · Python

_calc_potential_intensity

QianyeSu/Skyborn · src/skyborn/calc/GPI/core.py:420

def _calc_potential_intensity(
    prepared: _PreparedInputs,
    *,
    diagnostics: bool = False,
    outflow_source: str = "cape_star",
    CKCD: float = 0.9,
):
    """Execute the requested compiled backend after normalization."""
    if prepared.kind == "profile":
        func = _PROFILE_BACKENDS[diagnostics]
        if diagnostics:
            outflow_flag = _normalize_outflow_source(outflow_source)
            return _diagnostic_result(
                *func(
                    float(prepared.sst),
                    float(prepared.psl),
                    prepared.pressure_levels,
                    prepared.temperature,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…