Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants