datastorm-open / suncalc

R package for calculating sun/moon positions and phases, linked to suncalc.js
Other
43 stars 10 forks source link

Vectorized time zone? #3

Open dmi3kno opened 5 years ago

dmi3kno commented 5 years ago

I am using lutz to lookup local time zone given the coordinates (stretching pretty far north in the northern hemosphere). I would like to be able to pass the timezone column along with the set of coordinates into the suncalc::getSunlightTimes() to calculate sunrise/sunset time in the local timezone of the lon/lat position. This might be useful for correctly specifying the date for my measurements taken before/after the midnight UTC, but not necessarily on two different solar days in the location of the measurement.