SEE-GEO / ccic

Chalmers Cloud Ice Climatology
MIT License
2 stars 2 forks source link

Tweaks for monthly mean calculation. #71

Closed simonpf closed 9 months ago

simonpf commented 9 months ago

Modifications to the monthly mean calculation to speed up the processing on sun.

Main changes:

The changes took the processing time for a single month down from about 20 to 10 minutes on sun. Moreover, the reduced memory requirements allow running about 8 processes in parallel.

simonpf commented 9 months ago

I compared the means calculated using single and double precision (see plot below) and it does not make a significant difference. So it seems safe to run the calculations using single precision.

monthly_mean_comparison

adriaat commented 9 months ago

I compared the means calculated using single and double precision (see plot below) and it does not make a significant difference. So it seems safe to run the calculations using single precision.

monthly_mean_comparison

What does the plot show? In any case, I also think single precision should be OK, but recently (working with another problem) using single and double precision when computing means from a large array did make a difference. So if we can allow it, I'd compute the means with double precision.