help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
weather-forecasting
/
data
RSK World
weather-forecasting
Weather Forecasting Dataset - Time Series + ML Models + Anomaly Detection
data
  • dataset_info.json8.4 KB
  • locations.csv1.8 KB
  • seasonal_statistics.csv6 KB
  • weather_advanced.csv12.9 KB
  • weather_alerts.csv3.6 KB
  • weather_data.csv18.1 KB
  • weather_data.json20.6 KB
  • weather_forecast_comparison.csv4.2 KB
  • weather_hourly_extended.csv6.6 KB
README.mdseasonal_statistics.csv
README.md
Raw Download

README.md

<!--
================================================================================
Weather Forecasting Dataset - README

Project: Weather Forecasting Dataset
Category: Time Series Data
Version: 2.0.0
Created: 2024

Author: Molla Samser
Designer & Tester: Rima Khatun
Website: https://rskworld.in
Email: help@rskworld.in | support@rskworld.in
Phone: +91 93305 39277

About RSK World:
RSK World is your one-stop destination for free programming resources,
source code, and development tools.

ยฉ 2024 RSK World - https://rskworld.in
================================================================================
-->

# ๐ŸŒค๏ธ Weather Forecasting Dataset

[![Version](https://img.shields.io/badge/Version-2.0.0-blue.svg)](https://rskworld.in)
[![Category](https://img.shields.io/badge/Category-Time%20Series%20Data-green.svg)](https://rskworld.in)
[![Difficulty](https://img.shields.io/badge/Difficulty-Intermediate-yellow.svg)](https://rskworld.in)
[![License](https://img.shields.io/badge/License-Educational-orange.svg)](LICENSE)
[![Author](https://img.shields.io/badge/Author-Molla%20Samser-purple.svg)](https://rskworld.in)

A comprehensive weather dataset with temperature, humidity, pressure, and precipitation data for weather forecasting models. Perfect for **machine learning**, **time series analysis**, and **climate research**.

---

## ๐Ÿ“Š Dataset Overview

This dataset includes historical weather data with temperature, humidity, pressure, precipitation, wind speed, air quality, solar radiation, and other meteorological variables. Perfect for weather forecasting, climate analysis, and time series prediction models.

### Key Features

- ๐ŸŒก๏ธ **Temperature & humidity data** - Hourly measurements with feels-like temperatures
- ๐ŸŒง๏ธ **Pressure & precipitation** - Atmospheric pressure and rainfall data
- ๐Ÿ’จ **Wind speed & direction** - Including gust measurements
- ๐Ÿ“ **Multiple locations** - 5 major Indian cities
- โฑ๏ธ **Time series format** - Perfect for ML models
- ๐ŸŒฌ๏ธ **Air Quality Index (AQI)** - PM2.5, PM10, Ozone, NO2, SO2, CO
- โ˜€๏ธ **Solar radiation data** - UV index and solar radiation measurements
- ๐ŸŒฑ **Soil conditions** - Temperature and moisture data
- ๐Ÿ”ฎ **Forecast comparisons** - Predicted vs actual data for model evaluation
- ๐Ÿšจ **Weather alerts** - Historical alert and warning data

---

## ๐Ÿ—‚๏ธ Project Structure

```
weather-forecasting/
โ”œโ”€โ”€ ๐Ÿ“ data/
โ”‚ โ”œโ”€โ”€ weather_data.csv # Main weather data (120+ records)
โ”‚ โ”œโ”€โ”€ weather_advanced.csv # Advanced data with 35+ parameters
โ”‚ โ”œโ”€โ”€ weather_alerts.csv # Weather alerts and warnings
โ”‚ โ”œโ”€โ”€ weather_forecast_comparison.csv # Forecast vs actual comparison
โ”‚ โ”œโ”€โ”€ seasonal_statistics.csv # Monthly/seasonal statistics
โ”‚ โ”œโ”€โ”€ locations.csv # Location information
โ”‚ โ”œโ”€โ”€ weather_hourly_extended.csv # Extended hourly data
โ”‚ โ”œโ”€โ”€ weather_data.json # JSON format data
โ”‚ โ””โ”€โ”€ dataset_info.json # Dataset metadata
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ scripts/
โ”‚ โ”œโ”€โ”€ weather_analysis.py # Data analysis & visualization
โ”‚ โ”œโ”€โ”€ data_preprocessing.py # ML preprocessing utilities
โ”‚ โ”œโ”€โ”€ ml_models.py # Machine learning models
โ”‚ โ”œโ”€โ”€ anomaly_detection.py # Anomaly detection algorithms
โ”‚ โ””โ”€โ”€ requirements.txt # Python dependencies
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ notebooks/
โ”‚ โ””โ”€โ”€ weather_analysis.ipynb # Jupyter notebook for analysis
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ api/
โ”‚ โ””โ”€โ”€ weather_api.py # Weather API simulation (Flask)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ index.html # Demo page
โ”œโ”€โ”€ ๐Ÿ“„ dashboard.html # Advanced analytics dashboard
โ”œโ”€โ”€ ๐Ÿ“„ preview-generator.html # Preview image generator
โ”œโ”€โ”€ ๐Ÿ“„ README.md # This file
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE # Educational license
โ”œโ”€โ”€ ๐Ÿ“„ CHANGELOG.md # Version history
โ”œโ”€โ”€ ๐Ÿ“„ .gitignore # Git ignore rules
โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ weather-forecasting.png # Project preview image
โ””โ”€โ”€ ๐Ÿ–ผ๏ธ weather-forecasting.svg # Project icon
```

---

## ๐Ÿ“ˆ Data Features

### Basic Weather Data
| Feature | Description | Unit |
|---------|-------------|------|
| temperature_celsius | Air temperature | ยฐC |
| humidity_percent | Relative humidity | % |
| pressure_hpa | Atmospheric pressure | hPa |
| wind_speed_kmh | Wind speed | km/h |
| wind_direction | Wind direction | Cardinal |
| precipitation_mm | Precipitation | mm |
| cloud_cover_percent | Cloud coverage | % |
| visibility_km | Visibility | km |
| uv_index | UV index | 0-11 |

### Advanced Parameters (v2.0)
| Feature | Description | Unit |
|---------|-------------|------|
| feels_like_celsius | Feels-like temperature | ยฐC |
| air_quality_index | Air quality index | AQI |
| pm25 | Fine particulate matter | ยตg/mยณ |
| pm10 | Coarse particulate matter | ยตg/mยณ |
| ozone_ppb | Ground-level ozone | ppb |
| solar_radiation_wm2 | Solar radiation | W/mยฒ |
| soil_temperature | Soil temperature | ยฐC |
| soil_moisture | Soil moisture | % |
| heat_index | Heat index | ยฐC |
| wind_chill | Wind chill factor | ยฐC |
| dew_point | Dew point temperature | ยฐC |

---

## ๐Ÿค– Machine Learning Models

The dataset includes ready-to-use ML models:

### Available Models
- **Linear Regression** - Baseline predictions
- **Ridge/Lasso Regression** - Regularized models
- **Random Forest** - Ensemble tree-based
- **Gradient Boosting** - Sequential boosting
- **XGBoost** - Optimized gradient boosting
- **Support Vector Regression** - Kernel-based
- **LSTM Neural Network** - Deep learning for time series

### Usage Example

```python
from scripts.ml_models import WeatherPredictionModels

# Initialize
predictor = WeatherPredictionModels(data_path='data/weather_advanced.csv')

# Prepare features
X_train, X_test, y_train, y_test = predictor.prepare_features(
target='temperature_celsius'
)

# Train all models and compare
results = predictor.train_all_models(X_train, X_test, y_train, y_test)
print(results)

# Get feature importance
importance = predictor.get_feature_importance('random_forest')
```

---

## ๐Ÿ” Anomaly Detection

Detect unusual weather patterns using multiple algorithms:

```python
from scripts.anomaly_detection import WeatherAnomalyDetector

detector = WeatherAnomalyDetector(df)

# Z-score anomalies
detector.detect_zscore_anomalies('temperature_celsius')

# Isolation Forest
detector.detect_isolation_forest(['temperature_celsius', 'humidity_percent'])

# Generate report
print(detector.generate_report())
```

---

## ๐ŸŒ Weather API

A Flask-based API simulation for testing:

```bash
# Start the API server
cd api
python weather_api.py

# Endpoints:
# GET /api/weather/current?location=mumbai
# GET /api/weather/forecast?location=delhi&days=5
# GET /api/alerts?location=kolkata
# GET /api/locations
```

---

## ๐Ÿš€ Quick Start

### 1. Clone or Download

```bash
# Download from RSK World
https://rskworld.in/data-science/datasets/weather-forecasting/
```

### 2. Install Dependencies

```bash
cd weather-forecasting
pip install -r scripts/requirements.txt
```

### 3. Run Analysis

```python
import pandas as pd

# Load data
df = pd.read_csv('data/weather_data.csv', comment='#')

# Explore
print(df.head())
print(df.describe())

# Analysis
print(df.groupby('location')['temperature_celsius'].mean())
```

### 4. Open Jupyter Notebook

```bash
jupyter notebook notebooks/weather_analysis.ipynb
```

### 5. View Dashboard

Open `dashboard.html` in a browser for interactive analytics.

---

## ๐Ÿ“ Locations

| City | State | Latitude | Longitude | Climate |
|------|-------|----------|-----------|---------|
| New Delhi | Delhi | 28.6139 | 77.2090 | Humid Subtropical |
| Mumbai | Maharashtra | 19.0760 | 72.8777 | Tropical Wet-Dry |
| Bangalore | Karnataka | 12.9716 | 77.5946 | Tropical Savanna |
| Kolkata | West Bengal | 22.5726 | 88.3639 | Tropical Wet-Dry |
| Chennai | Tamil Nadu | 13.0827 | 80.2707 | Tropical Wet-Dry |

---

## ๐Ÿ“š Use Cases

1. **Weather Prediction** - Build ML models to predict temperature, humidity, etc.
2. **Time Series Forecasting** - ARIMA, LSTM, Prophet models
3. **Anomaly Detection** - Identify extreme weather events
4. **Climate Analysis** - Study seasonal patterns and trends
5. **Air Quality Monitoring** - Analyze pollution patterns
6. **Energy Consumption** - Correlate weather with energy usage
7. **Agriculture Planning** - Use soil and weather data for farming decisions
8. **Health Impact Studies** - Study weather effects on health

---

## ๐Ÿ› ๏ธ Technologies

- **Python** - Data analysis and ML
- **Pandas** - Data manipulation
- **NumPy** - Numerical computing
- **Matplotlib/Seaborn** - Visualization
- **Scikit-learn** - Machine learning
- **TensorFlow/Keras** - Deep learning (LSTM)
- **XGBoost** - Gradient boosting
- **Flask** - API development
- **Chart.js** - Interactive charts
- **HTML/CSS/JS** - Dashboard

---

## ๐Ÿ‘จโ€๐Ÿ’ป Author

**Molla Samser**
Founder & Developer @ RSK World

- ๐ŸŒ Website: [https://rskworld.in](https://rskworld.in)
- ๐Ÿ“ง Email: help@rskworld.in | support@rskworld.in
- ๐Ÿ“ฑ Phone: +91 93305 39277

### Designer & Tester
**Rima Khatun**

---

## ๐Ÿ“„ License

This project is licensed under the Educational License - see the [LICENSE](LICENSE) file for details.

Free for educational and non-commercial use.

---

## ๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the project
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Open a Pull Request

---

## ๐Ÿ“ Changelog

See [CHANGELOG.md](CHANGELOG.md) for version history.

### v2.0.0 (Latest)
- Added advanced weather parameters (AQI, solar, soil data)
- Added ML prediction models
- Added anomaly detection
- Added Weather API simulation
- Added interactive dashboard
- Added Jupyter notebook
- Added seasonal statistics
- Added forecast comparison data

---

## โญ Support

If you find this dataset helpful, please give it a star and share with others!

For questions or support, contact us at help@rskworld.in

---

<div align="center">

**ยฉ 2024 RSK World - https://rskworld.in**

Made with โค๏ธ by Molla Samser

</div>
data/seasonal_statistics.csv
Raw Download
Find: Go to:
################################################################################
# Weather Forecasting Dataset - Seasonal Statistics
# 
# Project: Weather Forecasting Dataset
# Author: Molla Samser | Website: https://rskworld.in
# Email: help@rskworld.in | Phone: +91 93305 39277
# Designer & Tester: Rima Khatun
#
# Description: Monthly and seasonal weather statistics for trend analysis
#
# ยฉ 2024 RSK World - https://rskworld.in
################################################################################

year,month,season,location,temp_mean,temp_min,temp_max,temp_std,humidity_mean,humidity_min,humidity_max,pressure_mean,wind_speed_mean,wind_speed_max,precipitation_total,precipitation_days,sunny_days,cloudy_days,rainy_days,foggy_days,aqi_mean,uv_index_max
2023,1,Winter,New Delhi,14.2,4.5,22.8,4.2,72,45,95,1017,8.5,25.2,12.5,3,18,8,3,2,185,5
2023,2,Winter,New Delhi,17.5,7.2,26.5,4.8,62,38,88,1015,10.2,28.5,8.2,2,20,6,2,0,165,6
2023,3,Spring,New Delhi,24.8,14.5,34.2,5.2,48,28,75,1012,12.5,35.2,5.5,2,24,5,2,0,145,8
2023,4,Spring,New Delhi,32.5,22.5,42.8,4.8,35,18,58,1008,15.8,42.5,2.2,1,26,4,1,0,125,10
2023,5,Summer,New Delhi,38.2,28.5,45.5,4.2,32,15,55,1005,18.2,48.5,8.5,2,25,3,3,0,115,11
2023,6,Summer,New Delhi,36.5,27.8,44.2,4.5,52,28,82,1002,22.5,55.2,85.5,8,15,8,8,0,95,10
2023,7,Monsoon,New Delhi,32.8,26.5,38.5,3.2,78,55,95,1000,18.5,45.8,215.5,18,5,8,18,0,72,7
2023,8,Monsoon,New Delhi,31.5,25.8,36.8,2.8,82,62,98,1002,15.2,42.5,245.8,20,4,7,20,0,68,6
2023,9,Monsoon,New Delhi,30.2,24.5,35.5,3.0,75,52,92,1005,12.8,38.5,125.2,12,12,7,12,0,85,8
2023,10,Autumn,New Delhi,28.5,18.5,34.8,4.2,58,35,78,1010,8.5,28.5,15.5,2,24,5,2,0,145,7
2023,11,Autumn,New Delhi,22.5,12.2,30.5,4.5,62,40,85,1015,6.8,22.5,2.5,1,25,4,1,1,175,5
2023,12,Winter,New Delhi,16.2,6.5,24.8,4.2,70,45,92,1018,7.5,20.8,5.2,1,22,5,1,3,195,4
2023,1,Winter,Mumbai,25.5,18.5,32.2,3.2,68,48,85,1013,12.5,28.5,0.0,0,28,3,0,0,85,8
2023,2,Winter,Mumbai,26.8,19.2,33.5,3.5,62,42,78,1012,14.2,32.5,0.0,0,26,2,0,0,78,9
2023,3,Spring,Mumbai,28.5,21.5,35.8,3.8,58,38,75,1010,16.5,38.2,0.0,0,28,3,0,0,72,10
2023,4,Spring,Mumbai,30.2,23.8,36.5,3.2,62,42,82,1008,18.8,42.5,0.5,0,27,3,0,0,68,11
2023,5,Summer,Mumbai,32.5,26.5,38.2,2.8,68,48,88,1006,22.5,48.5,8.5,2,24,4,2,0,62,11
2023,6,Summer,Mumbai,30.8,25.8,35.5,2.2,82,65,95,1004,25.8,55.8,485.5,18,5,7,18,0,55,8
2023,7,Monsoon,Mumbai,28.5,24.5,32.8,1.8,88,72,98,1002,28.5,62.5,745.8,25,2,4,25,0,48,6
2023,8,Monsoon,Mumbai,28.2,24.2,32.5,1.5,90,75,99,1003,26.2,58.5,585.2,22,3,5,22,0,45,5
2023,9,Monsoon,Mumbai,29.5,25.2,34.2,2.0,85,68,95,1006,18.5,45.5,285.5,15,8,7,15,0,52,7
2023,10,Autumn,Mumbai,31.2,25.5,36.5,2.5,72,52,88,1010,14.2,35.5,45.5,4,22,5,4,0,65,9
2023,11,Autumn,Mumbai,30.5,23.8,35.8,2.8,65,45,82,1012,12.8,30.5,12.5,1,26,3,1,0,72,8
2023,12,Winter,Mumbai,27.8,20.5,34.2,3.2,62,42,78,1014,11.5,26.8,0.0,0,28,3,0,0,82,7
2023,1,Winter,Bangalore,22.5,14.2,30.8,4.0,62,42,82,1015,8.2,22.5,2.5,1,26,4,1,0,55,8
2023,2,Winter,Bangalore,24.8,15.5,33.5,4.5,55,35,75,1013,9.5,25.8,0.0,0,25,3,0,0,52,9
2023,3,Spring,Bangalore,28.2,18.5,36.5,4.2,48,28,68,1011,11.2,28.5,5.2,1,27,3,1,0,48,10
2023,4,Spring,Bangalore,32.5,22.5,38.8,3.8,52,32,75,1008,12.8,32.5,45.5,5,22,4,5,0,45,11
2023,5,Summer,Bangalore,33.8,24.2,40.2,3.5,58,38,82,1006,14.5,38.5,85.5,8,18,5,8,0,42,11
2023,6,Summer,Bangalore,28.5,22.5,34.5,2.8,72,55,92,1005,12.2,32.5,45.2,6,15,9,6,0,48,8
2023,7,Monsoon,Bangalore,26.8,21.8,32.2,2.5,78,62,95,1004,10.5,28.5,95.5,12,10,8,12,0,52,7
2023,8,Monsoon,Bangalore,26.5,21.5,31.8,2.2,82,65,98,1005,9.8,25.8,125.8,15,8,8,15,0,55,6
2023,9,Monsoon,Bangalore,27.2,21.2,33.5,2.8,78,58,95,1007,10.2,28.5,145.5,14,9,7,14,0,52,7
2023,10,Autumn,Bangalore,26.5,19.8,33.2,3.2,72,52,92,1010,8.8,24.5,125.2,10,15,6,10,0,48,8
2023,11,Autumn,Bangalore,24.2,16.5,31.5,3.8,68,48,88,1013,7.5,20.8,35.5,4,22,4,4,0,52,7
2023,12,Winter,Bangalore,22.8,14.8,30.2,3.8,65,45,85,1014,7.2,18.5,5.2,1,26,4,1,0,55,6
2023,1,Winter,Kolkata,20.5,10.5,28.8,4.5,72,48,92,1018,6.5,18.5,8.5,1,22,5,1,3,105,6
2023,2,Winter,Kolkata,24.5,13.8,32.5,4.8,62,38,85,1015,8.2,22.5,12.5,2,22,4,2,0,95,7
2023,3,Spring,Kolkata,30.2,20.5,38.5,4.2,52,30,75,1010,10.5,28.5,15.2,2,25,4,2,0,85,9
2023,4,Spring,Kolkata,35.8,26.5,42.5,3.8,55,32,78,1006,12.8,35.5,32.5,3,24,4,3,0,78,10
2023,5,Summer,Kolkata,36.5,28.2,43.2,3.2,62,42,85,1004,15.5,42.5,85.5,6,20,5,6,0,72,11
2023,6,Summer,Kolkata,33.5,26.8,38.8,2.5,78,58,95,1002,18.2,48.5,285.5,15,10,5,15,0,65,9
2023,7,Monsoon,Kolkata,31.2,26.2,35.5,2.0,85,68,98,1000,16.5,45.2,385.2,20,5,6,20,0,58,7
2023,8,Monsoon,Kolkata,31.5,26.5,35.8,1.8,88,72,99,1002,14.8,42.5,345.8,18,6,6,18,0,55,6
2023,9,Monsoon,Kolkata,31.2,25.8,35.5,2.2,82,62,95,1005,12.5,35.5,245.2,14,10,6,14,0,62,7
2023,10,Autumn,Kolkata,29.5,22.5,35.2,3.0,72,48,88,1010,8.5,25.5,85.5,5,20,5,5,0,85,8
2023,11,Autumn,Kolkata,25.5,16.5,32.8,3.8,68,45,88,1015,6.5,18.5,12.5,1,25,4,1,0,95,6
2023,12,Winter,Kolkata,21.2,11.8,29.5,4.2,72,48,92,1018,5.8,15.8,5.2,1,24,4,1,2,108,5
2023,1,Winter,Chennai,26.5,20.5,32.8,3.0,72,52,92,1013,10.5,25.5,15.5,2,24,5,2,0,68,9
2023,2,Winter,Chennai,28.2,21.5,34.5,3.2,65,45,85,1011,12.2,28.5,5.2,1,25,3,1,0,62,10
2023,3,Spring,Chennai,30.8,23.5,37.2,3.5,58,38,78,1008,14.5,32.5,2.5,0,27,3,0,0,55,11
2023,4,Spring,Chennai,33.5,26.5,39.8,3.2,62,42,82,1006,16.8,38.5,8.5,1,26,3,1,0,52,11
2023,5,Summer,Chennai,36.2,28.5,42.5,3.0,65,45,85,1004,18.5,42.5,25.5,2,25,3,2,0,48,11
2023,6,Summer,Chennai,35.5,28.2,41.2,2.5,62,42,82,1003,22.5,48.5,32.5,3,24,3,3,0,45,10
2023,7,Monsoon,Chennai,34.2,27.5,39.8,2.2,68,48,88,1002,20.5,45.2,45.5,4,22,5,4,0,48,9
2023,8,Monsoon,Chennai,33.5,26.8,38.5,2.0,72,52,92,1003,18.2,42.5,85.2,6,20,5,6,0,52,8
2023,9,Monsoon,Chennai,32.2,25.5,37.5,2.2,78,58,95,1005,15.5,38.5,125.5,10,15,5,10,0,55,8
2023,10,Monsoon,Chennai,30.5,24.2,35.8,2.5,82,62,98,1008,12.5,32.5,285.5,15,10,5,15,0,62,7
2023,11,Autumn,Chennai,28.5,22.5,34.2,2.8,78,55,95,1012,10.2,28.5,185.5,12,12,6,12,0,65,7
2023,12,Winter,Chennai,26.8,20.8,32.5,2.8,75,52,92,1014,9.5,24.5,45.5,4,22,5,4,0,70,6

76 linesโ€ข6 KB
csv

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer