Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

TimeOffset parameter of SolarPosition function


Jamal May 25, 2015 01:13 PM

Hello,

I'm using SolarPosition function for Solar elevation calculation. The CR1000 datalogger is using GMT time zone but located at longitude 12° 57' West of Greenwich. What is the correct value of TimeOffset parameter.

Thanks


kirving May 25, 2015 02:54 PM

I think you'd use 0 for the offset. Here's a partial program that we use:

constTable
const LATITUDE = 69.94594
const LONGITUDE = -148.66731
const ELEVATION_M = 60
const TZ_HOURS = -9
endConstTable

public solarpos(5)
alias solarpos = sun_azimuth, sun_elevation, hr_angle, declination, air_mass

beginProg
scan(60,sec,0,0)
solarPosition(solarpos, -1, TZ_HOURS*3600, LATITUDE, LONGITUDE, ELEVATION_M, -1, at)
nextScan
endProg

I guess 'at' is for air temperature, not declared or set in the code shown.

Log in or register to post/reply in the forum.