SciPy

This is documentation for an old release of SciPy (version 1.2.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.io.FortranFile.read_ints

FortranFile.read_ints(dtype='i4')[source]

Reads a record of a given type from the file, defaulting to an integer type (INTEGER*4 in Fortran).

Parameters:
dtype : dtype, optional

Data type specifying the size and endiness of the data.

Returns:
data : ndarray

A one-dimensional array object.

Previous topic

scipy.io.FortranFile.close

Next topic

scipy.io.FortranFile.read_reals