ninja_automator
Acquire data with honour and wisdom — using the way of the ninja.
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 8 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Repository
Acquire data with honour and wisdom — using the way of the ninja.
Basic Info
- Host: GitHub
- Owner: renewables-ninja
- License: bsd-3-clause
- Language: R
- Default Branch: master
- Homepage: https://www.renewables.ninja/
- Size: 3.88 MB
Statistics
- Stars: 28
- Watchers: 7
- Forks: 11
- Open Issues: 4
- Releases: 0
Topics
Metadata Files
README.md
The Ninja Automator
This is a multi-langugage tool to scrape data from the Renewables.ninja website. It allows you to download wind and solar output data for multiple locations more easily.
Currently there are implementations in Excel and R, with a Python version under development.
Ninja Automator Excel VBA
You can download the Ninja Excel Interface here.
This provides a VBA routine to run simulations via the Renewables.ninja API and deliver results into a spreadsheet. Usage should be self explanatory, read the INFO worksheet to begin.
The Excel worksheet provides an example implementation, which allows the user to choose model parameters, and download data as either hourly values, daily averages or monthly averages.
Tested on Excel 2010, 2013 and 2016 on Windows 7 and 10.
Requires VBA Macros to be enabled.
Ninja Automator R
This provides a set of worked examples that contact the renewables.ninja API, perform your simulation and return the results as a data.frame. Multiple simulations can be performed by either supplying vectors of input parameters or by reading them in from a CSV file.
REQUIREMENTS & SETUP
R or MRO version 3+, with the curl library.
Download the files from the /R subfolder and you are ready to go.
Inside example.r edit the path names and your API token.
USAGE INSTRUCTIONS
ninja_automator.r provides the background functions for communicating with the Renewables.ninja API. Each function requires the latitude and longitude, and optionally takes other parameters that you can pass to the API such as wind turbine model or solar panel orientation.
example.r provides a set of five ready-made examples that walk you through running a single simulation, aggregating many simulations together, and reading inputs/output files to fully automate the ninja.
The functions ninja_get_wind(lat, lon, ...) and ninja_get_solar(lat, lon, ...) run a simulation for a single wind or solar farm by passing input parameters. They will yield a 2-column dataframe containing timestamp and output. You can expect each to take around 5-10 seconds to complete, due to the time needed to contact the server, the simulation to run, etc.
The functions ninja_aggregate_wind(lat, lon, ...) and ninja_aggregate_solar(lat, lon, ...) run simulations for multiple wind or solar farms by passing vectors of input data. These will yield a multi-column dataframe containing timestamp and the output of each farm as a sepearate column. You can expect the function to take around 10 seconds per farm being simulated.
All the functions keep track of the number of simulations you have run, and will pause when necessary to prevent you from exceeding the hourly API limits. If you'd like it to be faster, contact us via the Renewables.ninja forum or email.
renewables.ninja.solar.farms.csv and renewables.ninja.wind.farms.csv are example input files that can be fed into the automator to download a group of farms. renewables.ninja.wind.output.csv is an example of the data that will be returned by ninja_aggregate_wind.
LICENSE
BSD 3-Clause License
Copyright (C) 2016-2018 Iain Staffell
All rights reserved.
See LICENSE for more detail.
CREDITS & CONTACT
The R automator is developed by Iain Staffell. You can try emailing me at contact@renewables.ninja.
This is part of the Renewables.ninja project, developed by Stefan Pfenninger and Iain Staffell. Use the contacts page there.
Citation
I Staffell and S Pfenninger, 2016. Using bias-corrected reanalysis to simulate current and future wind power output. Energy, 114, 1224–1239. doi: 10.1016/j.energy.2016.08.068
S Pfenninger and I Staffell, 2016. Long-term patterns of European PV output using 30 years of validated hourly reanalysis and satellite data. Energy, 114, 1251-1265. doi: 10.1016/j.energy.2016.08.060
Owner
- Name: Renewables.ninja
- Login: renewables-ninja
- Kind: organization
- Website: https://www.renewables.ninja/
- Repositories: 5
- Profile: https://github.com/renewables-ninja
Renewable energy simulations, ninja style.
Citation (CITATION)
To reference the Renewables.ninja in publications, please cite both of the following papers: S Pfenninger and I Staffell, 2016. Long-term patterns of European PV output using 30 years of validated hourly reanalysis and satellite data. Energy, 114, 1251-1265. https://dx.doi.org/10.1016/j.energy.2016.08.060 I Staffell and S Pfenninger, 2016. Using bias-corrected reanalysis to simulate current and future wind power output. Energy, 114, 1224–1239. https://dx.doi.org/10.1016/j.energy.2016.08.068
GitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1
Issues and Pull Requests
Last synced: about 2 years ago
All Time
- Total issues: 4
- Total pull requests: 1
- Average time to close issues: 7 months
- Average time to close pull requests: N/A
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 0.75
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- DrAlanHenry (2)
- KasperEinarson (1)
- nurisensoy (1)
- Ramishinawy (1)
Pull Request Authors
- smmiri (1)