Skip to content

Speedup UTCI computation #776

@biglimp

Description

@biglimp

Discussed in #768

Originally posted by damiendavidINSA July 15, 2025
Hi,
You can dramatically speedup the computation of the UTCI with Numba.

You just have to add the numba library and decorators:

from numba import float64, vectorize

@vectorize(
    [
        float64(
            float64,
            float64,
            float64,
            float64,
        )
    ],
    cache=True,
)
def utci_polynomial(D_Tmrt, Ta, va, Pa):

Here is the resulting file:
UTCI_calculations_UTCI_OPTIM.py.txt

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions