[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pysolar-discuss] Two questions


Hi Jan,

Pysolar used to expect all time information in UTC (release 0.6 and
earlier). Since then, Pysolar now expects you to supply a timezone-aware
datetime, rather than a naive datetime in UTC. If your results seem crazy,
this is probably why.

Cheers,
Brandon

On Mon, Mar 21, 2016 at 11:24 AM, Jan Kromhout <jankromhout@xxxxxxxxxx>
wrote:

> Hello,
>
> Have two questions.
> Should the time be in UTC?
>
> Found this as an example in the pdf doc file
>
> get_azimuth(42.206, -71.382, datetime.datetime(2007, 2, 18, 15, 18, 0, 0))
>  > -52.418308823492794
>
> >>> get_azimuth(42.206, -71.382, datetime.datetime(2007, 2, 18, 15, 18, 0,
> 0))
>
> But when I run this I get this  => -315.72530715706694
>
> Can you explain the difference?
>
> Thanks for any help.
>
> Jan Kromhout
> Hellevoetsluis-NL
>



-- 
Brandon Stafford
Rascal Micro: small computers for art and science
Somerville, MA, USA

References:
[pysolar-discuss] Two questionsJan Kromhout <jankromhout@xxxxxxxxxx>