UMEP
UMEP copied to clipboard
Speedup UTCI computation
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
@damiendavidINSA , there is a non existing function (utci_polynomial_single) that is called in your example.
Isn't it a way to speedup ? =)