def __init__(self, Dataset, order=["z", "y", "x"]):
        # set up array attributes
        self.Dataset = Dataset
        self.lenX = int(Dataset.shape[2])
        self.lenY = int(Dataset.shape[1])
        self.lenZ = int(Dataset.shape[0])
        a = [self.lenZ, self.lenY, self.lenX]
        self.order = order
        self.shape = tuple([a[order.index(k)] for k in ["z", "y", "x"]])
        self.ndim = 3
        self.dtype = Dataset.dtype
Create and set up object
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py/glue_3d.__init__