Re: [R] time zones from longitude, latitude, and date

2013-09-24 Thread Prof Brian Ripley
On 23/09/2013 22:43, MacQueen, Don wrote: The very first response, from Jeff Newmiller, included a link http://efele.net/maps/tz/world/ which says it has offers a shapefile of timezones of the world. An outline of a solution, then it to download the shapefile load it into R input

Re: [R] time zones from longitude, latitude, and date

2013-09-23 Thread Olivier Eterradossi
carlisle thacker carlisle.thacker at gmail.com writes: I have data that provide longitude, latitude, and local date and time but no information about the corresponding time zone. How to identify the time zone so they can be converted to a common date/time? Thanks, Carlisle

Re: [R] time zones from longitude, latitude, and date

2013-09-23 Thread David Winsemius
On Sep 23, 2013, at 9:05 AM, carlisle thacker wrote: Gabor, Thanks for your tip about zone.tab. It provides country codes and lat/lon of the zone's principal location, which while useful is not exactly what I need. I would like to know the coordinates of time zone boundaries.

Re: [R] time zones from longitude, latitude, and date

2013-09-23 Thread carlisle thacker
Gabor, Thanks for your tip about zone.tab. It provides country codes and lat/lon of the zone's principal location, which while useful is not exactly what I need. I would like to know the coordinates of time zone boundaries. Better still would be a function, which returns the name of the time

Re: [R] time zones from longitude, latitude, and date

2013-09-23 Thread MacQueen, Don
The very first response, from Jeff Newmiller, included a link http://efele.net/maps/tz/world/ which says it has offers a shapefile of timezones of the world. An outline of a solution, then it to download the shapefile load it into R input your lat/long data into R use the over()

Re: [R] time zones from longitude, latitude, and date

2013-09-23 Thread carlisle thacker
Thanks. This seems to return the correct offset. For example, it knows about the time zone not following the meridian in this part of the Pacific: GNtimezone(14,-172) rawOffset dstOffset gmtOffset lng lat 1 -11 0 -11 -172 14 Warning message: In readLines(u) :

Re: [R] time zones from longitude, latitude, and date

2013-09-22 Thread Gabor Grothendieck
On Sat, Sep 21, 2013 at 10:25 AM, David Winsemius dwinsem...@comcast.net wrote: On Sep 21, 2013, at 3:13 AM, Prof Brian Ripley wrote: On 21/09/2013 08:17, Gabor Grothendieck wrote: On Fri, Sep 20, 2013 at 4:31 PM, carlisle thacker carlisle.thac...@gmail.com wrote: I was looking for

Re: [R] time zones from longitude, latitude, and date

2013-09-21 Thread carlisle thacker
I was looking for something like shown on the map: http://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png Information about local daylight savings times would also help. The data are from ships, supposedly in local time, but no time-zone info is given. A function that would

Re: [R] time zones from longitude, latitude, and date

2013-09-21 Thread Gabor Grothendieck
On Fri, Sep 20, 2013 at 4:31 PM, carlisle thacker carlisle.thac...@gmail.com wrote: I was looking for something like shown on the map: http://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png Information about local daylight savings times would also help. The data are from

Re: [R] time zones from longitude, latitude, and date

2013-09-21 Thread Prof Brian Ripley
On 21/09/2013 08:17, Gabor Grothendieck wrote: On Fri, Sep 20, 2013 at 4:31 PM, carlisle thacker carlisle.thac...@gmail.com wrote: I was looking for something like shown on the map: http://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png Information about local daylight

Re: [R] time zones from longitude, latitude, and date

2013-09-21 Thread David Winsemius
On Sep 21, 2013, at 3:13 AM, Prof Brian Ripley wrote: On 21/09/2013 08:17, Gabor Grothendieck wrote: On Fri, Sep 20, 2013 at 4:31 PM, carlisle thacker carlisle.thac...@gmail.com wrote: I was looking for something like shown on the map:

[R] time zones from longitude, latitude, and date

2013-09-20 Thread carlisle thacker
I have data that provide longitude, latitude, and local date and time but no information about the corresponding time zone. How to identify the time zone so they can be converted to a common date/time? Thanks, Carlisle [[alternative HTML version deleted]]

Re: [R] time zones from longitude, latitude, and date

2013-09-20 Thread Jeff Newmiller
If you make no further assumptions then this question is not solvable. For example we use standard time in our data collection systems even though legal time here applies daylight savings offset in the summer. In some cases I have seen data collected from sites in multiple time zones recorded

Re: [R] time zones from longitude, latitude, and date

2013-09-20 Thread David Winsemius
On Sep 20, 2013, at 8:02 AM, carlisle thacker wrote: I have data that provide longitude, latitude, and local date and time but no information about the corresponding time zone. How to identify the time zone so they can be converted to a common date/time? Perhaps as an approximation you