Hello everyone,
A short question: what is the resample type that the Urban Cooling model used to generate the outputs with the Land use resolution? bilinear, cubic, or Nearest Neighbor.
Thanks,
Isabel
Hello everyone,
A short question: what is the resample type that the Urban Cooling model used to generate the outputs with the Land use resolution? bilinear, cubic, or Nearest Neighbor.
Thanks,
Isabel
Hi Isabel,
Good question! I checked the Urban Cooling model’s source code, and there are actually two different resampling algorithms being used.
First, the LULC is resampled using mode. The primary reason for resampling the LULC is to ensure it has square pixels, which facilitate distance calculations. The LULC is also clipped to the intersection of the LULC, ET0 (reference evapotranspiration), and the AOI. The resampled and clipped LULC becomes the basis for intermediate rasters such as kc, green_area, and—depending on the cooling capacity calculation method—building_intensity or shade and albedo.
Then, ET0 (reference evapotranspiration) is resampled using cubicspline. It is also clipped to the intersection of the LULC, ET0, and the AOI. The final raster outputs (T_air, hm, cc) then depend on ET0 and various intermediate outputs.
The resampling algorithms mode and cubicspline refer to GDAL’s GRA_Mode and GRA_CubicSpline, respectively. There are short descriptions of each in GDAL’s documentation for GDALResampleAlg.
I hope this helps!