yt_to_mlab_vector¶
- pysac.analysis.tube3D.process_utils.yt_to_mlab_vector(ds, xkey, ykey, zkey, cube_slice=(slice(None, None, None), slice(None, None, None), slice(None, None, None)), SI_scale=1, field_name='')[source] [edit on github]¶
Convert three yt keys to a mlab vector field
Parameters: ds : yt dataset
The dataset to get the data from.
xkey, ykey, zkey : string
yt field names for the three vector components.
cube_slice : numpy slice
The array slice to crop the yt fields with.
SI_scale : float
Conversion factor to SI units (multipled by the field).
field_name : string
The mlab name for the field.
Returns: field : mayavi vector field