Adding imports to make scripts self contained
-.. _astroquery.cdms:
+.. _astroquery.linelists.cdms:
-****************************************************************************
-Cologne Database for Molecular Spectroscopy (CDMS) Queries (astroquery.cdms)
-****************************************************************************
+******************************************************************************************
+Cologne Database for Molecular Spectroscopy (CDMS) Queries (``astroquery.linelists.cdms``)
+******************************************************************************************
Getting Started
===============
@@ -149,11 +149,12 @@ shown below:
>>> plt.scatter(temp,part)
>>> plt.xlabel('Temperature (K)')
>>> plt.ylabel('Partition Function Value')
- >>> plt.title('Parititon Fn vs Temp')
+ >>> plt.title('Partition Function vs Temperature')
.. plot::
:context: reset
+ import numpy as np
import matplotlib.pyplot as plt
from astroquery.linelists.cdms import CDMS
@@ -165,7 +166,7 @@ shown below:
plt.scatter(temp,part)
plt.xlabel('Temperature (K)')
plt.ylabel('Partition Function Value')
- plt.title('Parititon Fn vs Temp')
+ plt.title('Partition Function vs Temperature')
For non-linear molecules like H2CO, curve fitting methods can be used to
calculate production rates at different temperatures with the proportionality:
@@ -204,6 +205,7 @@ other temperatures using curve fitting models:
.. plot::
:context: reset
+ import numpy as np
import matplotlib.pyplot as plt
from astroquery.linelists.cdms import CDMS
from scipy.optimize import curve_fit
@@ -248,6 +250,7 @@ We can then compare linear interpolation to the fitted interpolation above:
.. plot::
:context: reset
+ import numpy as np
import matplotlib.pyplot as plt
from astroquery.linelists.cdms import CDMS
from scipy.optimize import curve_fit
