David Waldron

Finding the shadiest spots in downtown Indianapolis

A new R package for ray tracing reveals the sunniest and shadiest locations in Indy's mile square.

David Waldron Aug 16, 2018

Indiana isn't known for having the most interesting topographical features, but it does have excellent elevation data available for download via opentopography.org. There, you can download either the raw point cloud data collected via LiDAR, or the bare earth elevation models that have been calculated from the point cloud data. To calculate the shadows of buildings in Indianapolis, I selected point cloud data for Indianapolis' Mile Square (between North, East, South, and West streets).

LiDAR point cloud data
State of Indiana LiDAR Data

I used R's lidR package to calculate a digital surface model (DSM), which captures the elevation of buildings, trees, and other features.

R's suncalc package gives the position of the sun on a given time and location. Using this along with the new rayshader package, I calculate the shadows cast on the DSM for evey 15 minutes between nautical dawn and nautical dusk. The following animation shows the model from the north of the city.

A day of shadows in downtown Indy
State of Indiana LiDAR Data

There are two anomalies in the elevation model. The first is that the LiDAR data captured two large cranes during the construction of the JW Marriott building. In the elevation model, these will appear as if they are solid walls, creating shadows that wouldn't exist in reality.

Cranes
State of Indiana LiDAR Data

The second problem is that the LiDAR captured smoke from the Perry K. Generating Station smokestacks. Again, this will cause shadows that might not actually exist.

Smokestacks
State of Indiana LiDAR Data

This animation shows only the shadows calculated by the ray tracing method (using the ray_shade function). This ignores ambient or reflected light.

Ray-traced downtown Indianapolis
State of Indiana LiDAR Data

Averaging over every frame in this sequence gives a representation of the shadiest spots in downtown Indianapolis.

Shadiest spots in downtown Indianapolis (Summer)
State of Indiana LiDAR Data
Shadiest spots in downtown Indianapolis (Winter)
State of Indiana LiDAR Data

Comments


Read next