Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Solar Analysis - Advanced Solar PV Performance Monitoring System

Overview

Solar Analysis is a comprehensive industrial-grade solar photovoltaic (PV) performance monitoring and analysis system designed for utility-scale solar power plants. The system provides advanced data processing, loss attribution analysis, and performance optimization insights for multi-megawatt solar installations.

Key Features

  • Advanced Data Processing: Automated outlier detection and iterative imputation for sensor data
  • Multi-Level Analysis: Inverter, string, and panel-level performance monitoring
  • Comprehensive Loss Attribution: Detailed analysis of cloud, temperature, shading, soiling, and tracker losses
  • Real-time Performance Metrics: Calculation of Performance Ratio (PR), efficiency, and energy yields
  • Industrial Visualization: Professional-grade charts and reports for operational insights
  • Scalable Architecture: Designed to handle data from plants with multiple inverters and thousands of panels

System Architecture

High-Level Architecture

┌─────────────────────────────────────────────────────────────────┐
│                    Solar Plant Data Sources                     │
├─────────────────────────────────────────────────────────────────┤
│  • Inverter Data (CTI N 03, CTI N 08)                           │
│  • String-level PV Current/Voltage Sensors                      │
│  • Meteorological Stations (GII, GHI, Temperature, Humidity)    │
│  • Tracker Position & Working Mode Sensors                      │
│  • Irradiance Cells (Clean/Dirty for Soiling Analysis)          │
│  • Power Production Meters (Net Export, Import)                 │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Data Ingestion Layer                         │
├─────────────────────────────────────────────────────────────────┤
│  • CSV Data Loading with Datetime Parsing                       │
│  • Column Name Standardization & Whitespace Cleaning            │
│  • Data Type Validation & Conversion                            │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                 Data Quality & Preprocessing                    │
├─────────────────────────────────────────────────────────────────┤
│  • Z-Score Outlier Detection (σ > 3)                            │
│  • Iterative Imputation (Scikit-learn IterativeImputer)         │
│  • Missing Data Handling with Median Strategy                   │
│  • Data Validation & Quality Flags                              │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                   Data Transformation Layer                     │
├─────────────────────────────────────────────────────────────────┤
│  • Sensor Data Melting (Wide to Long Format)                    │
│  • Inverter/String/Input Hierarchy Extraction                   │
│  • PV Current & Voltage Data Aggregation                        │
│  • Temporal Alignment & Synchronization                         │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Energy Calculation Engine                    │
├─────────────────────────────────────────────────────────────────┤
│  • Theoretical Energy Calculation                               │
│    - GII-based Solar Resource Assessment                        │
│    - Plant Capacity & Efficiency Modeling                       │
│    - Area-weighted Energy Allocation                            │
│                                                                 │
│  • Actual Energy Measurement                                    │
│    - Net Export Energy Calculation                              │
│    - String-level Energy Attribution                            │
│    - Performance Ratio (PR) Computation                         │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Loss Attribution Engine                      │
├─────────────────────────────────────────────────────────────────┤
│  • Cloud Loss Analysis                                          │
│    - Clear-sky Reference Modeling                               │
│    - Multi-sensor GII Validation                                │
│    - Temporal Smoothing & Envelope Detection                    │
│                                                                 │
│  • Temperature Loss Calculation                                 │
│    - Module Temperature Monitoring                              │
│    - Industry-standard Coefficients (-0.45%/°C)                 │
│    - Ambient-to-Module Temperature Correlation                  │
│                                                                 │
│  • Shading Loss Assessment                                      │
│    - Inter-row Shading Analysis                                 │
│    - Tracker Position Error Impact                              │
│    - Cosine Loss Calculations                                   │ 
│                                                                 │
│  • Soiling Loss Monitoring                                      │
│    - Clean/Dirty Cell Comparison                                │
│    - Environmental Correlation (Humidity, Wind)                 │
│    - Temporal Accumulation Modeling                             │
│                                                                 │
│  • Tracker Performance Analysis                                 │
│    - Working Mode State Machine                                 │
│    - Position Accuracy Assessment                               │
│    - Mechanical Loss Attribution                                │
│                                                                 │
│  • Environmental Effects                                        │
│    - Wind Cooling/Loading Analysis                              │
│    - Humidity Condensation Risk                                 │
│    - Multi-factor Correlation Modeling                          │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                  Analytics & Reporting Layer                    │
├─────────────────────────────────────────────────────────────────┤
│  • Performance Metrics Dashboard                                │
│    - Real-time Efficiency Monitoring                            │
│    - Inverter Utilization Analysis                              │
│    - String-level Performance Comparison                        │
│                                                                 │
│  • Loss Waterfall Analysis                                      │
│    - Categorized Loss Attribution                               │
│    - Unexplained Loss Identification                            │
│    - Trend Analysis & Forecasting                               │
│                                                                 │
│  • Operational Intelligence                                     │
│    - Anomaly Detection & Alerting                               │
│    - Maintenance Scheduling Optimization                        │
│    - Performance Benchmarking                                   │
└─────────────────────────────────────────────────────────────────┘
                                 │
                                 ▼
