incSWradiation: Calculates Incoming Solar Radiation

View source: R/water_netRadiation.G.R

incSWradiationR Documentation

Calculates Incoming Solar Radiation

Description

This function calculates incoming solar radiation from the surface model, the solar angles and the weather station data.

Usage

incSWradiation(surface.model, solar.angles, WeatherStation, Kt = 1)

Arguments

surface.model

SpatRaster with layers DEM, Slope and Aspect, from METRICtopo()

solar.angles

SpatRaster with layers latitude, declination, hour.angle, incidence.hor and incidence.rel (radians), from solarAngles()

WeatherStation

waterWeatherStation object (see read.WSdata) or the data.frame returned by getDataWS()

Kt

clearness (turbidity) coefficient of the atmosphere, 0 < Kt <= 1: 1 (default) for clean air, 0.5 for extremely turbid, dusty or polluted air (Allen et al., 2007). See SWtransmissivity

Value

SpatRaster with incoming short-wave radiation (W/m2) at the time of the satellite overpass. Slopes facing away from the sun (cosine of the incidence angle below 0) get no direct radiation.

Author(s)

Guillermo Federico Olmedo

Daniel de la Fuente-Sáiz

David Fonseca-Luengo

References

R. G. Allen, M. Tasumi, and R. Trezza, "Satellite-based energy balance for mapping evapotranspiration with internalized calibration (METRIC) - Model" Journal of Irrigation and Drainage Engineering, vol. 133, p. 380, 2007

See Also

Other net radiation related functions: LAI(), METRICtopo(), SWtransmissivity(), albedo(), incLWradiation(), netRadiation(), outLWradiation(), soilHeatFlux(), solarAngles(), surfaceTemperature()

Examples

# a small window of the Landsat 7 example scene, to run quickly
MTL <- system.file("extdata", "L7.MTL.txt", package = "water")
WeatherStation <- read.WSdata(WSdata = system.file("extdata", "apples.csv", package = "water"),
  date.format = "%d/%m/%Y", lat = -35.42222, long = -71.38639, elev = 201, height = 2.2,
  cf = c(1, 0.2777778, 1), tz = "America/Santiago", MTL = MTL)
image.DN <- terra::rast(L7_Talca)[1:60, 1:80, drop = FALSE]
DEM <- terra::rast(DEM_Talca)[1:60, 1:80, drop = FALSE]
surface.model <- METRICtopo(DEM)
solar.angles <- solarAngles(surface.model = surface.model,
                            WeatherStation = WeatherStation, MTL = MTL)
Rs.inc <- incSWradiation(surface.model = surface.model, solar.angles = solar.angles,
                         WeatherStation = WeatherStation)
plot(Rs.inc)

water documentation built on Nov. 25, 2026, 5:08 p.m.