Inversion and space-time-averaging algorithms for ScaRaB (Scanner for the Earth Radiation Budget). Comparison with ERBE