particles.ClusterParticles.make_radial_cut#
- ClusterParticles.make_radial_cut(r_max, center=None, ptypes=None)[source]#
Make a radial cut on particles. All particles outside a certain radius will be removed.
- Parameters:
r_max (
float
) – The maximum radius of the particles in kpc.center (
array-like
, optional) – The center coordinate of the system of particles to define the radius from, in units of kpc. Default: [0.0, 0.0, 0.0]ptypes (
list
ofstrings
, optional) – The particle types to perform the radial cut on. If not set, all will be exported.