From what I've read.. during nasty weather, the subs would submerge to 60 -100 feet (or to a calmer depth) and ride out the storm.
Attacking is also risky wrt the torps keeping depth, and could pre-detonate. Set them too deep and they'll miss anyway...
So essentially staying on the surface during rough weather is generally avoided in RL, even to shadow a ship.