yt.analysis_modules.halo_analysis.halo_callbacks.sphere_field_max_recenter

yt.analysis_modules.halo_analysis.halo_callbacks.sphere_field_max_recenter(halo, field)[source]

Recenter the halo sphere on the location of the maximum of the given field.

Parameters:

halo : Halo object

The Halo object to be provided by the HaloCatalog.

field : string

Field to be used for recentering.