Cloud identification and classification from high spectral resolution data in the far infrared and mid-infrared