Skip to content

A Python-based Data Analysis Tool for Examining and Visualizing Weather Patterns in Tehran. Utilizes Historical Weather Data to Provide Insights Into Trends, Temperature Variations, and Other Climate-related Metrics for Better Understanding and Forecasting.

Notifications You must be signed in to change notification settings

MisaghMomeniB/Tehran-Weather-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

🌤️ Tehran Weather Analysis

A comprehensive Python-based data analysis project that explores historical and real-time weather patterns in Tehran. Ideal for understanding climate trends, visualizing seasonal changes, and uncovering meaningful insights from meteorological data.


📋 Table of Contents

  1. Overview
  2. Objectives
  3. Dataset
  4. Tech Stack & Requirements
  5. Installation & Setup
  6. Analysis Workflow
  7. Insights & Visualizations
  8. Future Enhancements
  9. Contributing
  10. License

💡 Overview

This project delves into Tehran’s weather data—such as temperature, humidity, precipitation, and wind speed—to explore historical trends, seasonal cycles, and extreme weather events. The goal is to translate raw data into scientific insights and visual stories.


🎯 Objectives

  • 📈 Track long-term trends (e.g., increasing temperatures or shifting rainfall patterns)
  • 📉 Analyze seasonal cycles across months and years
  • 🌪️ Identify extreme events, like heatwaves or heavy rain
  • 🔍 Correlate multiple variables to understand interdependencies (e.g., temperature vs humidity)
  • 🖼 Create visual storytelling dashboards that communicate findings intuitively

🗂 Dataset

Data typically includes:

  • Date – Timestamp (daily/hourly)
  • Temperature (max/min/avg)
  • Humidity, Precipitation, WindSpeed, Pressure, etc.

(Adapt descriptions to match your actual dataset structure.)


🛠 Tech Stack & Requirements

  • Python 3.7+
  • Libraries:
    • pandas, NumPy – data manipulation
    • matplotlib, seaborn – static visualizations
    • Optional: statsmodels, SciPy for trend modeling
    • Optional: plotly, Streamlit for interactive dashboards

⚙️ Installation & Setup

git clone https://github.com/MisaghMomeniB/Tehran-Weather-Analysis.git
cd Tehran-Weather-Analysis
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

📊 Analysis Workflow

  1. Data load & cleaning – handle missing values, convert types, extract date parts
  2. Exploratory analysis – visualize day-by-day, month-by-month, and year-by-year trends
  3. Statistical trend detection – apply moving averages and regression or seasonal decomposition
  4. Heatmap visualizations – e.g., month vs year grids for temperature or rainfall
  5. Correlation analysis – explore variable interactions using correlation matrices

🎨 Insights & Visualizations

  • Line plots for daily, monthly, and annual temperature trends
  • Boxplots of seasonal humidity or temperature variation
  • Heatmaps showing seasonal patterns year-over-year
  • Correlation matrices highlighting variable inter-dependencies
  • Optionally, reports/ directory contains charts (PNG/HTML) and summary tables

⚡ Future Enhancements

  • 📆 Time‑series forecasting using ARIMA, Prophet, or LSTM for future weather prediction
  • 🌐 Add real-time API integration (e.g., OpenWeatherMap)
  • 🧭 Interactive dashboards using Plotly or Streamlit
  • 🌍 Compare Tehran trends with other cities
  • 📦 Package as a CLI tool or module for reusability

🤝 Contributing

Contributions are welcome! Steps to collaborate:

  1. Fork this repo
  2. Create a feature branch (feature/...)
  3. Add code, docs, or visualizations with clear comments
  4. Submit a Pull Request explaining your additions

📄 License

Released under the MIT License — see LICENSE for details.

About

A Python-based Data Analysis Tool for Examining and Visualizing Weather Patterns in Tehran. Utilizes Historical Weather Data to Provide Insights Into Trends, Temperature Variations, and Other Climate-related Metrics for Better Understanding and Forecasting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages