def readModelUBC(mesh, fileName):

        if type(fileName) is list:
            out = {}
            for f in fileName:
                out[f] = mesh.readModelUBC(f)
            return out

        assert hasattr(mesh, '_simpegReorderUBC'), 'The file must have been loaded from a UBC format.'
        assert mesh.dim == 3

        modList = []
        modArr = np.loadtxt(fileName)
        if len(modArr.shape) == 1:
            modList.append(modArr[mesh._simpegReorderUBC])
        else:
            modList.append(modArr[mesh._simpegReorderUBC,:])
        return modList
Read UBC OcTree model and get vector
dataset/ETHPy150Open simpeg/simpeg/SimPEG/Mesh/MeshIO.py/TreeMeshIO.readModelUBC