-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Irradiance.disc overflow error #550
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
Comments
I'm guessing your time is integer nanoseconds since 1970. That's not a supported input type. Convert it to one of
|
That overflow warning is usually caused when the clearness index |
@wholmgren may not be supported but it works: get_extra_radiation(time, 1370., 'spencer') |
On further review... Cliff's explanation is likely correct for the error you're seeing. But I don't think |
Sure, it does not error but I doubt it's the desired answer In [12]: time = 1520186400000000000
In [13]: time_ts = pd.Timestamp(time)
In [14]: time_ts
Out[14]: Timestamp('2018-03-04 18:00:00')
In [15]: time_ts.value
Out[15]: 1520186400000000000
In [16]: pvlib.irradiance.get_extra_radiation(time)
Out[16]: 1375.3743352329886
In [17]: pvlib.irradiance.get_extra_radiation(time_ts)
Out[17]: 1389.9028022507546 |
Hi,
Running the following method gives me an overflow error and I am not sure of the best way to fix it:
time = 1520186400000000000
dni = irradiance.disc(38.283, 89.816079, time)
Any ideas on the best way to prevent this?
Thanks
Ian
The text was updated successfully, but these errors were encountered: