Atmospheric radiative transfer code originally written by Patricio Rojo (U. Chile Astronomy), modified for emission