CLI · 2025

Pollution Management System

My first program

Pollution Management System

A terminal-based Python application that helps manage and analyze pollution data. This was my first programming project.

Year
2025
Kind
CLI
Role
Group of three, all of the code
Stack
  • Python Language
  • CLI Interface
01

The brief

The final project of Algorithms and Programming, my first programming module. It's a terminal app for the pollution readings of the Portuguese Environment Agency: each file holds a grid of measurements for a city, and the program turns it into an alert map (moderate, high, extreme or severe). Then it works on it, adjusting levels, spreading pollution with a north wind, finding the 3×3 area where a purifier would help most and comparing two readings over time.

02

Beyond the brief

There were twelve required tasks and five extras, and a group our size had to do at least two extras. We did all five: pollution hotspots, a heatmap file, rows and columns with the same alert level, wind from several directions and a prediction for the next hour. I added a few of my own as well. The program could only read files in one exact format, which got annoying, so you can create and save data files from inside the app and reset the data to what was loaded.

PythonLanguage
CLIInterface
  1. 01Python Language

    Every task, from reading the files to the wind simulations, in plain Python with no libraries.

  2. 02CLI Interface

    The menu that runs each task and comes back after it.