## Make a timestamp vector
timezone <- "Etc/GMT-8"
time <- seq(as.POSIXct("2026/01/01", tz = timezone),
as.POSIXct("2026/01/02", tz = timezone), by = "30 min")
## Obtain global solar radiation at Lambir Hills National Park in Malaysia
result <-
calc_sw_in_toa(vctr_time = time, lat = 4.201007, lon = 114.039079,
std_meridian = 120)
Run the code above in your browser using DataLab