Skip to content

Rory Hackney

Software Developer

Web Developer / Designer

Screenshot of the terminal showing various readings for Tirana in Europe, and overall stats for Windhoek in Africa, containing 9266 readings.

Weather Data Manager

April 2023

Tags

  • Back End
  • Java
  • Software Development
  • Unit Testing

Using Java, reads nearly 3 million rows of weather data from a CSV file, cleaning bad entries and creating an array of valid WeatherReading objects, providing useful methods to get data about each city.

Using a large data file from Kaggle tracking the daily temperature of various cities, I scanned each row, ignoring or cleaning invalid data such as negative temperatures or missing values. Once the array of WeatherReadings was created, I implemented methods to retrieve a subset of readings or stats for a specific location.

You can find the data at kaggle.com/datasets/sudalairajkumar/daily-temperature-of-major-cities .

Main runs the demo, instantiating the GlobalWeatherManager which reads the file using Scanner. Methods getReadings(index, count) and getCityListStats(country, state, city), are called, displaying a list of readings for Tirana in Europe and the stats for Windhoek in Africa.

Screenshot of the terminal showing various readings for Tirana in Europe, and overall stats for Windhoek in Africa, containing 9266 readings.

Thanks for checking out my project!

Back to Portfolio