improvements to calculations for width and number of clouds