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.
- 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.
-
Clone the repository:
git clone https://github.com/your-username/wind-turbine-analysis.git cd wind-turbine-analysis
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run main.py
-
Set Wind Turbine Parameters:
- Adjust the start wind speed, max wind speed, rated wind speed, and rated power from the sidebar.
-
Enter Location and Date Range:
- Input the address (e.g., "Warszawa, Aleje Jerozolimskie") and select the start and end dates for your analysis.
-
Fetch Data:
- Click "Fetch Data" to retrieve the wind data and automatically calculate the energy generated by the wind turbine.
-
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.
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.
This application uses the Open-Meteo API to fetch historical wind data.