SciPy has many modules, classes, and functions available to read data from and write data to a variety of file formats.
See also
numpy-reference.routines.io (in Numpy)
loadmat(file_name[, mdict, appendmat]) | Load MATLAB file |
savemat(file_name, mdict[, appendmat, ...]) | Save a dictionary of names and arrays into a MATLAB-style .mat file. |
mminfo(source) | Queries the contents of the Matrix Market file ‘filename’ to |
mmread(source) | Reads the contents of a Matrix Market file ‘filename’ into a matrix. |
mmwrite(target, a[, comment, field, precision]) | Writes the sparse or dense matrix A to a Matrix Market formatted file. |
save_as_module([file_name, data]) | Save the dictionary “data” into a module and shelf named save. |
read(file) | Return the sample rate (in samples/sec) and data from a WAV file |
write(filename, rate, data) | Write a numpy array as a WAV file |
loadarff(f) | Read an arff file. |
netcdf_file(filename[, mode, mmap, version]) | A file object for NetCDF data. |
netcdf_variable(data, typecode, size, shape, ...) | A data object for the netcdf module. |