-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve solar profile #44
Conversation
:return: (*pandas.DataFrame*) -- solar pv plant information as found in | ||
form EIA860 | ||
""" | ||
file = os.path.dirname(__file__) + '/data/3_3_Solar_Y2016.xlsx' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like os.path.join would be useful here to ensure cross-platform compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Done.
""" | ||
file = os.path.dirname(__file__) + '/data/3_3_Solar_Y2016.xlsx' | ||
|
||
solar_plant_info = pd.read_excel(io=file, header=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saving the data file as .csv rather than .xlsx would make it easier to keep track of any changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
init.py missing in the tests folder.
single = ['N', 'Y', 'Y', 'Y', 'Y'] | ||
dual = ['Y', 'N', 'N', 'N', 'Y'] | ||
fix = ['N', 'Y', 'Y', 'N', 'N'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there only be five Y
values, if we're matching Form 860? The same plant can't be fixed and single-axis tracking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have some entries in form 860 where the same plant has both fix tilt and single axis tracking. Some farms use dual and single and other dual and fix. Few farms use all 3 technologies.
My understanding was that within one farm,, panels can operate in a different way.
In cell 5 in https://github.com/intvenlab/PreREISE/blob/improve_solar_profile/prereise/gather/solardata/nsrdb/demo/nsrdb_sam_demo.ipynb |
@kasparm. I cannot remove the link. This is where the System Adviser Model (SAM) external library is locater. The user needs to install it on its own computer and it is OS dependent. That is why it is hardcoded. |
What I meant is to please remove the link and put in a placeholder. Something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future we may want to look at the loading ratios by state (rather than 1.25 everywhere) and we may want to be able to look at different years of data (rather than the hardcoded 2016), but this looks great for now.
NREL recently developed (in 2019) a Python wrapper for SAM (PySAM). It is available through |
e0f82c8
to
5d4df2d
Compare
Solar profiles have been improved as follows:
More information is available on ZenHub (Issue #43)