Re: [R] problem with Zenith angle calculation

2014-10-30 Thread Jeff Newmiller
Your example is not reproducible. For example you don't indicate what lat and lon values you are using. Nor do you specify what time zone you are working in. These are all crucial to obtain consistency. I have no experience using the insol package, and had no luck trying it just now, but the ma

[R] problem with Zenith angle calculation

2014-10-30 Thread Alemu Tadesse
Dea R users, In the package insol I was trying to calculate sunzenith angle. I am using two different date formats as shown below and both give me different results. Comapring the results from NOAA website the one below is correct. xx<-JD(ISOdate(2010,10,1,11)) sv=sunvector(xx,lat,lon,tmz) zenith