Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/get india data #127

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Issue/get india data #127

wants to merge 16 commits into from

Conversation

rachel-labri-tipton
Copy link

@rachel-labri-tipton rachel-labri-tipton commented Nov 7, 2023

Pull Request

Description

This PR is the work done to get data from pvoutput.org for solar sites in India:

  • adds a jupyter notebook to the examples folder that gets India system metadata (or any country besides AU, US, UK and DE) using the PVOutput.org Get Country System Data Service - WORLD route and stores data in a csv file
  • adds a function,get_metadata_for_country, to pvoutput.py
  • updates the pvoutput.py file so the panda's timezone conversion method is up to date

Fixes #124

How Has This Been Tested?

Didn't write any pytests but got the data from PVOutput.org that was requested.

  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

date_ranges_to_download = self._filter_date_range(
output_filename, pv_system_id, date_ranges_to_download, min_data_availability
)
# # How much data is actually available?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to put this back in, and add a comment saying,

if you dont have access to XXX API route, then comment this bit out

Or something like that

@peterdudfield
Copy link
Contributor

There's one comment here, @rachel-labri-tipton lets get this merge as well,

@peterdudfield
Copy link
Contributor

Shall we try and get this merged before xmas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get India data
2 participants