indexing bug for sampling the clear sky rad