I have encountered problems with air temperature calculation in the Cooling model.
I got the Tair_nomix (seems correct),but their has no value for Tair.
The column in the aoi.shp is Null for avg_tmp_v and avg_tmp_an.
I had tried your solution earlier, it can calculate T air well for small area.
But still can’t works when I put all my study area in. The aoi.shp already clips for 1500m from the edges lulc raster, and my air blending area set for only 100m. The result as below.
Hi @zhongan.wang , thanks for following up. There may indeed be a problem with the convolution step that creates T_air.tif from T_air_nomix.tif and how it handles nodata pixels. I haven’t had time yet to reduce the problem to a small reproducible example, but it’s on my todo list.
I think it should be okay if the lulc raster has nodata values outside the bounds of the AOI shape, but due to a bug, that may be a problem. I’ll try to learn more about what is happening soon.