Movatterモバイル変換


[0]ホーム

URL:


suntools

R-CMD-check

suntools provides functions for calculating the sun’s position,sunrise, sunset, solar noon, and crepuscular (twilight) times for anygiven geographical location and time on earth. Functions in suntoolsused to be part of themaptools package.The functions are based on equations provided by the National Oceanic& Atmospheric Administration (NOAA).

Main package functions: *crepuscule(): Calculatescrepuscular (twilight) times, i.e. the time of dawn or dusk. *sunriset(): Calculates the times of sunrise and sunset at agiven location. *solarpos(): Calculates the solar position(elevation and azimuth) at a given location and time. *solarnoon(): Calculates solar noon time at a givenlocation.

Installation

You can install the released version of suntools fromCRAN with:

install.packages("suntools")

Alternatively, you can install the development version fromGitHub with:

devtools::install_github("adokter/suntools")

Example

library(suntools)#Calculate sunset in Ithaca, NY, USA on June 1, 2023sunriset(matrix(c(-76.4511,42.4800),nrow =1),as.POSIXct("2023-06-01",tz ="America/New_York"),direction='sunset',POSIXct.out=TRUE)#  day_frac                time#1 0.858628 2023-06-01 20:36:25

Author(s)

References

This package uses algorithms provided by the National Oceanic &Atmospheric Administration (NOAA), for more information see


[8]ページ先頭

©2009-2025 Movatter.jp