Temperature calculation based on spatial modeling