Labsat · Unicamp
The problem

GOES-16 sends images every 10 minutes in NetCDF (.nc), a heavy scientific format that browsers cannot open. The problem was distributing these satellite images on the internet quickly: turning them into a map that opens in seconds, for anyone.

At Unicamp's Cepagri I rebuilt the GOES-16 satellite image processing and created the high-resolution map portal, in production at labsat.cpa.unicamp.br. NOAA publishes a scan every 10 minutes; a container downloads, processes and writes the products, and Nginx serves the tiles to Leaflet.

Decisions and why

Process once, serve files
Every scan becomes PNGs, tiles and GeoJSON on disk. A thousand people on the map cost the same as one: Nginx only hands out files.
Nginx as a reverse proxy in front
One entry point for the portal and the tile server, with caching and headers, without exposing the containers directly.
Tiles instead of one huge image
Leaflet downloads only the squares on screen at the current zoom. A phone opens the high-resolution map without downloading the whole disk.
Tile server apart from processing
One container processes and another serves. If processing chokes on a bad file, the map stays up with the last scan.
requestresponse
Pick a scenario above to watch the message travel through the architecture.

What it looks like

Real screenshot of the platform, click to open
plataforma.labsat.cpa.unicamp.br
Labsat: canal infravermelho do GOES sobre a América do Sul
Camadas