Does anyone know the calculation for the current base temperature of a system body?
I suspect it's a simple matter of star brightness and current distance from star.
Prior to eccentric orbits, the base temperature of a body never varied, so I could just use the value of FCT_SystemBody.BaseTemperature.
But that value seems not to vary over time.
I'm good for this question; I had to derive it to match Aurora's model to get my body planner to work the way I wanted it to. It largely follows Pedroig's link and can be simplified even further for the values we have access to:
BaseTemp (K) = SysConst * L^0.25 / AU^0.5
L is the star's brightness measured in solar units; AU is the body's current distance in AU (works with eccentric orbits as a result). The system constant I didn't bother to break down further; it's value appears to be exactly 255 for all systems other than real Sol when plotted. Real Sol uses something between 255.13 and 255.3406815 (I've been too lazy to nail it down precisely) to determine base temperature. Rotation rate, atmosphere, and albedo are all modeled during the surface temperature calculation while the Stefan-Boltzmann constant is baked into the ~255 system constant.
Because the terraforming tab still uses 255 for its math even in Sol, bodies in Sol are slightly warmer than their listed terraformed values. This is most evident with the maximum periapsis temperature when they're located at periapsis. Venus was the first that I caught doing this as its temperature is the highest and least susceptible to hiding the error in rounding; see attached screenshot.