On-board Integrated submm spectrometer for atmosphere monitoring and radio astronomy