<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>Just bumped into the weirdest bug in r.sun on GRASS 7.4 as installed from the Ubuntu repository.<br><br></div>I am using r.sun in Mode 2 to compute the daily average global radiation. The GRASS location is using EPSG:3031: this is data over the entire Antarctica.<br><br></div>For some specific days, that seem to be in winter, when most of the continent doesn't recieve any solar radiation, the command would hang forever at 9%:<br><br>For example I had to kill this command:<br><br>[Raster MASK present]<br>GRASS 7.4.0 (modis_lst_2015):/media/pierre/1TB_ext4/code > time r.sun elev=dem_1k aspect=aspect_1k slope=slope_1k day=159 glob_rad=glob_rad_159 --o --verbose<br>Number of threads <1><br>Mode 2: integrated daily irradiation for a given day of the year<br>Using Linke constant: 3.000000<br>Using albedo constant: 0.200000<br>Using slope map <slope_1k><br>Using aspect map <aspect_1k><br>^C 9%<br><br>But for the day before and the day after the command was successful in less than a minute:<br><br>GRASS 7.4.0 (modis_lst_2015):/media/pierre/1TB_ext4/code > time r.sun elev=dem_1k aspect=aspect_1k slope=slope_1k day=160 glob_rad=glob_rad_160 --o --verbose<br>Number of threads <1><br>Mode 2: integrated daily irradiation for a given day of the year<br>Using Linke constant: 3.000000<br>Using albedo constant: 0.200000<br>Using slope map <slope_1k><br>Using aspect map <aspect_1k><br> 100%<br><br>real    0m30.019s<br>user    0m29.602s<br>sys    0m0.372s<br><br></div><div>It also happened on day 151... I'm a bit stuck, so any pointers would be appreciated.<br><br></div>Cheers,<br><br></div>Pierre<br></div>