Skip to content

Commit c9e3314

Browse files
roelloonenwholmgren
authored andcommitted
Add functionality for reading EPW weather files (#677)
* Add functionality for reading EPW weather files Adds EPW reader to iotools.tmy and includes files for testing * Include documentation for read_epw * read_epw is now in a separate module instead of part of tmy.py includes a couple of other small fixes and updated testing files * Update epw.py Remove line that was only meant for debugging * Force date format This commit forces the data format and now pads a zero in front of the 'hour' column. I believe that this solves the Python 2.7 issue, but Travis testing needs to confirm this * Remove debugging statement * Testing dir update and new code structure for localizing index note .dt option in localizing. see: https://stackoverflow.com/questions/26089670/unable-to-apply-methods-on-timestamps-using-series-built-ins * Update index creation following Will's suggestion and cleaned up code Updates code for index creation in epw.py Improves docstring for clarity Cleans trailing spaces, missing whitespace, etc. identified by pycodestyle in epw.py and test_epw.py * Changed indexing of last hour of the year Last hour of the year led to an error in the forced year check. It was because of a remnant of my quick-and-dirty approach which is no longer necessary using Will's solution. * Minor change to default input for filename and update of What's New
1 parent bb0e0b4 commit c9e3314

File tree

6 files changed

+8976
-2
lines changed

6 files changed

+8976
-2
lines changed

docs/sphinx/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ relevant to solar energy modeling.
330330

331331
iotools.read_tmy2
332332
iotools.read_tmy3
333+
iotools.read_epw
333334
iotools.read_srml
334335
iotools.read_srml_month_from_solardat
335336
iotools.read_surfrad

docs/sphinx/source/whatsnew/v0.6.2.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Enhancements
2020
~~~~~~~~~~~~
2121
* Add US CRN data reader to `pvlib.iotools`.
2222
* Add SOLRAD data reader to `pvlib.iotools`.
23+
* Add EPW data reader to `pvlib.iotools`. (:issue:`591`)
2324

2425
Bug fixes
2526
~~~~~~~~~
@@ -35,5 +36,6 @@ Testing
3536

3637
Contributors
3738
~~~~~~~~~~~~
38-
* cwhanse
39-
* wholmgren
39+
* Cliff Hansen (:ghuser:`cwhanse`)
40+
* Will Holmgren (:ghuser:`wholmgren`)
41+
* Roel Loonen (:ghuser:`roelloonen`)

0 commit comments

Comments
 (0)