Street lamps round the Sagrada Família, from gas to LED

Switch the sky to night at the Sagrada Família in Chronotopia and the streets round the temple light up. Move the year slider and the light changes: a few dim yellow lanterns in 1900, a cold bluish white in 1975, orange in 1995, two kinds of white today. The poles change too, from a cast-iron column about 4 m tall to an 8 m steel mast and then to the grey column the Eixample has had since 2000.

None of that comes from an inventory, because no public one exists. This article is about what the model knows about Barcelona’s street lighting, where each fact comes from, and the large part that is placed by rule. The research notes behind it are in the app’s repository, in research/sagrada-familia/report-street-lights.md, and every number below comes from there or from the code.

There is no list of lamps

The first thing we looked for was a dataset of lamp positions. The city’s open data portal, Open Data BCN, has none. We searched it for the Catalan words for street lighting, light points and lamps, and then went through the names of all 555 of its datasets. The only hit was a catalogue of photographs of street furniture, with no positions. The inventory exists inside the city’s lighting service, but it isn’t published.

OpenStreetMap has 105 street lamps in the area we model, and they are very unevenly spread. Two places are mapped lamp by lamp: Plaça de Gaudí, with the pond, and Plaça de la Sagrada Família, the garden square on the Passion side. Avinguda de Gaudí has about 15 points, most of them more than 30 m apart. The rest of the grid of streets, where most of the lamps are, has almost nothing.

Our first reading of the map was wrong, and the notes keep the correction. A dense cluster of about 56 lamps south-west of the temple looked like the promenade of Avinguda de Gaudí. It is Plaça de la Sagrada Família, whose gardens date from 1928. The avenue is the strip that runs north from the temple’s north corner, and it is the one with only 15 points.

So the model uses OpenStreetMap where it is complete, the two squares, and generates the rest.

How the generated lamps are placed

We found no source that gives the spacing of street lamps in the Eixample, or how far from the kerb they stand. The rules in scripts/street_lamps.py are common practice for streets of this width, and every one of them is marked as our estimate:

Wide pedestrian areas without a kerb, such as the stretch of Provença beside the temple, get lamps round their edge, 1.5 m in, at the same spacing.

That gives 851 generated lamps. With the 91 from the two squares and 21 on Avinguda de Gaudí, the model has 963.

The year each lamp appears follows what the research could say about the neighbourhood before 1910. Work on the temple began in 1882 among fields, and we found no source on lighting in the streets round it in the 1880s and 1890s. So before 1910 a generated lamp lights up only if a building stands within 40 m of it, and only on one side of the street. In 1910 the regular grid arrives: 126 lamps stand in the model before that year, and 716 more come on in 1910.

What a lamp looks like in each year

The poles and the light are decided by the year, in src/engine/streetLights.ts, not stored with each lamp. Three shapes cover the grid:

YearsPoleLight heightBasis
Up to 1967Fluted cast-iron column with a four-pane lantern3.9 mThe last gas lamps went out in 1967; the shape is our estimate
1967–2000Steel pole with a 1.5 m arm and a bowl head8.2 mEstimate: post-war steel poles of 8–10 m
From 2000Grey column with a short arm over the road and a lower head for the pavement7.7 m and 4.4 mThe ProEixample lamp, chosen in a 1997 competition and installed over ten years from about 2000

The 1967 date is one of the better sourced in the layer. Cristina Diez’s history of Barcelona’s street lighting, published by the UPC, and a local history article both give it as the year the last gas lamps were switched off. Before then, the same iron columns were often rewired for electricity, which is why the model keeps one column shape for gas and for early electric light. Diez also gives a count for the whole city in 1905: 13,079 gas lamps, 711 petroleum lamps and 228 electric ones.

The colour of the light

Each kind of lamp gives a different colour, and that is what changes most at night as the year moves. The table in the code has five eras:

FromLightColour in the modelBrightnessHow sure
StartGas with an incandescent mantlewarm yellow0.45Medium
1910Electric incandescent bulbswarm yellow, slightly deeper0.7Medium
1967Mercury vapourbluish white1Medium
1985High-pressure sodiumorange1Medium
2018LED: 4000 K over the road, 3000 K over the pavementneutral and warm white1High for the colours, low for the year

The colours themselves are well known; the years of each change round the Sagrada Família mostly are not. A few documents pin points along the way. In 1972 the city’s gazette records the purchase of 112 mercury-vapour sets for carrer de Sicília, one of the streets in the model. In the 2018–2020 lighting plan, sodium was still 64% of the city’s lights, with 20% LED and 8% metal halide, out of 146,000 light points, according to Sostenible.cat. The 2013–2015 plan, reported by Betevé, set the two LED colours, 3000 K for pavements and 4000 K for roads, and lowered the pavement lamps to under 5 m. That plan is why the ProEixample column has two heads in the model.

We found no date for when the streets round the temple got LED. 2018 is our guess, and the table says so.

The brightness column is also an estimate. A gas mantle gave much less light than a modern lamp, so the older eras are dimmed rather than shown at full strength in a different colour.

Two kinds of lamp with their own history

Avinguda de Gaudí has a lamp with a story that is documented. Pere Falqués designed a five-armed lamp on a stone base in 1909 for the Cinc d’Oros crossing, where Passeig de Gràcia meets the Diagonal. The lamps stood there until 1957 and were moved to Avinguda de Gaudí in 1985, between Provença and Indústria; a photo record in the city’s archive shows one there in 1989.

In the model, the promenade gets these lamps in 1985, in a single line down its middle: the 15 or so positions from OpenStreetMap, plus one every 25 m wherever the map leaves a gap of more than 30 m. Before 1985 the avenue has ordinary lamps of the period down the same line, which are removed that year. The Falqués lamps keep their warm light until 2018, when they get the same LED as the rest.

The two squares get 6 m masts in their own years: Plaça de la Sagrada Família from 1928, when its gardens were laid out, and Plaça de Gaudí from 1981, when it opened with its pond. Their light follows the city’s colour for each year. Where a generated lamp stands within 15 m of one of these, it is taken away in the year the real one arrives.

How the light reaches the street

A lamp in the model is three things. There is the pole and its head, which glows at night. There is a glow round the light itself, which never shrinks below a few pixels so that distant lamps still read as points. And there is a light map: an image of the ground, 0.75 m per pixel on a computer and 1.5 m on a phone, with a pool of light painted under every lamp.

The pools follow the way light from a lamp falls on the ground. The code’s comment says that physics gives a fall-off of (1 + (d/h)²)^-1.5, where d is the distance from the foot of the lamp and h its height, and that the model uses a power of 1.4 instead. The softer curve stands for the light thrown back by façades and paving, which keeps the street between two lamps from going black. Each pool reaches 3.2 times the lamp’s height.

The street floor, the lower storeys of the façades, the cars and the people walking all sample that map at night, so a pedestrian passing under a lamp is lit by it. The lamps come on as the evening falls, on the same ramp as the cars’ headlights. The temple has its own floodlighting in the model, which is a separate layer from the street lamps.

What it gets wrong

The way to fix most of this is a formal request to the city’s lighting service for its inventory, and a search of the municipal photo archive for street views of Marina, Sardenya and Provença between 1900 and 1990. Both are on the research list. Until then, the night view is a picture of what lighting there was in each period, placed where it plausibly stood. The checking against photographs that the temple went through hasn’t been done for the streets yet.

You can try it in the Sagrada Família in Chronotopia: set the sky to night and drag the year from 1900 to today.