Getting started with ObsPy

Hi, please have a look at the read_inventory() function, and the tutorial section on reading seismograms.

To read a miniSEED file:

from obspy import read
stream = read('/path/to/mseed')

You can load a Shake response file by reading a URL like this:
Note: you will have to replace R24FA with the name of your shake

from obspy import read_inventory
inv = read_inventory('https://fdsnws.raspberryshakedata.com/fdsnws/station/1/query?network=AM&station=R24FA&level=resp&format=xml')

To remove the response:

stream.remove_response(inventory=inv, output='VEL')
1 Like