Radiative-transfer code for planetary atmospheres