Output file creation works with distarray not ndarray.