Skip to content

Commit

Permalink
I don't know how to make this work
Browse files Browse the repository at this point in the history
  • Loading branch information
echedey-ls committed Aug 1, 2023
1 parent 804d503 commit e197228
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions docs/tutorials/irradiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,30 +609,32 @@
delta.plot()

# %%
modelt = "allsitescomposite1990"

F1c, F2c = pvlib.irradiance._get_perez_coefficients(modelt)

F1 = (
F1c[ebin, 0]
+ F1c[ebin, 1] * delta[ebin.index]
+ F1c[ebin, 2] * z[ebin.index]
)
F1[F1 < 0] = 0
F1 = F1.astype(float)

# F2= F2c[ebin,0] + F2c[ebin,1]*delta[ebinfilter] + F2c[ebin,2]*z[ebinfilter]
F2 = (
F2c[ebin, 0]
+ F2c[ebin, 1] * delta[ebin.index]
+ F2c[ebin, 2] * z[ebin.index]
)
F2[F2 < 0] = 0
F2 = F2.astype(float)

F1.plot(label="F1")
F2.plot(label="F2")
plt.legend()
# TODO: THIS AIN'T WORKING SORRY :(
# modelt = "allsitescomposite1990"

# F1c, F2c = pvlib.irradiance._get_perez_coefficients(modelt)

# F1 = (
# F1c[ebin, 0]
# + F1c[ebin, 1] * delta[ebin.index]
# + F1c[ebin, 2] * z[ebin.index]
# )
# F1[F1 < 0] = 0
# F1 = F1.astype(float)

# # F2= F2c[ebin,0] + F2c[ebin,1]*delta[ebinfilter] + F2c[ebin,2]*z[ebinfilter]
# F2 = (
# F2c[ebin, 0]
# + F2c[ebin, 1] * delta[ebin.index]
# + F2c[ebin, 2] * z[ebin.index]
# )
# F2[F2 < 0] = 0
# F2 = F2.astype(float)

# F1.plot(label="F1")
# F2.plot(label="F2")
# plt.legend()

# %%
A = tools.cosd(surf_tilt) * tools.cosd(sun_zen) + tools.sind(
Expand Down

0 comments on commit e197228

Please sign in to comment.