reading bug on '*_TMY3.epw' file
See original GitHub issueDescribe the bug When a tmy3 file formatted in epw is read, the precipitable_water is not converted from mm to cm, and it results in diverging results for spectral mismatch factor (like negative factor for instance), then resulting in negative ‘effective_irradiance’ results
To Reproduce Steps to reproduce the behavior:
- Create a ChainModel object with a .epw weather file, coming from TMY3 data and imported with ‘pvlib.iotools.epw.read_epw()’
- Run the model
- Check for inconsistencies in effective_irradiance with ‘chain1.effective_irradiance.loc[chain1.effective_irradiance<0]’
or
- Run the code attached
Expected behavior All the effective_irradiance should be positive or null.
Versions:
pvlib.__version__: 0.6.3+24.gbbb4580.dirtypandas.__version__: 0.23.4- python: 3.7.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Users Manual for TMY3 Data Sets - NREL
The data-filling process was designed to provide serially complete records as input for modeling the solar radiation fields. Filled meteorological data fields ( ......
Read more >EPW map bug - searching for a specific weather file prevents ...
Hi all, I may have found a bug with the epw map. ... Ann Arbor and Detroit weather files are active, but not...
Read more >Import epw - Ladybug - Component for Grasshopper
Name ID Type
Output readMe! String
Latitude latitude Goo
Location location Goo
Read more >EnergyPlus Weather File (EPW) Data Dictionary
The “data dictionary” for EnergyPlus Weather Data is shown below. ... Briefly, we have similar “\” conventions that are important for reading the...
Read more >What's New — pvlib python 0.9.3 documentation
pvlib.iotools.read_tmy3() can now only read local data files because the NREL RREDC server hosting the TMY3 dataset has been retired. For fetching TMY...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@wholmgren and I talked about this in person (still happens sometimes 😃. Neither of us are strongly opposed to any of the following options:
read_epwabout older TMY files from energyplus.netpw = np.minimum(pw, max_pw)tofirst_solar_spectral_correctionand exposemax_pwas a kwarg. Could use this opportunity to also implementmin_pw,min_amandmax_ambut that could be done in a later PR. Default of 8. Returnnp.nanwhen inputs are outside the acceptedpwrange, andwarning.We both think the better course for
read_epwis to return exactly what is in the EPW file, rather than attempt to check or correct the content.I don’t think that the
read_epwfunction should attempt to correct errors in EPW data files. I think that will only cause trouble for pvlib down the road.I’m OK if we want to add a Note to the docstring about TMY3 files from energyplus.net having a known error, and providing helpful suggestions for handling the error.