┌─────────────────────────────────────────────────────────────────┐
│                     Output & Visualization                      │
├─────────────────────────────────────────────────────────────────┤
│  • Industrial-grade Charts & Graphs                             │
│  • CSV Export of Cleaned Data                                   │
│  • Performance Reports & KPI Dashboards                         │
│  • Operational Maintenance Recommendations                      │ 
└─────────────────────────────────────────────────────────────────┘

Data Processing Pipeline Workflows

1. Data Ingestion & Quality Assurance Workflow

Raw CSV Data  -→ Column Standardization → DateTime Parsing → Data Type Validation
      │
      ▼
Z-Score Outlier Detection → Outlier Masking → Iterative Imputation → Quality Flagging

Technical Details:

  • Outlier Detection: Statistical Z-score method with σ > 3 threshold
  • Imputation Strategy: Iterative imputation with median initialization
  • Quality Control: Automated data validation with error flagging
  • Performance: Processes 850K+ sensor readings with sub-minute execution time

2. Sensor Data Transformation Workflow

Wide Format Sensor Data → Melt Transformation → Hierarchy Extraction → Data Aggregation
      │                                            │
      ▼                                            ▼
PV Current Sensors                           PV Voltage Sensors
(String Input Level)                         (String Average Level)
      │                                            │
      ▼                                            ▼
              Merge on DateTime/Inverter/String
                              │
                              ▼
            Unified String-level Performance Dataset

Technical Specifications:

  • Sensor Hierarchy: Inverter → String → String Input mapping
  • Data Granularity: 15-minute intervals (0.25 hour timesteps)
  • Coverage: 2 Inverters, 4 Strings, 49 String Inputs total
  • Quality: 381,367 validated data points for productive periods

3. Energy Calculation & Attribution Workflow

Meteorological Data → Theoretical Energy Model → Plant-level Energy Calculation
      │                         │                           │
      ▼                         ▼                           ▼
GII/GHI Sensors         Plant Specifications         TTR Scaling Factor
Temperature             (45.6 MW DC Capacity)        (Validation Reference)
Irradiance              (18% Module Efficiency)
                        (96% Inverter Efficiency)
                                    │
                                    ▼
              Area-weighted String-level Energy Attribution
                                    │
                                    ▼
Net Export Measurement → Actual Energy Calculation → Performance Ratio (PR)

Energy Model Parameters:

  • Plant Capacity: 45.6 MW DC
  • Module Efficiency: 18%
  • Inverter Efficiency: 96%
  • Panel Area: 1.6 m² per panel
  • Temporal Resolution: 15-minute intervals

4. Loss Attribution Analysis Workflow

Multi-sensor Input → Loss Factor Calculation → Validation & Correlation → Loss Attribution
      │                        │                        │                      │
      ▼                        ▼                        ▼                      ▼
                                                                                
Cloud Loss:              Temperature Loss:        Shading Loss:           Soiling Loss:
• GII Multi-sensor        • Module Temperature     • Position Deviation    • Clean/Dirty Cells
• Clear-sky Envelope      • Ambient Correlation    • Cosine Loss Model     • Environmental Factors
• Temporal Smoothing      • -0.45%/°C Coefficient  • Inter-row Analysis    • Wind/Humidity Impact

Tracker Loss:             Environmental:           Other Losses:
• Working Mode States     • Wind Effects          • Unexplained Loss
• Position Accuracy       • Humidity Impact       • Model Residuals
• Mechanical Factors      • Condensation Risk     • System Uncertainties

Loss Attribution Specifications:

  • Cloud Loss: Up to 80% attenuation with clear-sky reference
  • Temperature Loss: Industry-standard -0.45%/°C coefficient
  • Shading Loss: Geometric and tracker-based analysis
  • Soiling Loss: Environmental correlation with 8% maximum
  • Validation: Cross-correlation with multiple sensor sources

