Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
solar_calculations.F90 File Reference

Go to the source code of this file.

Modules

module  solar_calculations

Functions/Subroutines

real(c_double) function solar_calculations::daylight_hours (domega_s)
 Calculate the number of daylight hours at a location.
elemental real(c_double) function solar_calculations::extraterrestrial_radiation__ra (dlatitude, ddelta, domega_s, ddsubr)
 Calculate extraterrestrial radiation given latitude and time of year.
real(c_double) function solar_calculations::net_shortwave_radiation__rns (drs, dalbedo)
 Calculate net shortwave radiation.
elemental real(c_double) function solar_calculations::solar_declination_simple__delta (idayofyear, inumdaysinyear)
 Calculate the solar declination for a given day of the year.
elemental real(c_double) function solar_calculations::solar_declination__delta (idayofyear, inumdaysinyear)
 Calculate the solar declination for a given day of the year.
elemental real(c_double) function solar_calculations::relative_earth_sun_distance__d_r (idayofyear, inumdaysinyear)
 Calculate the inverse relative Earth-Sun distance for a given day of the year.
elemental real(c_double) function solar_calculations::sunrise_sunset_angle__omega_s (dlatitude, ddelta)
 Calculate sunrise/sunset angle, in RADIANS.
real(c_double) function solar_calculations::solar_radiation_hargreaves__rs (dra, ftmin, ftmax)
 Calculate shortwave solar radiation.
elemental real(c_float) function solar_calculations::estimate_percent_of_possible_sunshine__psun (ftmax, ftmin)
 Estimate percent of possible sunshine.
real(c_double) function solar_calculations::clear_sky_solar_radiation__rso (dra, das, dbs)
 Calculate clear sky solar radiation.
real(c_double) function solar_calculations::clear_sky_solar_radiation_noab__rso (dra, felevation)
 Calculate the clear sky solar radiation.
elemental real(c_double) function solar_calculations::solar_radiation__rs (dra, das, dbs, fpctsun)
 Calculate solar radiation by means of the Angstrom formula.
elemental real(c_double) function solar_calculations::net_longwave_radiation__rnl (ftmin, ftmax, drs, drso)
 Calculate net longwave radiation flux.
elemental real(c_double) function solar_calculations::day_angle__gamma (idayofyear, inumdaysinyear)
 Calculate the day angle in RADIANS.
real(c_double) function solar_calculations::solar_altitude__alpha (dtheta_z)
 Calculate the solar altitude given the zenith angle.
real(c_double) function solar_calculations::zenith_angle__theta_z (dlatitude, ddelta, domega)
 Calculate solar zenith angle given latitude, declination, and (optionally) hour angle.
real(c_double) function solar_calculations::azimuth_angle__psi (ralpha, rlatitude, rdelta)
 Calculate solar azimuth angle.

Variables

real(c_float) solar_calculations::earth_sun_dist_dr
real(c_float) solar_calculations::solar_declination_delta