yt.data_objects.selection_data_containers.
YTEllipsoidBase
(center, A, B, C, e0, tilt, fields=None, ds=None, field_parameters=None, data_source=None)[source]¶By providing a center,*A*,*B*,*C*,*e0*,*tilt* we can define a ellipsoid of any proportion. Only cells whose centers are within the ellipsoid will be selected.
Parameters: | center : array_like
A : float
B : float
C : float
e0 : array_like (automatically normalized)
tilt : float
Examples : ——– : >>> import yt : >>> ds = yt.load(“RedshiftOutput0005”) : >>> c = [0.5,0.5,0.5] : >>> ell = ds.ellipsoid(c, 0.1, 0.1, 0.1, np.array([0.1, 0.1, 0.1]), 0.2) : |
---|
Attributes
Methods