Heat and Trees#
Urban Heat Islands and Street Trees#
In this notebook we’ll be exploring the urban heat island effect by looking at the impact on surface temperature of roof color and street trees. We’ll be replicating the process described here: http://urbanspatialanalysis.com/urban-heat-islands-street-trees-in-philadelphia/ but using Python tools rather than ESRI.
Extra packages: To run this notebook, you’ll need the PyViz tools and a library of top of atmosphere calculations from
pip install rio-toa
Data sources: This notebook uses Landsat data from Google Cloud Storage as well as some geographic data from OpenDataPhilly.
import xarray as xr
import pandas as pd
import numpy as np
import geopandas as gpd
import cartopy.crs as ccrs
import hvplot.xarray # noqa
import hvplot.pandas # noqa
from geoviews.tile_sources import EsriImagery
from pyproj import CRS
WARNING:param.main: pandas could not register all extension types imports failed with the following error: cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic' (/home/runner/work/examples/examples/heat_and_trees/envs/default/lib/python3.8/site-packages/pandas/core/dtypes/generic.py)