class itasca.util.FishBinaryReader

Read structured FISH binary files. Call the constructor with the structured FISH filename and call read() to read individual values. This class also supports iteration. Return values are converted to python types. Supports int, float, string, bool, v2 and v3.

>>> fish_file = FishBinaryReader('')
>>> for val in fish_file:
...    print val
"this is a string"
asarray() → numpy array.

Return fish file contents as a numpy array. Types must be homogeneous.

aslist() → [any].

Return fish file contents as a Python list.

next() → any.

Get the next item from the FISH binary file.

read() → any.

Read and return a value (converted to a Python type) from the .fish binary file.