RAM estimation from covariance matrix where ns differ per cell