I would like to convert daily global radiation into hourly solar radiation. While I do not know the terms, I tried using below equations I found in the papers but I have negative radiation values range between -75 to 100 j/m2/s. Any suggestions are welcome.
# radi(h) = r * radi(daily)
r <- (pi/24) * ( a + b * cos_d (w))* ((cos_d(w) - cos_d(ws)) / (sin_d(ws)-((pi/180) * ws * cos_d(ws))) )
a <- 0.409 + 0.5016 * sin_d(ws - 60)
b <- 0.6609 - 0.4767 * sin_d(ws - 60)
# W = hour angle of the sun
w <- (360/24) * (h-12.0) # h = time of the day (hour)
ws <- acos_d(-tan_d(phi)*tan_d(sigma))) # ws = sunset hour angle (degree)
phi= 36.20 # phi = location latitude angle
# sigma= declination angle of the sun [degree]
sigma = 23.45 * sin_d (360* ((284+day)/365)) # day=DOY
ris only meant for daytime hours? In this paper for instance they seem to limit the study from 8am to 4pm. – plannapus Sep 14 '12 at 7:44w <- (360/24) * (h-12.0)should probably bew <- (360/24) * (12.0-h)sincewis zero for solar noon and the morning is positive. But that doesn't really change the negative results. – plannapus Sep 14 '12 at 7:47