Calculation of the shortwave radiation at the top of the atmosphere.

rad_sw_toa(...)

# S3 method for POSIXt
rad_sw_toa(datetime, lat, lon, ...)

# S3 method for weather_station
rad_sw_toa(weather_station, ...)

Arguments

...

Additional parameters passed to later functions.

datetime

Date and time as POSIX type. See base::as.POSIXlt() and base::strptime for conversion.

lat

Latitude of the place of the climate station in decimal degrees.

lon

Longitude of the place of the climate station in decimal degrees.

weather_station

Object of class weather_station.

Value

Shortwave radiation at top of atmosphere in W/m^2.