def get_info_consistent(self, ndim):
        """
        Returns the main meta-data information adapted to the supplied
        image dimensionality.

        It will try to resolve inconsistencies and other conflicts,
        altering the information avilable int he most plausible way.

        Parameters
        ----------
        ndim : int
            image's dimensionality
        
        Returns
        -------
        spacing : tuple of floats
        offset : tuple of floats
        direction : ndarray
        """
        if ndim > len(self.spacing):
            spacing = self.spacing + (1.0, ) * (ndim - len(self.spacing))
        else:
            spacing = self.spacing[:ndim]

        if ndim > len(self.offset):
            offset = self.offset + (0.0, ) * (ndim - len(self.offset))
        else:
            offset = self.offset[:ndim]

        if ndim > self.direction.shape[0]:
            direction = np.identity(ndim)
            direction[:self.direction.shape[0], :self.direction.shape[0]] = self.direction
        else:
            direction = self.direction[:ndim, :ndim]
        
        return spacing, offset, direction
Returns the main meta-data information adapted to the supplied
        image dimensionality.

        It will try to resolve inconsistencies and other conflicts,
        altering the information avilable int he most plausible way.

        Parameters
        ----------
        ndim : int
            image's dimensionality
        
        Returns
        -------
        spacing : tuple of floats
        offset : tuple of floats
        direction : ndarray