Re: [R] maptools sunrise sunset function

From: Sebastian P. Luque <>
Date: Mon, 10 Nov 2008 14:21:06 -0600

On Mon, 10 Nov 2008 11:20:03 -0800,
"Farley, Robert" <> wrote:

> I have a time zone problem. Running the code provided I get the
> result in UTC, and a lot of warnings like this: 28: In
> as.POSIXlt.POSIXct(x, tz) ... : unknwon timezone 'PST'

>> sunrise.set(34.11583, -118.18719, "2008-11-14")

> sunrise sunset newlon 2008-11-14 14:25:02
> 2008-11-15 00:49:09

That function doesn't exist in maptools, but I guess you're referring to sunriset(). Even with that assumption, I get:

---<---------------cut here---------------start-------------->--- R> sunriset(34.11583, -118.18719, "2008-11-14") Error in function (classes, fdef, mtable) :   unable to find an inherited method for function "sunriset", for signature "numeric", "numeric"

---<---------------cut here---------------end---------------->---

Doesn't look like a time zone issue at all. Can you show something we can all run on our systems as per the posting guide? That would save us lots of time.


______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 10 Nov 2008 - 20:24:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Nov 2008 - 21:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive