Tutorial Step 0: Software Setup
This tutorial will provide a walk-through only of how to install and use Python modules to work with LIGO data. For other languages, see the example software for HDF5 files and the GWOSC Software Examples page.
The GWOSC tutorials depend mainly on Python along with a few popular modules, including matplotlib, numpy and h5py. If your computer already has these installed, you should be ready for the GWOSC tutorials. If not, here are some suggestions.
Option 1: Run tutorials in your browser
Option 2: Use a Docker container
Option 3: Install Pre-compiled Python Enviornment
Pre-compiled enviornments are available through:
Option 4: Install Packages Individually
Verify Software InstallationOnce you have installed the software, open the python interpreter, and type the following lines. If everything works, this should plot a parabola.
import numpy as np import matplotlib.pyplot as plt import h5py vector=np.arange(20) plt.plot(vector**2) plt.show()
What's next?Once you have all the needed software installed, it is time to learn how it works. If you are already have some experience with Python, you can go to the next step of this tutorial. However, if you are new to Python, you may want to look at some tutorials on numpy and matplotlib. After you are comfortable with Python's basic features, you can go to the next step of this tutorial.