This notebook analyzes climate data for nine Indian states using various environmental parameters to classify them into hot and cold regions. It includes data visualization and statistical analysis of temperature, rainfall, humidity, elevation, and frost patterns.
- Temperature and humidity correlation analysis
- Annual rainfall distribution visualization
- Elevation profile mapping
- Multi-variable radar chart analysis
- Frost days visualization
- Statistical clustering of states based on climate parameters
The code requires the following Python libraries:
pandas
numpy
scikit-learn
matplotlib
seaborn
Install dependencies using:
pip install pandas numpy scikit-learn matplotlib seaborn
-
Data Loading and Preprocessing
- The code loads climate data for 9 Indian states
- Features include temperature, rainfall, humidity, elevation and frost days
- Data is standardized for analysis
-
Analysis and Visualization
- Creates scatter plots of temperature vs humidity
- Generates bar charts for rainfall distribution
- Maps elevation profiles
- Produces radar charts for multi-variable analysis
- Visualizes frost day patterns
-
Outputs
- Saves visualizations as PNG files:
- temperature_humidity_scatter.png
- rainfall_distribution.png
- elevation_profile.png
- radar_plot.png
- frost_days.png
- Exports data to climate_analysis.csv
- Saves visualizations as PNG files:
-
Classification
- Uses K-means clustering to group states
- Performs PCA for dimensionality reduction
- Classifies states into hot/cold regions
The analysis provides insights into:
- Climate patterns across different Indian states
- Temperature and humidity relationships
- Geographical elevation effects
- Rainfall distribution patterns
- Regional frost day occurrences
The dataset includes climate data for:
- Uttarakhand
- Leh
- Rajasthan
- Gujarat
- Maharashtra
- Jharkhand
- Assam
- Kerala
- Tamil Nadu
The code is designed for educational and research purposes. Results should be validated against official meteorological data for practical applications.
Dr. Kanaka K. K., PhD, ARS
Scientist
School of Bioinformatics
ICAR-Indian Institute of Agricultural Biotechnology, Ranchi
Be like IIAB!: IIAB is like yogic center where all the sciences (Plant, Animal, Aquatic,Mibrobiology, IT) meet to address emerging issues in food production.