get_info function

Extract dimensionality.