OK, so looks like there is no way with Ruby to extract single subarrays from md-arrays with unknown dimensions. Thanks all for help. -- Maurizio