To instead adjust the setpoint of a temperature controller  that is in kelvin,   first use TandBtoRto find R as before, then use RandBtoT (with B set equal to zero)  to find the temperature at zero-field that would correspond to that same R value. 
Finally, for post-processing of large data sets consisting of arrays of R and B values as a function of time, the function calculate_T_from_data will return a corresponding array of T values.