Skip to content

Analysis of wind turbine data for a given location

Notifications You must be signed in to change notification settings

PaulHex6/Wind-turbine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Wind Turbine Analysis Tool

Python Streamlit License

Overview

A Python-based Streamlit application for wind energy analysis. This renewable energy tool calculates potential energy generation from historical wind data, provides climate analysis, and visualizes results with interactive graphs.

Live demo Open in Streamlit

Features

  • Address-Based Location Selection: Input an address, and the app automatically fetches the corresponding latitude and longitude.
  • Wind Data Retrieval: Retrieves historical daily wind speed and gust data from the Open-Meteo API.
  • Wind Turbine Energy Calculation: Estimates the total energy generation of a wind turbine based on the wind data and turbine specifications.
  • Interactive Graphs: Visualize daily wind speed and gust data with Plotly, including indicators for exceeding the turbine's maximum wind speed.
  • Performance Metrics: Compare the wind data to average values and assess the turbine's performance.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/wind-turbine-analysis.git
    cd wind-turbine-analysis
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the application:

    streamlit run main.py

Usage

  1. Set Wind Turbine Parameters:

    • Adjust the start wind speed, max wind speed, rated wind speed, and rated power from the sidebar.
  2. Enter Location and Date Range:

    • Input the address (e.g., "Warszawa, Aleje Jerozolimskie") and select the start and end dates for your analysis.
  3. Fetch Data:

    • Click "Fetch Data" to retrieve the wind data and automatically calculate the energy generated by the wind turbine.
  4. View Results:

    • The daily wind data is visualized on an interactive graph.
    • Performance metrics such as total energy generated, max wind speed, average wind speed, and minimum speed are displayed in the analysis section.

Dependencies

  • streamlit: Web app framework for data science.
  • pandas: Data analysis and manipulation tool.
  • numpy: Numerical computing package.
  • requests: HTTP library for Python.
  • geopy: Geocoding library to convert addresses into latitude and longitude.
  • plotly: Interactive graphing library.
  • xlsxwriter: Saving data to Excel sheet.

API

This application uses the Open-Meteo API to fetch historical wind data.