calculate_sunrise: Function to calculate sunrise and sunset dates and times for...

View source: R/calculate_sunrise.R

calculate_sunriseR Documentation

Function to calculate sunrise and sunset dates and times for a location.

Description

calculate_sunrise uses sunriset for the calculation of dates and times.

Usage

calculate_sunrise(latitude, longitude, start = NA, end = NA, tz = "UTC", ...)

Arguments

latitude

Latitude of a location.

longitude

Longitude of a location.

start

Start date, if not used, the default is the system's date.

end

End date, if not used, the default is the system's date.

tz

Time zone to conduct calculations in.

...

A construct to allow for absorption of additional arguments, useful when using function with purrr.

Value

Tibble.

Author(s)

Stuart K. Grange.

See Also

sunriset

Examples


# Get sunrise and sunset dates for London for today
calculate_sunrise(latitude = 51.5072, longitude = 0.1275)

# Or specify dates
calculate_sunrise(
  latitude = 51.5072, 
  longitude = 0.1275, 
  start = "2015-12-01", 
  end = "2015-12-31"
)


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.