fileobj : filename or file-like
If filename, open file as ‘wb’, otherwise fileobj should be an
open file-like object, with a write method.
streamlines : iterable
iterable returning 3 element sequences with elements:
- points : ndarray shape (N,3)
where N is the number of points
- scalars : None or ndarray shape (N, M)
where M is the number of scalars per point
- properties : None or ndarray shape (P,)
where P is the number of properties
If streamlines has a len (for example, it is a list or a tuple),
then we can write the number of streamlines into the header. Otherwise
we write 0 for the number of streamlines (a valid trackvis header) and
write streamlines into the file until the iterable is exhausted
hdr_mapping : None, ndarray or mapping, optional
Information for filling header fields. Can be something
dict-like (implementing items) or a structured numpy array
endianness : {None, ‘<’, ‘>’}, optional
Endianness of file to be written. ‘<’ is little-endian, ‘>’ is
big-endian. None (the default) is to use the endianness of the
streamlines data.
|