Learn R Programming

solrad (version 1.0.0)

Sunset: Sunset Time

Description

This function estimates sunset time (in continuous hour values) for a given day of year and latitude.

Usage

Sunset(DOY, Lat)

Arguments

DOY

Day of year

Lat

Latitude (in degrees)

Examples

Run this code
# NOT RUN {
#Calculating sunset time for 365 day of the year for 45 degree latitude

DOY <- 1:365

Lat = 45

sunset <- Sunset(DOY, Lat)

plot(DOY, sunset)

# }

Run the code above in your browser using DataLab