UMEP-dev / UMEP

Urban Multi-scale Environmental Predictor
https://umep-docs.readthedocs.io/
61 stars 15 forks source link

Warning in calculating mean radiation temperature and shadow #550

Closed biglimp closed 1 year ago

biglimp commented 1 year ago

Discussed in https://github.com/UMEP-dev/UMEP/discussions/548

Originally posted by **land333land** September 9, 2023 I have prepared all the pre-data for calculating shade and mean radiant temperature, but when I put them in I find that it did not start running and suggested the following error. In fact, when I was calculating sky, it was running fine. I used the test data provided and found that it doesn't run either. WARNING Traceback (most recent call last): File "C:\Users/YLS/AppData/Roaming/QGIS/QGIS3\profiles\ccfdd/python/plugins\UMEP\SOLWEIG\solweig.py", line 493, in start_progress if np.where(self.lcgrid == ndlc)[0] > 0: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
biglimp commented 1 year ago

fixed