  Temperature measurements in particle simulations must account for the
reduction in degrees of freedom (DoF) due to constraints. However, when local
temperature is measured, e.g. from a set of particles in a subvolume or from
velocities projected onto one Cartesian direction, the result can appear to
unphysically violate equipartition if the local DoF are not correctly
calculated. Here we provide a self-consistent method for calculating the DoF
for an arbitrary local kinetic temperature measurement.
