-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error with using PVGIS weather data (zenith conversion in airmass?) #2399
Comments
The error tells you that |
@expeon07 happy to help you diagnose this problem here. For questions like "is there something wrong" we prefer a post to the pvlib-python google group, or stackoverflow. If we find a bug, then a GH issue is welcome. |
times is a DateTimeIndex in UTC
Thanks for the info about where to post questions! Can also transfer this question on stackoverflow if it takes long |
Let's do that. Please link your SO post here. |
Sure, question is still on staging-ground. But it has the same title. Will update later when it gets published. |
Hi @cwhanse, here is the SO post: https://stackoverflow.com/questions/79470682/error-with-using-pvgis-weather-data-zenith-conversion-in-airmass |
There's a workaround posted at the SO question. The problem, which is probably something to fix on our side, is that In [12]: weather, _, _, _ = pvlib.iotools.get_pvgis_tmy(53.951, -1.124, outputformat='epw', coerce_year=2023)
...: weather.dtypes
Out[12]:
year object
month object
day object
hour object
minute object
data_source_unct object
temp_air object
temp_dew object
relative_humidity object
... vs In [13]: weather, _, _, _ = pvlib.iotools.get_pvgis_tmy(53.951, -1.124, coerce_year=2023)
...: weather.dtypes
Out[13]:
temp_air float64
relative_humidity float64
ghi float64
dni float64
dhi float64
IR(h) float64
wind_speed float64
wind_direction float64
pressure float64 |
Personally, I see no reason we should support different download options ( I suggest that we make the two PVGIS get functions simply use the I would also be in favor of removing the option of the PVGIS read functions being able to read EPW files as this can be done using the dedicated |
Which format option to use should be at least partially informed by the data that PVGIS returns for each of them. Some formats don't include all columns. But I don't know about |
This seems to be an undesirable effect of the In [XX]: weather, _, _, _ = pvlib.iotools.get_pvgis_tmy(53.951, -1.124, outputformat='epw')
...: weather.dtypes
Out[XX]:
temp_air float64
relative_humidity float64
ghi float64
dni float64
dhi float64
IR(h) float64
wind_speed float64
wind_direction float64
pressure float64
... The reason that |
Describe the bug
Hi, I'm trying to run a ModelChain model using a weather file obtained through
get_pvgis_tmy()
function. However I am getting an error with the weather dataTo Reproduce
Steps to reproduce the behavior:
Error
Would anyone know if there's something wrong with the code or if it's a bug? Thank you!!
The text was updated successfully, but these errors were encountered: