diagnostic.functions.urban_heat_island_diurnal_cycle#

urban_heat_island_diurnal_cycle(ds: Dataset, urban_coord: tuple, rural_coord: tuple, projection=None)[source]#

Calculate the diurnal cycle of the urban heat island effect as the difference in temperature between an urban and rural area. The grid-boxes closest to the urban and rural coordinates are selected and a difference is calculated between the two.

Parameters:
  • ds (xr.Dataset) – The data to calculate the urban heat island effect of.

  • urban_coord (tuple) – The coordinates of the urban area in the format (lat, lon).

  • rural_coord (tuple) – The coordinates of the rural area in the format (lat, lon).

  • projection (str, optional) – The projection used to convert the urban and rural coordinates to the dataset’s projection.

Returns:

The diurnal cycle of the urban heat island effect as the difference in temperature between the urban and rural area.

Return type:

xr.Dataset