# Read frames using pip

**URL:** <https://ask.igwn.org/t/read-frames-using-pip/440>\
**Category:** Data Analysis\
**Created:** [November 10, 2022, 12:04am UTC](https://ask.igwn.org/t/read-frames-using-pip/440 "2022-11-10T00:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonah](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/jonah/32/10_2.png) [@jonah](https://ask.igwn.org/u/jonah)\
**Post date:** [November 10, 2022, 12:04am UTC](https://ask.igwn.org/t/read-frames-using-pip/440/1 "2022-11-10T00:04:02Z")

</div>

## Read frames using pip

In general, we recommend installing the IGWN software stack using the [IGWN Conda Distribution](https://computing.docs.ligo.org/conda/)

However, sometimes it is convenient to instead use `pypi` packages via `pip`. Many GW packages are available in pypi. As an example, one might want the ability to read in `gwf` frame files using python. Here is how to set this up using `pip`. This should work on computers running Unix or MacOS.

From the command line:

```auto
pip install lalsuite
pip install gwpy

```

That’s it! Then, you can download a data file:

```auto
wget https://www.gw-openscience.org/eventapi/html/GWTC-1-confident/GW150914/v3/H-H1_GWOSC_4KHZ_R1-1126259447-32.gwf

```

And, read in the strain data using python:

```auto
python
>>> from gwpy.timeseries import TimeSeries
>>> data = TimeSeries.read('H-H1_GWOSC_4KHZ_R1-1126259447-32.gwf', channel='H1:GWOSC-4KHZ_R1_STRAIN')

```

Good luck!
