FishBinaryReader
- 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('my_fish_data.fish') >>> for val in fish_file: ... print val 42 "this is a string" [1.0,2.0,3.0]
- 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.
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Dec 19, 2024 |