Process 3D file per height slice to prevent memory problems on large data sets