Empirical correction for resolution- and temperature-dependent errors caused by factors such as thermal diffuse scattering