Input and output (scipy.io
)¶
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)
MATLAB® files¶
IDL® files¶
Matrix Market files¶
Unformatted Fortran files¶
Wav sound files (scipy.io.wavfile
)¶
read (filename[, mmap]) |
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 |
Arff files (scipy.io.arff
)¶
Netcdf (scipy.io.netcdf
)¶
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. |