Street trees

Street tree inventories in Python, from New York's 2005 and 2015 censuses: species diversity, trees per kilometre, spacing gaps, health, change between censuses and volunteer data.

A street seen from above with trees along both kerbs, one stump, and a gap long enough for another tree marked. a street tree census is a map of planting sitesgap over 18 m: room for one morestump652,173 living street trees in New York; gaps over 18 m hold room for about 92,885 more

A street tree census records every tree along a city's streets: where it stands, what species it is, how thick its trunk is, how healthy it looks and what is wrong with its site. New York has done it twice, in 2005 and 2015, and the 2015 census of 652,173 living trees is open data. It is a map of the urban forest and of the city's planting sites, and with a street network it becomes a measure of how fully each neighbourhood's streets are planted.

The guides here load the census, explain what each field records and who recorded it, and measure species diversity, trees per kilometre of street, the gaps where more trees would fit, health against site conditions and change since 2005. Three pages deal with the traps: impossible trunk diameters, recorders who saw trees differently, and neighbourhood codes that match no current boundary.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Street trees sits in Analysis. Every topic on the site is listed on the topics index.