UMEP-dev / UMEP-processing

7 stars 9 forks source link

SpatialTC not calculating UTCI due to Attribute Error #33

Closed dawgermany closed 9 months ago

dawgermany commented 11 months ago

The SpatialTC Component is not able to call the utci function as there is an attribute error. Its probably a typo as its trying to call utci.utci_calculator_grid, while the only function present in UTCI_calculations is utci_calculator. I know that in the docs it is stated that there is only PET available, but the page has last been changed on March 23rd whilst there has been a commit by Nils Wallenberg with the title "Updated Spatial TC. COMFA and UTCI now available." on April 24th and the feature is in the official changelog under 2.0.2.

Also the first part of the utci_calculator function throws an error due to an ambiguous array. I patched it for my personal use as I know that my grids are complete and thus i do not need to check if theres a -999 value.

Im sorry that this issue is not as detailed as it could be but I am in a rush right now and thought its better to submit what i found out than not submit it 😅

nilswallenberg commented 10 months ago

Sorry for the delay. I have uploaded some new code that hopefully fixes your problem. :)

Cheers, Nils