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

Add azimuth value #172

Open
WhistleMaster opened this issue Jul 24, 2022 · 3 comments
Open

Add azimuth value #172

WhistleMaster opened this issue Jul 24, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@WhistleMaster
Copy link

New Feature

HI !

Thanks for the great work ! Would it be possible to add the azimuth value to the list of sensors ?

Kind regards,
WM

Additional context

No response

@WhistleMaster WhistleMaster added the enhancement New feature or request label Jul 24, 2022
@briis
Copy link
Owner

briis commented Jul 24, 2022

We will look into it.

@GlennGoddard
Copy link
Contributor

I did calculate these here but I have them deeply embedded in the Solar Elevation formula.

Here is a quick breakout:

def solar_azimuth(solar_elevation, solar_hour_angle, latitude):
    elev = math.radians(solar_elevation)
    ha = math.radians(solar_hour_angle)
    lat = math.radians(latitude)
    az = math.degrees(math.asin( math.sin(ha) * math.sin(lat) / math.cos(elev) ))
    return az

@GlennGoddard
Copy link
Contributor

I also have hour angle embedded, forgot to pull that out. I'll do that later if needed here if not in a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants