yt.data_objects.selection_data_containers.YTRegionBase

class yt.data_objects.selection_data_containers.YTRegionBase(center, left_edge, right_edge, fields=None, ds=None, field_parameters=None, data_source=None)[source]

A 3D region of data with an arbitrary center.

Takes an array of three left_edge coordinates, three right_edge coordinates, and a center that can be anywhere in the domain. If the selected region extends past the edges of the domain, no data will be found there, though the object’s left_edge or right_edge are not modified.

Parameters:

center : array_like

The center of the region

left_edge : array_like

The left edge of the region

right_edge : array_like

The right edge of the region

Attributes

Methods