dimensions function

Retrieve dimensions of Spectra* objects