3.6. 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)
3.6.1. MATLAB® files¶
3.6.3. Matrix Market files¶
3.6.4. Unformatted Fortran files¶
FortranFile (filename[, mode, header_dtype]) |
A file object for unformatted sequential files from Fortran code. |
3.6.5. 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. |
3.6.6. Harwell-Boeing files¶
3.6.7. 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 |
WavFileWarning |
3.6.8. Arff files (scipy.io.arff
)¶
loadarff (f) |
Read an arff file. |
MetaData (rel, attr) |
Small container to keep useful informations on a ARFF dataset. |
ArffError |
|
ParseArffError |