The maximum entropy probability distribution for a system of fixed expected total energy is the Boltzmann distribution. This means that Boltzmann distribution is appropriate for systems where we know the total energy but little else. The distribution is given by $p(E) = Z^{-1} e^{-E/kT}$, where $Z$ is the normalization constant (making sure probabilities add to 1), $k$ is Boltzmann's constant and $T$ is another parameter that we name temperature.
When you talk about localized temperature at a specific location and time then at that time we assume that we have a fixed and well defined expected energy distribution. This assumption allows you to conclude that Boltzmann distribution is valid at every point of the system of interest and therefore you can define a location dependent temperature (ie a particle at location $\vec{r}$ has the probability of having energy $E$ of $p(E, \vec{r}) = Z(\vec{r}) e^{-E/kT(\vec{r})}$).
If you have detailed information about the particles in your system then temperature may still be a useful concept (it can be extended somewhat by adding chemical potentials), but some information is in general likely to be lost through its use.