python code to derive temperatures using Ammonia spectral lines