Dark in, light out

The Subway is a curved section of the Left Fork of North Creek in Zion National Park. The creek runs through a tube of sandstone there. In November the sun is low, and the canyon walls block it for most of the day.

I walked up the creek to the Subway on November 12 and recorded a GPS track. A sun model gives the walk in 0 of 180 minutes of direct sun. It gives the walk out 68 of 138 minutes.

My photos agree. Every camera frame from the morning shows shade. On the walk out, I sorted 65 frames from phone video into sun and shade before I compared them with the model. None of them disagrees with it.

In the chart, time runs down the page and miles up the creek run across. Orange is direct sun on the creek floor at eye height. Violet is shade. The white line is my track. The dots are photos and video frames, and the gold dots show sun. The maps at the right turn the canyon so that the creek runs from left to right, as in the chart. The numbers on the track match the five photos below the chart.

The chart and the minutes cover only the walk on the creek floor. They do not include the climb out of the canyon to the trailhead, from 14:48 to 15:45.

The photos are from Dust & Starlight. More photos from this walk are on the Dust & Starlight page for Zion National Park.

Watch the shadows move

The shadows of November 12, 8:30 to 16:45, silent. Download the page video.

What the numbers mean

  • The walk in ran from 8:49 to 11:49, from 0.9 miles to 3.46 miles up the creek. The model gives 0 minutes of direct sun.
  • I stayed at the Subway from 11:49 to 12:30. The model gives no direct sun there.
  • The walk out on the creek floor ran from 12:30 to 14:48, back to 0.82 miles. The model gives 68 of 138 minutes of sun at eye height. At the height of my feet, it gives 54 minutes.
  • I took 181 camera frames between 10:00 and 12:59, 130 from a Sony camera and 51 from a GoPro. All 181 show shade on the creek floor.
  • On the walk out, I took 16 short videos with my phone between 12:49 and 15:19. I sorted 65 frames from them into sun and shade without the model in view. 7 frames were unclear.
  • Of the other 58 frames, 51 match the model at eye height. 7 match it within the tolerance that I set before I looked: 10 minutes and 0.1 miles. None disagrees.
  • One video catches the sun as it arrives, at 13:49, 2.1 miles up the creek. At that moment the model has the sun only 0.2 degrees above the canyon rim.
  • The sun was highest at 12:15, about 35 degrees above the horizon.

What the model does not know

  • The terrain is bare earth. The model has no trees, no overhangs and no cloud.
  • The model tests the sun at one height above the lowest ground near the creek. The trail can be higher than that point.
  • Most of the 7 frames that needed the tolerance have their nearest blocking terrain within 3 m. That is a creek bank, or a trail higher than the creek floor.
  • I sorted the morning frames by eye before I set the blind test. A separate classifier sorted the walk-out frames without the model.
  • The GoPro had poor GPS in the canyon. I placed its frames on the creek line between the positions of the Sony frames.

Method

  • The terrain is a 3 m digital elevation model (DEM) from the USGS 3D Elevation Program. A 30 m DEM covers the ground beyond its edge.
  • The creek line comes from the USGS National Hydrography Dataset. The model puts a point every 25 m along it, on the lowest ground within 6 m.
  • pvlib gives the position of the sun every 5 minutes for November 12, 2026.
  • From 1.7 m (5.6 ft) above each point, the script follows a line toward the sun for 9 km. The point is in sun when the center of the sun is above the highest terrain on that line.
  • The maps use the same rule on a 6 m grid. At the times of the three maps, the grid agrees with the creek-line model at 92% to 100% of the points.
  • A script places each point of my track on the nearest point of the creek line. The track and the camera times agree at Archangel Cascades, 3.22 miles up the creek.
  • Each phone video has its own GPS position. At the start of each video, that position is within 7 m of my track at the same time.
  • The maps use a Lambert azimuthal equal-area projection centered on the canyon. The still turns them 39 degrees so that the creek runs from left to right.

Inside the script

A Python script, day17_shadow.py, makes the shadow maps. It steps from each grid cell toward the sun. A cell is in shade when the terrain at any step is above the line to the sun.

The script passes the default checks of the ruff linter and uses its code format. The excerpt below is trimmed.

def lit_at(hhmm):
    t = pd.DatetimeIndex([pd.Timestamp(f"2026-11-12 {hhmm}", tz="Etc/GMT+7")])
    sp = pvlib.solarposition.get_solarposition(t, 37.30, -113.06, altitude=1600)
    el = float(sp["apparent_elevation"].iloc[0])
    az = np.radians(float(sp["azimuth"].iloc[0]) + CONV)
    if el <= 0:
        return np.zeros(z0.shape, bool), el
    need = np.tan(np.radians(el))
    lit = np.ones(z0.shape, bool)
    for dist in steps:
        px, py = X + np.sin(az) * dist, Y + np.cos(az) * dist
        r = ((y1 - py) / RES).astype(int).clip(0, H - 1)
        c = ((px - x0) / RES).astype(int).clip(0, W - 1)
        lit &= dem[r, c] < z0 + dist * need
    return lit, el
From day17_shadow.py. z0 is the eye height above each cell. CONV turns a true bearing into a grid bearing. Past 3.5 km, the full script reads the 30 m DEM.

Data and credit

The USGS 3D Elevation Program provides the terrain. The USGS National Hydrography Dataset provides the creek line. pvlib gives the sun positions. The track is my own GPS recording from Gaia GPS.

Read the figure values.