Night sky brightness forecast, Indonesia
A public web map that forecasts how dark the night sky will be over Indonesia, hour by hour for the next 72 hours. The model behind it came out of a research project on forecasting sky brightness.
The problem
Light-pollution atlases show how dark a place usually is. They can’t say whether tonight will be darker than tomorrow, because that depends on the Moon and the weather. Sensors that measure sky brightness are rare, and none of the data the model learned from comes from Indonesia. The forecast works without a local sensor, since every input comes from open satellite and weather data.
The model
I compared two neural networks against tree-based models (random forest and XGBoost) and an ensemble, with the pass criteria written down before the final round of 126 training jobs (about 15 hours of rented GPU time). The site runs the Temporal Fusion Transformer. When I later rebuilt the dataset from scratch, it matched the original apart from rounding differences smaller than 1e-14.
At nine stations the model never saw during training, its nighttime error is about 0.8 magnitudes per square arcsecond. On this scale, city skies sit around 16 to 18 and the darkest natural skies near 22. Asked to pick the darkest of three nights at those stations, it gets it right 63% of the time. Going by the Moon’s phase alone gets 45%.
The site
A scheduled job I wrote runs once a day. It pulls the latest weather and atmosphere forecasts (ECMWF and CAMS) and runs the model over 83,432 land cells, roughly 5 km apart, to produce hourly maps for the next 72 hours. The forecast reaches the browser as small binary files that the page decodes.
Limits
The site says up front that the forecast is not a measurement and not a light-pollution atlas. It only covers astronomical night, when the Sun is more than 18 degrees below the horizon, and only land. Areas higher than the training stations are marked on the map. The weather data comes through Open-Meteo’s free tier, which is for non-commercial use, so the site stays free.