maptools (version 0.6-5)

solarnoon-methods: Solarnoon methods

Description

The methods return the solar noon value as a day fraction and clock time.

Arguments

Details

Usage:\ sunriset(crds, dateTime, POSIXct.out=FALSE)

Arguments:\

  • crds
{spatial positions} dateTime{POSIXct time object} \item{POSIXct.out}{return a fraction of day vector or a data frame with fraction of day values, and their POSIXct representation}

See Also

crepuscule-methods, sunriset-methods, solarpos-methods

Examples

Run this code
## Location of Helsinki, Finland, in decimal degrees,
## as listed in NOAA's website
hels <- matrix(c(24.97, 60.17), nrow=1)
Hels <- SpatialPoints(hels, proj4string=CRS("+proj=longlat +datum=WGS84"))
d041224 <- as.POSIXct("2004-12-24", tz="EET")
solarnoon(hels, d041224, POSIXct.out=TRUE)
solarnoon(Hels, d041224, POSIXct.out=TRUE)

Run the code above in your browser using DataCamp Workspace