Read and write segy files.