Skip to content
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

port Purdue bifacial irradiance model #914

Closed
wants to merge 7 commits into from
Closed
38 changes: 38 additions & 0 deletions pvlib/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,44 @@ def asind(number):
return res


def acosd(number):
"""
Inverse Cosine returning an angle in degrees

Parameters
----------
number : float
Input number

Returns
-------
result : float
arccos result
"""

res = np.degrees(np.arccos(number))
return res


def atand(number):
"""
Inverse Tan returning an angle in degrees

Parameters
----------
number : float
Input number

Returns
-------
result : float
arctan result
"""

res = np.degrees(np.arctan(number))
return res


def localize_to_utc(time, location):
"""
Converts or localizes a time series to UTC.
Expand Down