If you flew over the Great Lakes last week — either in an airplane or aboard the International Space Station — you might have noticed an explosion of colour between Ontario and New York state.

Lake Ontario was an electric blue on all but its westernmost surface.

The phenomenon was visible from orbit, where an astronaut on the space station captured it with a camera.

A NASA satellite also recorded images.

The lively neon hue used to be a common event on Lake Ontario, but has grown rarer over the last two decades, said biologist Michael Twiss, a professor at Clarkson University in New York state who studies the Great Lakes.

Twiss explained that the colour develops from a confluence of several factors, including micro-organisms that thrive in warm temperatures. As those tiny creatures photosynthesize, they cause the water's pH to rise, which in turn makes calcium and carbonate ions that are naturally present in the lake condense into white blocks of calcite on the organisms' surface.

Those tiny white chunks reflect blue and green light especially well, Twiss said, giving the water its vibrant aquamarine tint.

The phenomenon is called a "whiting event."

"It's odd for it to happen in Lake Ontario. It used to happen all the time," he said. But then invasive zebra mussels swept into the Great Lakes in the early 1990s. "They started accumulating the calcium in their shells. So now this only tends to happen when it's warm, because calcite precipitates even more when it's warm."

Eventually, the colouring from the whiting event fades as the water cools and as the condensing chunks of calcite get large enough to sink the micro-organisms they form on.

Twiss said the aquatic organisms that contribute to the whiting event can include picocyanobacteria, a non-toxic form of blue-green algae. But they shouldn't be confused with a harmful bloom of blue-green algae, where the microbes multiply and produce a toxin that can make the water unsafe for swimming or drinking.

It's very difficult to distinguish a harmful bloom using satellite images alone, but in this case, available evidence suggests any blue-green present are not part of one, said Greg Boyer, a chemistry professor at the State University of New York and director of the Great Lakes Research Consortium.

"It so happened we had an Environment Canada ship doing a survey of Lake Ontario during Aug. 19-24 — same time as the [NASA] satellite," he said in an email. "What few algae were there were dominated by dinoflagellates, diatoms and other generally beneficial algae.... There is no ground-truth data that would support the presence of a bloom and lots of contradictory data that says a bloom did not occur."

Such blooms occur often enough on Lake Erie. Scientists even warned earlier this year that Lake Erie was in for "very bad algae" this summer.

The predictions were right: by mid-July, the public health department in Chatham-Kent, Ont., had to close all but one of the region's public beaches.