Finding the Sun's Angle from Longitude, Latitude & Time/Date

In summary, if you had your longitude/latitude, and the time/date, how could I go about working out the angle between your normal and the sun?
  • #1
NotASmurf
150
2
If you had your longitude/latitude, and the time/date, how could I go about working out the angle between your normal and the sun?
At first I was doing a simplistic approach of assuming elliptical orbit in only two dimensions and that the Earth is a perfect sphere,Can I get a more accurate method /formula than this that can be evaluated in one step without any iterative methods?

Any help appreciated.
 
Astronomy news on Phys.org
  • #2
I did that for a computer simulation of Solar heating for buildings about 45 years ago, so the details are rather sparse. Here is what I recall.
  • For the basic apparent position from the observer, I used the equations for a satellite position that I modified for a 1 yr. period.
  • As per convention, the 'Zero' reference for calculation was local Solar Noon on the Spring Equinox
  • The 23.5° axis tilt with a period of one year was combined with the observers Latitude
  • Azimuth was calculated from local Sunrise to Sunset, (in the US, this data was available in Federal Government publications)
There was an additional small correction of several degrees that was needed. I never knew the reason, but it was an additional low amplitude sine wave phase shifted from the Equinox. That got the result close enough to published data to be useful.

The calculation was done by using the 'Day-of-the-Year' and converting that to 'Day-from-Equinox', then plugging that and the local time into the calculation.

I don't recall the overall accuracy obtained, but it satisfied the legal requirements to calculate the annual energy usage of buildings. If you are trying to aim a telescope you will need several more corrections. For Solar Panel positioning the above general approach would be more than adequate.

Have Fun!

Cheers,
Tom

p.s. What is the project this is for?
 
  • #3
Tom.G said:
p.s. What is the project this is for?
Same thing as you actually lol, solar panels, except I need to calculate savings given the roof size and geographic location. Not for paid work, just need to know if they're worth the cost within the first year.
Each panel gives 425w at optimal efficiency, but wanted more accurate kwh per month.

Was hoping there was a formula for exact sun position, and that someone made a parametric equation of the shape of the Earth so I could use that to get the normal vector, and then already have sun position relative to the earth. I never did astrophysics so was reeeallly hoping a pre-existing formula existed, only CS and 2 years of mechanics and basic quantum.
 
  • #4
For one-time use that you need it is a LOT easier to let the Internet do it for you.

Try this search:
https://www.google.com/search?&q=solar+panel+calculator+map

Or leave the "map" off of it for a wider search.

Anyhow, I would be surprised if you can get a 1-year payback.

Where are you located? Let us know what you find.

Cheers,
Tom
 
  • #5
There are probably lots of documents on the web which have the relevant equations.
I've been working with the following for a couple of hours: Solar Geometry

I believe this is a simplified version of the ultimate equation:
cos(θ)=sin(δ)sin(ϕ)cos(β)+sin(δ)cos(ϕ)sin(β)cos(γ)+cos(δ)cos(ϕ)cos(β)cos(ω)-cos(δ)sin(ϕ)sin(β)cos(γ)cos(ω)-cos(δ)sin(β)sin(γ)sin(ω) {3.11}​
[note: I replaced their AZS with γ{= gamma}. Mainly because a third site, Angular Symbols for Standard Solar Relations, used it.]​
Theta(θ) being the angle between the sun and the surface in question.

Tom.G said:
Thanks! I long suspected I lived in the wrong house for solar. That calculator says I'd still be in the hole $7000 after 20 years.
 
  • #6
The answers you got have merit. But see the NOAA page link below (bottom) to check any results. It is waaay cool. I had to create an accurate program like what you want, once upon a time. Turned out to be really challenging, had to get outside help.

It is the solar position angle you want, I believe.

Jean Meeus discusses this in his book: 'Astronomical Algorithms', 1991

To start with, what you need to do:
You are looking for the sun declination angle: http://mypages.iit.edu/~maslanka/SolarGeo.pdf
Has a nice explanation.

Next, Civil time correction:
You have to correct for the analemma - noon sun time is not the same as civil noon, almost every day of the year.
http://dfacaz.org/wp-content/QUIDNOVI/2007/02-03-2007/analemma.pdf

At this point you have a good sun noon declination angle, corrected for the equation of time.

If you actually get this far I can show you what JPL does to get the actual angle for any day time after all the corrections above. You need the Sun zenith angle, and other goodies.
...mmmm: No I Cannot right now. Ugh.

