The attached files explains  rotation spectara and rotation energy levels for diatomic molecules

Image result for rotational energy levels