5. Analytics & Reporting Workflow

Processed Data → Performance Metrics → Visualization Engine → Export & Reporting
      │                    │                    │                     │
      ▼                    ▼                    ▼                     ▼
String-level          Efficiency            Professional         CSV Export
Performance           Distribution          Charts/Graphs        Clean Dataset
Data                  Analysis              Generation           (381K records)
      │                    │                    │                     │
      ▼                    ▼                    ▼                     ▼
Inverter              Loss Waterfall        Interactive          Performance
Utilization           Analysis              Visualizations       Reports
Metrics               Reports               (Matplotlib/Seaborn) (KPI Dashboard)

Technical Specifications

Plant Configuration

  • Total Capacity: 45.6 MW DC
  • Inverter Count: 2 Active Inverters (CTI N 03, CTI N 08)
  • String Configuration: 4 Strings (2 per inverter)
  • String Inputs: 49 Total inputs across all strings
  • Panel Technology: Crystalline Silicon (18% efficiency)
  • Tracking System: Single-axis tracking with position monitoring

Data Specifications

  • Temporal Resolution: 15-minute intervals
  • Data Volume: 850K+ raw sensor readings
  • Productive Data: 381K validated measurements
  • Sensor Types: 60+ different sensor measurements
  • Data Quality: >99% completeness after processing

Performance Metrics

  • Processing Speed: <5 minutes for full analysis
  • Memory Efficiency: Optimized for large datasets
  • Accuracy: Industrial-grade loss attribution (±2% typical)
  • Reliability: Automated quality assurance and validation

Dependencies

Core Requirements

pandas>=1.5.0           # Data manipulation and analysis
numpy>=1.20.0           # Numerical computing
scipy>=1.9.0            # Statistical functions
scikit-learn>=1.1.0     # Machine learning and imputation
matplotlib>=3.5.0       # Data visualization
seaborn>=0.11.0         # Statistical visualization

System Requirements

  • Python: 3.10 or higher
  • Memory: 4GB RAM minimum (8GB recommended)
  • Storage: 1GB free space
  • Platform: Cross-platform (Windows, macOS, Linux)

Installation & Usage

Quick Start

# Clone the repository
git clone https://github.com/Ritvik-km/SolarAnalysis.git
cd SolarAnalysis

# Install dependencies
pip install pandas numpy scipy scikit-learn matplotlib seaborn jupyter

# Launch Jupyter Notebook
jupyter notebook SolarAnalysis.ipynb

Data Requirements

The system expects CSV input data with the following structure:

  • DateTime Column: Timestamp in parseable format
  • Inverter Data: Current and voltage measurements per string
  • Meteorological Data: GII, GHI, temperature, humidity, wind speed
  • Tracker Data: Position angles and working mode states
  • Power Data: Net export/import measurements

Execution Workflow

  1. Data Loading: Update the CSV file path in the notebook
  2. Configuration: Adjust plant parameters if needed
  3. Processing: Run all cells sequentially
  4. Output: Review visualizations and export clean data
  5. Analysis: Interpret performance metrics and loss attribution

Output & Results

Generated Outputs

  • Cleaned Dataset: cleaned_energy_data.csv with 381K validated records
  • Performance Visualizations: Efficiency distributions and inverter utilization
  • Loss Attribution Reports: Detailed breakdown of all loss categories
  • KPI Dashboard: Real-time performance metrics and trends

Key Performance Indicators

  • Performance Ratio (PR): Overall system efficiency
  • Energy Yield: Actual vs. theoretical energy production
  • Loss Attribution: Categorized loss analysis (cloud, temperature, soiling, etc.)
  • Inverter Utilization: String and input utilization per inverter
  • Data Quality Metrics: Outlier detection and imputation statistics

Advanced Features

Machine Learning Integration

  • Anomaly Detection: Unsupervised learning for fault identification
  • Predictive Analytics: Forecasting models for maintenance scheduling
  • Pattern Recognition: Automated identification of performance trends
  • Optimization: AI-driven recommendations for operational improvements

Scalability & Integration

  • Multi-Plant Support: Extensible architecture for fleet management
  • API Integration: RESTful interfaces for real-time data ingestion
  • Cloud Deployment: Scalable processing for large installations
  • Third-party Systems: Integration with SCADA and monitoring platforms

License

This project is licensed under the MIT License - see the LICENSE file for details.

Developed for industrial-scale solar PV performance monitoring and optimization (Zelestra x AWS Ascend Hackathon 2nd Edition)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages