Skip to content

Gathering, refining and examining data on more than 1.6 million street trees across 40+ municipalities in Los Angeles County.

License

Notifications You must be signed in to change notification settings

stiles/la-trees

Repository files navigation

Los Angeles street trees

A spatial data collection of trees planted within municipal right of way in Los Angeles and parts of Los Angeles County, in geojson and Esri Shapefile formats. (Some larger cities are stored here as csv to avoid Github's 100MB file size restriction.)

This repository contains 1.6 million records of individual trees in 40+ cities collected in recents years as a hobby project and during my time as a reporter at the Los Angeles Times. Tree records in a county the size of Los Angeles become immediately dated and incomplete after their inital collection, so I can't guarantee the accuracy or completeness of the data.

The data are used to create this interactive map showing LA's Jacaranda locations: https://jacarandamap.com.

The data used in the Jacaranda project is too large to store here, but it's on S3 in GeoJSON format:

Questions? Email me.

Municpalities collected, by name

Municipality ↓ Tree count Population
Agoura Hills 5,100 20,330
Alhambra 20,100 83,653
Arcadia 15,600 56,364
Artesia 2,500 16,522
Bell Gardens 7,000 42,072
Bellflower 8,400 76,616
Beverly Hills 29,000 34,109
Burbank 37,000 103,340
Carson 22,500 91,714
Cerritos 31,300 49,041
Covina 14,600 47,796
Culver City 16,900 38,883
Diamond Bar 20,100 55,544
Downey 18,500 111,772
Duarte 7,900 21,321
El Monte 11,000 113,475
El Segundo 6,400 16,654
Glendale 56,000 203,054
Glendora 12,600 50,073
Inglewood 21,800 109,673
La Mirada 17,000 48,527
Lancaster 46,000 160,316
Lawndale 7,400 32,769
Lomita 3,000 20,256
Long Beach 140,000 462,257
Los Angeles City 545,000 3,792,621
Los Angeles County 99,000 10,100,000
Malibu 7,400 12,645
Norwalk 21,400 105,549
Palmdale 19,000 152,750
Paramount 7,800 54,098
Pasadena 71,000 137,122
Pomona 50,000 149,058
Rancho Palos Verdes 13,500 41,643
Redondo Beach 13,000 66,748
San Dimas 10,400 33,371
San Fernando 9,500 23,645
San Gabriel 9,900 39,718
San Marino 9500 13147
Santa Clarita 112,000 210,888
Santa Fe Springs 8,700 16,223
Santa Monica 32,000 89,736
South Gate 20,900 94,396
South Pasadena 11,400 25,619
Temple City 9,000 35,558
Ventura County/Simi Valley 16,400 126,000
Walnut 3,200 29,172
West Covina 33,000 106,098
West Hollywood 9,000 34,399
Whittier 27,800 85,331

Municpalities collected, by tree count

Municipality Tree count ↓ Population
Los Angeles City 545,000 3,792,621
Long Beach 140,000 462,257
Santa Clarita 112,000 210,888
Los Angeles County 99,000 10,100,000
Pasadena 71,000 137,122
Glendale 56,000 203,054
Pomona 50,000 149,058
Lancaster 46,000 160,316
Burbank 37,000 103,340
West Covina 33,000 106,098
Santa Monica 32,000 89,736
Cerritos 31,300 49,041
Beverly Hills 29,000 34,109
Whittier 27,800 85,331
Carson 22,500 91,714
Inglewood 21,800 109,673
Norwalk 21,400 105,549
South Gate 20,900 94,396
Alhambra 20,100 83,653
Diamond Bar 20,100 55,544
Palmdale 19,000 152,750
Downey 18,500 111,772
La Mirada 17,000 48,527
Culver City 16,900 38,883
Ventura County/Simi Valley 16,400 126,000
Arcadia 15,600 56,364
Covina 14,600 47,796
Rancho Palos Verdes 13,500 41,643
Redondo Beach 13,000 66,748
Glendora 12,600 50,073
South Pasadena 11,400 25,619
El Monte 11,000 113,475
San Dimas 10,400 33,371
San Gabriel 9,900 39,718
San Fernando 9,500 23,645
San Marino 9500 13147
Temple City 9,000 35,558
West Hollywood 9,000 34,399
Santa Fe Springs 8,700 16,223
Bellflower 8,400 76,616
Duarte 7,900 21,321
Paramount 7,800 54,098
Lawndale 7,400 32,769
Malibu 7,400 12,645
Bell Gardens 7,000 42,072
El Segundo 6,400 16,654
Agoura Hills 5,100 20,330
Walnut 3,200 29,172
Lomita 3,000 20,256
Artesia 2,500 16,522

Sources

Records collected from municipalities via the California Public Records Act or official open-data portals. Population via the US Census Bureau.


Use this code

Prerequisites

Before you begin, ensure you have the following installed on your system:

We recommend using a virtual environment for Python projects. For this repo, pipenv is the chosen manager.

Getting Started

Follow these steps to prepare your environment:

1. Clone the repo

First, clone this repository to your local machine and navigate into it using your terminal:

git clone <repository-url>
cd <repository-name>

2. Create a virtual environment

Inside the repository directory, initiate a virtual environment using pipenv:

pipenv shell

This command creates a virtual environment and activates it.

3. Install dependencies

Install the required dependencies, including Pandas, Geopandas and others, with the following command:

pipenv install

Launching Jupyter Lab

With your environment set up and dependencies installed, you are ready to start working with the notebooks:

jupyter lab

This command launches Jupyter Lab in your browser, where you can open, edit and run the notebooks.

About

Gathering, refining and examining data on more than 1.6 million street trees across 40+ municipalities in Los Angeles County.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages