UMEP icon indicating copy to clipboard operation
UMEP copied to clipboard

Speedup UTCI computation

Open biglimp opened this issue 6 months ago • 2 comments

Discussed in https://github.com/UMEP-dev/UMEP/discussions/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

biglimp avatar Aug 12 '25 08:08 biglimp

@damiendavidINSA , there is a non existing function (utci_polynomial_single) that is called in your example.

biglimp avatar Sep 25 '25 13:09 biglimp

Isn't it a way to speedup ? =)

j3r3m1 avatar Sep 25 '25 14:09 j3r3m1