I cannot find it in my notes. It is part of calculating sunrise and sunset times for any lat/long between the arctic and antarctic circles for any day of the year. I got the FORTRAN code from NASA/JPL and it had some problems with accuracy as I recall. It does not seem to be out there anymore. Understandably. JPL has to track objects very carefully. Including the sun.

It was the code behind this page's predecessor:

https://www.esrl.noaa.gov/gmd/grad/solcalc/azel.html
 
  • Informative
Likes berkeman
  • #8
NotASmurf said:
Was hoping there was a formula for exact sun position, and that someone made a parametric equation . . . . etc.
You do not need an 'exact' answer for this. The requirement for accuracy of this angle is very slack indeed. The patterns of sensitivity of solar panels are very broad and the maximum is very wide so pointing doesn't need to be very accurate at all - except to make you feel better, perhaps. It would be a different matter if you wanted to track the Sun with a narrow beam optical or radio telescope.

There are so many unknowns in trying to predict the probable power output at any time. The local topography, for one, can have a great effect on local cloud cover and mist and you could only determine that by long term measurements (over many years) with comparative data about many other sites.

If you want to estimate whether the project is really worth while the financial risk then the best answer wouldn't come from the physics but from the Market. I think you would need to compare the prices that people, locally have actually paid for their installations with any cost estimate you have been given. If that estimate is significantly well below the median value of what people have paid then go for it. Now that the Feed In Tarrif has dropped to the level of useless you are 'on your own' - worse still, you (and all the rest of us) are paying for the subsidy that all those early installations have been earning.

What's needed is for governments to take the risk and provide a fair form of subsidy to make this sort of domestic project attractive. Climate change could be a massive factor too - probably in your favour.
 
  • Like
Likes davenn and Klystron
  • #9
OmCheeto said:
...Thanks! I long suspected I lived in the wrong house for solar. That calculator says I'd still be in the hole $7000 after 20 years.
Yeah, same boat. My wife and I approached two different solar installers, one even did residential ground mounts, giving extra placement options. Both researched our location and using google Earth told us emphatically forget it. Unless we were willing to completely chop down a big, old, oak grove covering the whole south third of our property (we live in the northern hemisphere), they wouldn't even talk to us further. As people across the street go solar (their oaks are north side of property), we grumble, grumble ...
 
  • #10
PAllen said:
we grumble, grumble ...
Understandable and I've been there too. But you can spend all that money on other projects. Serious insulation and a heat pump are options everywhere. You can then feel smug when you have a period of heavy cloud. :wink:
 

1. What is the purpose of finding the sun's angle from longitude, latitude, and time/date?

The purpose of finding the sun's angle is to determine the position of the sun in the sky at a specific location and time. This information is useful for various applications such as navigation, astronomy, and solar energy systems.

2. How do longitude, latitude, and time/date affect the sun's angle?

Longitude and latitude determine the location on Earth where the sun's angle is being measured. Time and date play a role in the angle because the Earth's rotation and orbit around the sun cause the sun's position in the sky to change throughout the day and year.

3. What tools are needed to find the sun's angle from longitude, latitude, and time/date?

To find the sun's angle, you will need a protractor, a compass, a map or GPS device to determine your longitude and latitude, and a way to accurately measure time, such as a clock or smartphone.

4. How is the sun's angle calculated from longitude, latitude, and time/date?

The sun's angle can be calculated using trigonometry and the known values of longitude, latitude, and time/date. This involves using the Earth's tilt, the sun's declination angle, and the observer's position to determine the angle between the horizon and the sun's position in the sky.

5. Can the sun's angle be found at any location and time?

Yes, the sun's angle can be found at any location and time as long as you have the necessary information and tools. However, the accuracy of the measurement may vary depending on factors such as weather conditions and the precision of the tools being used.

Similar threads

Replies
12
Views
1K
  • Astronomy and Astrophysics
Replies
1
Views
4K
  • Introductory Physics Homework Help
Replies
11
Views
3K
  • Introductory Physics Homework Help
Replies
19
Views
4K
  • Astronomy and Astrophysics
Replies
15
Views
4K
Replies
17
Views
2K
  • Art, Music, History, and Linguistics
Replies
2
Views
2K
  • Astronomy and Astrophysics
Replies
4
Views
3K
Replies
5
Views
868
  • Astronomy and Astrophysics
Replies
30
Views
3K
Back
Top