0
$\begingroup$

How can the intensity of sunlight throughout the day be calculated in comparison to its maximum intensity (at noon) using the solar altitude under natural conditions? By it's equations or python.

By "under natural conditions" I mean "A sunny day without clouds in the desert with no other influences"

$\endgroup$
3
  • 1
    $\begingroup$ Take a look at the first diagram in my answer astronomy.stackexchange.com/a/51898/16685 $\endgroup$
    – PM 2Ring
    Commented Sep 19 at 17:16
  • $\begingroup$ If you are trying to model sunlight in a game, and you are trying to be "accurate", give up. There is no way a computer monitor can even get close to the variation in intensity. You can't make a monitor that is as bright as daylight, and wouldn't want to. Instead you want a model that "feels right" and "supports gameplay". $\endgroup$
    – James K
    Commented Sep 20 at 4:43
  • 1
    $\begingroup$ I know, so I explained that I want to calculate it "comparison to its maximum intensity (at noon)" so that the result is a percentage that I can control the maximum intensity I want according to my game, Note that there is a game development engine (called Unity) parameter for the intensity of sunlight in Lux. It doesn't matter to be very precise; the important thing is to simulate it similar to the way the sun actually works. $\endgroup$
    – Ahmed Dyaa
    Commented Sep 20 at 5:49

1 Answer 1

3
$\begingroup$

The concept you need is called "air mass" or "airmass". Air mass is a unitless parameter that indicates how many thicknesses of the Earth's atmosphere that sunlight has to pass through before hitting the surface. A value of zero (AM0) indicates the air mass for the top of the atmosphere, hence the zero. A value of one (AM1) indicates that sunlight has to pass through one Earth atmosphere when the Sun is directly overhead (zenith angle = 0). Higher values are indicative of the Sun being lower in the sky and hence sunlight having to pass through more than the equivalent of one thickness of the Earth's atmosphere.

The linked wikipedia page provides multiple approximate formulae for computing air mass as a function of zenith angle, and then provides another formula for computing intensity as a function of air mass. I have reproduced a couple of these below:

$$ \text{AM} = \frac{2r+1}{\sqrt{(r\cos z)^2 + 2r + 1}+r\cos z}$$ where

  • $r$ is the ratio of the Earth's radius to the effective thickness of the Earth's atmosphere (most people use $r=908$),
  • $z$ is the zenith angle of the Sun, and
  • $\text{AM}$ is the air mass. $$ I = 1.1\,I_0\,0.7^{(\text{AM}^{\,0.678})}$$ where
  • $\text{AM}$ is the air mass, as calculated above, or by some other equation,
  • $I_0$ is the solar constant, $1353 \text{W}/\text{m^2}$, and
  • $I$ is the intensity at the surface, assuming no clouds, no humidity, and no pollution.
$\endgroup$
15
  • $\begingroup$ After many researches, I found this equation for air mass AM= 1​ / cos(Altitude - 90​°)+0.50572⋅(96.07995−Altitude - 90​°​)−1.6364, what is the difference between it and the equation that you mentioned, and which is more accurate? $\endgroup$
    – Ahmed Dyaa
    Commented Sep 23 at 12:34
  • $\begingroup$ Regarding the solar constant, In SunCalc the solar constant changes with the change of time or location, is there a equation for calculating it or what? $\endgroup$
    – Ahmed Dyaa
    Commented Sep 23 at 12:36
  • 1
    $\begingroup$ @AhmedDyaa The so-called solar constant is more or less a constant. It is the intensity of solar radiation received by a one square meter flat plate located one astronomical unit from the Sun and oriented such that the normal to the plate points toward the center of the Sun. Strictly speaking, it's not quite a constant because the Earth's orbit is somewhat elliptical and because the Sun's output is not quite constant, but everyone uses it as a constant. $\endgroup$ Commented Sep 23 at 13:42
  • $\begingroup$ @Devid Hammen Thank you for the clarification, but is there an equation to calculate and what is the difference between the two equations of air mass? $\endgroup$
    – Ahmed Dyaa
    Commented Sep 23 at 13:57
  • $\begingroup$ @AhmedDyaa You need the air mass to calculate the second equation. You need the Sun's zenith angle to calculate air mass. You can find software for calculating the Sun's zenith angle as a function of latitude, longitude, time of day, and day of year. I strongly suggest using software (freely available on the internet) for the zenith angle calculation. $\endgroup$ Commented Sep 23 at 15:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .