yt.data_objects.selection_data_containers.YTPointBase

class yt.data_objects.selection_data_containers.YTPointBase(p, ds=None, field_parameters=None, data_source=None)[source]

A 0-dimensional object defined by a single point

Parameters:

p: array_like :

A points defined within the domain. If the domain is periodic its position will be corrected to lie inside the range [DLE,DRE) to ensure one and only one cell may match that point

ds: Dataset, optional :

An optional dataset to use rather than self.ds

field_parameters : dictionary

A dictionary of field parameters than can be accessed by derived fields.

data_source: optional :

Draw the selection from the provided data source rather than all data associated with the data_set

Examples

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

Attributes

Methods