Complicated Hour angle problem
Posted: 19.11.2004, 04:37
I'm having an inordinate amount of trouble trying to replicate a graph I found in a textbook on climate, and I'm wondering if anyone here can help because this is just about the only place I can think of that I could possibly find someone who can figure this out! The problem is mostly trigonometric in nature, but is rather complex, so bear with me.
It's a graph that shows the amount of solar insolation at the top of Earth's atmosphere, in terms of time of year and latitude:
Here's what the graph looks like, just so you know what I'm talking about (he says, hoping that someone here recognises it).
Now, the formula to figure this out is rather complex:
Qo = (P/pi).S.((dm/d)^2).[(H.sin(phi).sin(delta))+(cos(phi).cos(delta).sin(H))]
where:
P = rotation period of planet in seconds
pi = 3.14159etc
S = solar constant (W/m2)
dm = mean orbital distance from sun in metres
d = current orbital distance from sun in metres (varies over a year)
H = Solar hour angle (radians)
phi = latitude of observer on planet (radians)
delta = solar declination (radians)
where:
H = arccos (-tan(phi).tan(delta))
As best as I can tell, the Solar hour angle is generally defined as "the angle measured at the celestial pole between the observer's meridian and the solar meridian". Counting from midday, it changes by 15 degrees per hour. However, in this equation H is actually the hour angle at local sunrise or sunset, where the sun intersects the observer's horizon.
(following me so far? )
Now, if I plug this into excel, with the following numbers:
P = 86400 s
S = 1360 W/m2
dm= 1.496e+11 m
d = 1.47E+11 in January to 1.52E+11 in June
delta = varies between -23 degrees in January and +23 degrees in June. (express as radians in formula)
phi = varies between 90 and -90 degrees, depending on location. (express as radians in formula)
, then I get the numbers shown on that graph. So far so good.
BUT...
there seems to be a problem with the Hour angle - when I figure it out it's symmetric about a latitude of 0 degrees. Which means that in January, as I calculate it both the north AND south poles don't see any sunlight, which of course is impossible (when one points away from the sun and is in darkness, the other pole has to be pointing toward the sun). Furthermore, the symmetry is there for all the other months too, so what I'm actually getting is that graph but with all the shaded areas reflected along the 0 degree latitude line.
I'm sure the equation for Hour Angle is correct, but something is clearly going screwy somewhere, and I'm buggered if I can spot where the problem is... but it seems to have something to do with the hour angle. I seem to be getting Hour Angles that are above 90 degrees, and I'm not convinced that this is even possible. So I think there's a trigonometry problem here.
So does anyone have any idea where I could be going wrong here? (I hope I've given enough information - if you need more I can provide it). I basically need to remove that symmetry between the poles somehow, and I'm pretty sure the formulae are all correct, so maybe my numbers are screwy? But can anyone just generally see where I'm going wrong here based on what I've described?
It's a graph that shows the amount of solar insolation at the top of Earth's atmosphere, in terms of time of year and latitude:
Here's what the graph looks like, just so you know what I'm talking about (he says, hoping that someone here recognises it).
Now, the formula to figure this out is rather complex:
Qo = (P/pi).S.((dm/d)^2).[(H.sin(phi).sin(delta))+(cos(phi).cos(delta).sin(H))]
where:
P = rotation period of planet in seconds
pi = 3.14159etc
S = solar constant (W/m2)
dm = mean orbital distance from sun in metres
d = current orbital distance from sun in metres (varies over a year)
H = Solar hour angle (radians)
phi = latitude of observer on planet (radians)
delta = solar declination (radians)
where:
H = arccos (-tan(phi).tan(delta))
As best as I can tell, the Solar hour angle is generally defined as "the angle measured at the celestial pole between the observer's meridian and the solar meridian". Counting from midday, it changes by 15 degrees per hour. However, in this equation H is actually the hour angle at local sunrise or sunset, where the sun intersects the observer's horizon.
(following me so far? )
Now, if I plug this into excel, with the following numbers:
P = 86400 s
S = 1360 W/m2
dm= 1.496e+11 m
d = 1.47E+11 in January to 1.52E+11 in June
delta = varies between -23 degrees in January and +23 degrees in June. (express as radians in formula)
phi = varies between 90 and -90 degrees, depending on location. (express as radians in formula)
, then I get the numbers shown on that graph. So far so good.
BUT...
there seems to be a problem with the Hour angle - when I figure it out it's symmetric about a latitude of 0 degrees. Which means that in January, as I calculate it both the north AND south poles don't see any sunlight, which of course is impossible (when one points away from the sun and is in darkness, the other pole has to be pointing toward the sun). Furthermore, the symmetry is there for all the other months too, so what I'm actually getting is that graph but with all the shaded areas reflected along the 0 degree latitude line.
I'm sure the equation for Hour Angle is correct, but something is clearly going screwy somewhere, and I'm buggered if I can spot where the problem is... but it seems to have something to do with the hour angle. I seem to be getting Hour Angles that are above 90 degrees, and I'm not convinced that this is even possible. So I think there's a trigonometry problem here.
So does anyone have any idea where I could be going wrong here? (I hope I've given enough information - if you need more I can provide it). I basically need to remove that symmetry between the poles somehow, and I'm pretty sure the formulae are all correct, so maybe my numbers are screwy? But can anyone just generally see where I'm going wrong here based on what I've described?