def ndim(array, dims):
    """Return True IFF CRDS `array` object has number of dimensions `dims`.
    
    >>> array = utils.Struct({"KIND":"IMAGE", "SHAPE" : (2048,2048), "TYPE": "float32"})
    
    >>> ndim(array, 2)
    True
    
    >>> ndim(array, 3)
    False
    
    """
    return len(array.SHAPE) == dims