[R] maptools sunrise sunset function

Sebastian P. Luque spluque at gmail.com
Mon Nov 10 21:21:06 CET 2008

On Mon, 10 Nov 2008 11:20:03 -0800,
"Farley, Robert" <FarleyR at metro.net> 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.


More information about the R-help mailing list