yt.data_objects.selection_data_containers.YTSphereBase

class yt.data_objects.selection_data_containers.YTSphereBase(center, radius, ds=None, field_parameters=None, data_source=None)[source]

A sphere of points defined by a center and a radius.

Parameters:

center : array_like

The center of the sphere.

radius : float

The radius of the sphere.

Examples

>>> import yt
>>> ds = yt.load("RedshiftOutput0005")
>>> c = [0.5,0.5,0.5]
>>> sphere = ds.sphere(c, (1., "kpc"))

Attributes

Methods