Skip to content

cuddiecoder/renewables-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renewables Stats

Author: Cuddiecoder
License: MIT


🌍 Overview

This project analyzes renewable (solar and wind) vs coal energy production data using a simple Bash script.
It reads data from an OWID (Our World in Data) CSV file and finds either the minimum or maximum energy production by country or year.


🧠 Features

  • Works directly with CSV files — no need for Python or external dependencies.
  • Supports both country-based and year-based analysis.
  • Handles both solar_wind and coal energy types.
  • Uses awk for fast, efficient computation.

🧩 Example Usage

# Find max solar/wind production for the USA
./analyze_energy.sh OWID_SolarWind_vs_Coal.csv USA solar_wind max

# Find country with min coal production in 2020
./analyze_energy.sh OWID_SolarWind_vs_Coal.csv 2020 coal min

⚙️ Setup

  1. Make the script executable:

    chmod +x analyze_energy.sh
  2. Run the examples above or modify them to analyze other countries/years.


📜 License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages