libTheSky
Routines to compute sky positions of Sun, Moon, planets and more
All Namespaces Files Functions Variables Pages
daylight.f90 File Reference

(libTheSky version 0.4.3, revision 299, hash 71a3740, 2025-03-02)

Procedures that deal with daylight for libTheSky. More...

Go to the source code of this file.

Modules

module  thesky_daylight
 Daylight procedures.
 

Functions/Subroutines

real(double) function thesky_daylight::extinction_sun_airmass (airmass)
 Compute an approximation for the bolometric atmospheric extinction factor for the Sun with a given air mass.
 
real(double) function thesky_daylight::extinction_sun (alt)
 Compute an approximation for the bolometric atmospheric extinction factor for the Sun with a given altitude.
 
subroutine thesky_daylight::solar_radiation (alt, beam_norm, beam_horiz)
 Compute the normal and horizontal beam (direct) solar radiation for a given altitude of the Sun, assuming a cloudless sky (and sea level)
 
subroutine thesky_daylight::clearsky_bird (alt, io, rsun, press, uo, uw, ta5, ta3, ba, k1, rg, itot, idir, idif, igr)
 A simplified clear-sky model for direct and diffuse insolation on horizontal surfaces (a.k.a. as the Bird model)
 
subroutine thesky_daylight::diffuse_radiation_perez87 (doy, alt, surfincl, theta, gbeam_n, gdif_hor, gdif_inc, gdif_inc_is, gdif_inc_cs, gdif_inc_hz)
 Compute diffuse radiation on an inclined surface using the older (1987) Perez model.
 
real(double) function thesky_daylight::project_sunlight_on_surface (beta, gamma, sunaz, sunalt)
 Compute the projection factor of direct solar radiation (DNI) on a (sloped) surface.
 

Detailed Description

Procedures that deal with daylight for libTheSky.

Definition in file daylight.f90.