photobiologySunCalc: Sun and Atmosphere Calculations
Source:R/photobiologySunCalc.r
photobiologySunCalc-package.Rd
Compute the position of the sun, day and night length, local solar time using Meeus' very accurate formulae. Estimate air mass (AM) from solar elevation, reference evapotranspiration, and interconvert air water content expressed as different physical quantities.
References
Aphalo, Pedro J. (2015) The r4photobiology suite. UV4Plants Bulletin, 2015:1, 21-29. doi:10.19232/uv4pb.2015.1.14 .
Author
Maintainer: Pedro J. Aphalo pedro.aphalo@helsinki.fi (ORCID)
Examples
# daylength
sunrise_time(lubridate::today(tzone = "EET"), tz = "EET",
geocode = data.frame(lat = 60, lon = 25),
unit.out = "hour")
#> [1] 5.240098
day_length(lubridate::today(tzone = "EET"), tz = "EET",
geocode = data.frame(lat = 60, lon = 25),
unit.out = "hour")
#> [1] 16.3817
sun_angles(lubridate::now(tzone = "EET"), tz = "EET",
geocode = data.frame(lat = 60, lon = 25))
#> # A tibble: 1 × 12
#> time tz solartime longitude latitude address azimuth
#> <dttm> <chr> <solar_tm> <dbl> <dbl> <chr> <dbl>
#> 1 2024-08-06 10:37:12 EET 09:11:19 25 60 NA 126.
#> # ℹ 5 more variables: elevation <dbl>, declination <dbl>, eq.of.time <dbl>,
#> # hour.angle <dbl>, distance <dbl>
water_vp_sat(23) # 23 C -> vapour pressure in Pa
#> [1] 2809.097