def get_dim_tuple(element):
    """Given an element, extract the Terastitcher z, y, x dimensions

    :param element: an etree DOM element
    :returns: a tuple of the Z, Y and X extracted from the V, H and D attributes
    of the element
    """
    return tuple([float(element.attrib[_]) for _ in "DVH"])