Restoring z flow vals and vector representation of flow data