Closed fleimgruber closed 9 years ago
The use of UTC in solaR
is a synonym of mean solar time, as documented in the local2solaR
help page (I will add this information in the introductory help page of the package):
It is important to note that the ‘solaR’ package sets the system time zone to ‘UTC’ with ‘Sys.setenv(TZ='UTC')’. Every ‘zoo’ object created by the package will have an index with this time zone and will be supposed to be mean solar time.
I know that this is a confusing use of time zones, but I haven't found a better solution yet. Maybe I will change to chron
or data.table::ITime
in the future.
Thanks for the clarification. Thinking in terms of a solution, one could convert the mean solar time to true UTC time based on the time zone that needs to be deducted from the given longitude, correct?
Right. The function local2solaR
implements the inverse conversion.
Given
the resulting
test
object has the first non-zero value ofsolI$Bo0
at 8 a.m. UTC. According to another source of sunrise time, the local time (UTC+1 in this case) of sunrise was at 7:45 a.m. So the series ofsolI$Bo0
seems to be off by one hour.gives
and
gives
"UTC"
.