yt.geometry.selection_routines module

Geometry selection routines.

class yt.geometry.selection_routines.AlwaysSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanANDSelector

Bases: BooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanNEGSelector

Bases: BooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanNOTSelector

Bases: BooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanORSelector

Bases: BooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.BooleanXORSelector

Bases: BooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
sel1
sel2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.ChainedBooleanANDSelector

Bases: ChainedBooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.ChainedBooleanORSelector

Bases: ChainedBooleanSelector

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.ChainedBooleanSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.ComposeSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.CutRegionSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.CuttingPlaneSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
d
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
norm_vec
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.DataCollectionSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.DiskSelector

Bases: SelectorObject

center
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
height
max_level
min_level
norm_vec
overlap_cells
periodicity
radius
radius2
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.EllipsoidSelector

Bases: SelectorObject

center
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
mag
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
vec
class yt.geometry.selection_routines.GridSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.HaloParticlesSelector

Bases: SelectorObject

base_source
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
halo_id
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.IndexedOctreeSubsetSelector

Bases: SelectorObject

base_selector
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.OctreeSubsetSelector

Bases: SelectorObject

base_selector
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_id
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.OrthoRaySelector

Bases: SelectorObject

axis
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
px
px_ax
py
py_ax
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.PointSelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
p
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.RaySelector

Bases: SelectorObject

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_dt(gobj)
get_dt_mesh(mesh, nz, offset)
get_periodicity()
max_level
min_level
overlap_cells
p1
p2
periodicity
select_grids(left_edges, right_edges, levels)
select_points
vec
class yt.geometry.selection_routines.RegionSelector

Bases: SelectorObject

check_period
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
is_all_data
left_edge
loose_selection
max_level
min_level
overlap_cells
periodicity
right_edge
right_edge_shift
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.SelectorObject

Bases: object

count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.SliceSelector

Bases: SelectorObject

ax
axis
ay
coord
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
reduced_dimensionality
select_grids(left_edges, right_edges, levels)
select_points
class yt.geometry.selection_routines.SphereSelector

Bases: SelectorObject

center
check_box
count_oct_cells(octree, domain_id=-1)
count_octs(octree, domain_id=-1)
count_points
domain_center
domain_width
fill_mask(gobj)
fill_mask_regular_grid(gobj)
fill_mesh_cell_mask(mesh)
fill_mesh_mask(mesh)
get_periodicity()
max_level
min_level
overlap_cells
periodicity
radius
radius2
select_grids(left_edges, right_edges, levels)
select_points
set_bbox(center)
yt.geometry.selection_routines.always_selector

alias of AlwaysSelector

yt.geometry.selection_routines.bbox_intersects(selector, left_edges, dx)
yt.geometry.selection_routines.compose_selector

alias of ComposeSelector

yt.geometry.selection_routines.convert_mask_to_indices(mask, count, transpose=0)
yt.geometry.selection_routines.cut_region_selector

alias of CutRegionSelector

yt.geometry.selection_routines.cutting_selector

alias of CuttingPlaneSelector

yt.geometry.selection_routines.data_collection_selector

alias of DataCollectionSelector

yt.geometry.selection_routines.disk_selector

alias of DiskSelector

yt.geometry.selection_routines.ellipsoid_selector

alias of EllipsoidSelector

yt.geometry.selection_routines.fully_contains(selector, left_edges, dx)
yt.geometry.selection_routines.grid_selector

alias of GridSelector

yt.geometry.selection_routines.halo_particles_selector

alias of HaloParticlesSelector

yt.geometry.selection_routines.indexed_octree_subset_selector

alias of IndexedOctreeSubsetSelector

yt.geometry.selection_routines.intersection_selector

alias of ChainedBooleanANDSelector

yt.geometry.selection_routines.mask_fill(out, offset, mask, vals)
yt.geometry.selection_routines.octree_subset_selector

alias of OctreeSubsetSelector

yt.geometry.selection_routines.ortho_ray_selector

alias of OrthoRaySelector

yt.geometry.selection_routines.point_selector

alias of PointSelector

yt.geometry.selection_routines.points_in_cells(cx, cy, cz, dx, dy, dz, px, py, pz)
yt.geometry.selection_routines.ray_selector

alias of RaySelector

yt.geometry.selection_routines.region_selector

alias of RegionSelector

yt.geometry.selection_routines.slice_selector

alias of SliceSelector

yt.geometry.selection_routines.sphere_selector

alias of SphereSelector

yt.geometry.selection_routines.union_selector

alias of ChainedBooleanORSelector