Estimating incident terrestrial radiation under all atmospheric conditions