# Usage Questions

**URL:** https://discourse.obspy.org/c/usage-questions/6.md?page=1

[Latest](https://discourse.obspy.org/latest.md) · [Categories](https://discourse.obspy.org/categories.md) · [Tags](https://discourse.obspy.org/tags.md)

**Page:** 2

---

## [Impossible Steim2](https://discourse.obspy.org/t/impossible-steim2/2116)

<div class="topic-metadata">

**Author:** [@nchazarra](https://discourse.obspy.org/u/nchazarra)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 10:42am UTC](https://discourse.obspy.org/t/impossible-steim2/2116 "2024-12-11T10:42:26Z")

</div>

Hi to everyone and thanks in advance, I have several mseed files that gives me these kind of errors: 32\_MAD04\_00\_EHZ\_D: Impossible Steim2 dnib=00 for nibble=10 32\_MAD04\_00\_EHZ\_D: Impossible Steim2 dnib=00 for nibble=1…

---

## [Instrument response correction](https://discourse.obspy.org/t/instrument-response-correction/2113)

<div class="topic-metadata">

**Author:** [@Nas94](https://discourse.obspy.org/u/Nas94)\
**Replies:** 2\
**Last updated:** [December 5, 2024, 3:47pm UTC](https://discourse.obspy.org/t/instrument-response-correction/2113 "2024-12-05T15:47:27Z")

</div>

Hi, I would appreciate it if someone could help me out. I used the following lines to remove the instrument response, but I was wondering if my procedure is correct? I need to remove the instrument response of this reco…

---

## [Instrument response](https://discourse.obspy.org/t/instrument-response/2112)

<div class="topic-metadata">

**Author:** [@Nas94](https://discourse.obspy.org/u/Nas94)\
**Replies:** 0\
**Last updated:** [November 25, 2024, 2:40pm UTC](https://discourse.obspy.org/t/instrument-response/2112 "2024-11-25T14:40:24Z")

</div>

Hi, I would appreciate it if someone could help me out. I used the following lines to remove the instrument response, but I was wondering if my procedure is correct? I need to remove the instrument response of this reco…

---

## [WHY there is no csv module in my obspy packages?](https://discourse.obspy.org/t/why-there-is-no-csv-module-in-my-obspy-packages/2103)

<div class="topic-metadata">

**Author:** [@kayyy](https://discourse.obspy.org/u/kayyy)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 9:50am UTC](https://discourse.obspy.org/t/why-there-is-no-csv-module-in-my-obspy-packages/2103 "2024-11-22T09:50:07Z")

</div>

I want to read a csv file by using obspy.read\_events(‘./query.csv’), but it found that there is no folder named ‘csv’ in obspy/io folder, my obspy version is 1.4.1, why?

---

## [Response unit converting](https://discourse.obspy.org/t/response-unit-converting/2104)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Gordienko](https://discourse.obspy.org/u/Dmitriy_Gordienko)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 2:05pm UTC](https://discourse.obspy.org/t/response-unit-converting/2104 "2024-11-21T14:05:37Z")

</div>

Hello everyone! I use the following code to get the data: inventory = client.get\_stations(network=net, station=sta, location=loc, channel=chan, starttime=starttime, endtime=endtime, level='response') network = inventor…

---

## [Addition and export of focal mechanism information to a catalog event](https://discourse.obspy.org/t/addition-and-export-of-focal-mechanism-information-to-a-catalog-event/1332)

<div class="topic-metadata">

**Author:** [@goe38](https://discourse.obspy.org/u/goe38)\
**Replies:** 4\
**Last updated:** [November 15, 2024, 2:03pm UTC](https://discourse.obspy.org/t/addition-and-export-of-focal-mechanism-information-to-a-catalog-event/1332 "2024-11-15T14:03:44Z")

</div>

Hi Obspy users, I am trying to add focal mechanism information into an event catalog, then export as quakeML. I have a test catalog (merge2) that includes an event for which a mechanism is available in cat\_focmec. Bef…

---

## [Decimation and writing mseed files - integer and float numbers](https://discourse.obspy.org/t/decimation-and-writing-mseed-files-integer-and-float-numbers/1973)

<div class="topic-metadata">

**Author:** [@maryani](https://discourse.obspy.org/u/maryani)\
**Replies:** 6\
**Last updated:** [November 14, 2024, 2:28pm UTC](https://discourse.obspy.org/t/decimation-and-writing-mseed-files-integer-and-float-numbers/1973 "2024-11-14T14:28:24Z")

</div>

Hi, I have an issue in decimating mseed while converting them from .wav file. In short, after running the decimation function “stream.decimate” with the “no\_filter=False”, the numbers from integers are transformed in f…

---

## [FDSN: get\_waveforms vs get\_waveforms\_bulk](https://discourse.obspy.org/t/fdsn-get-waveforms-vs-get-waveforms-bulk/2067)

<div class="topic-metadata">

**Author:** [@Cthuulhaa](https://discourse.obspy.org/u/Cthuulhaa)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 12:42pm UTC](https://discourse.obspy.org/t/fdsn-get-waveforms-vs-get-waveforms-bulk/2067 "2024-11-04T12:42:24Z")

</div>

I have a set of about 150 seismic stations from different FDSN clients from which I want to retrieve 60 s long waveforms. Most of them have 3 channels. I am able to retrieve them by means of the client.get\_waveforms fun…

---

## [.RAW format to npy](https://discourse.obspy.org/t/raw-format-to-npy/2022)

<div class="topic-metadata">

**Author:** [@HYUL](https://discourse.obspy.org/u/HYUL)\
**Replies:** 5\
**Last updated:** [October 28, 2024, 9:52am UTC](https://discourse.obspy.org/t/raw-format-to-npy/2022 "2024-10-28T09:52:20Z")

</div>

Hello, I recently received seismic data that I requested, and the data is in RAW format. Since this is my first time handling RAW data, I’m unsure how to proceed. Is there anyone who could provide me with some guidelines…

---

## [Datalogger keys](https://discourse.obspy.org/t/datalogger-keys/2021)

<div class="topic-metadata">

**Author:** [@Amy137](https://discourse.obspy.org/u/Amy137)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 2:10pm UTC](https://discourse.obspy.org/t/datalogger-keys/2021 "2024-10-21T14:10:48Z")

</div>

Hello everyone, I’m creating a station xml from scratch for the first time using this tutorial. They have a list of datalogger keys for getting the response but I don’t know what some of them are. From the tutorial: da…

---

## [Response and FIR filter removal](https://discourse.obspy.org/t/response-and-fir-filter-removal/2003)

<div class="topic-metadata">

**Author:** [@cpaitor](https://discourse.obspy.org/u/cpaitor)\
**Replies:** 4\
**Last updated:** [September 19, 2024, 8:08pm UTC](https://discourse.obspy.org/t/response-and-fir-filter-removal/2003 "2024-09-19T20:08:09Z")

</div>

Hi Historically we have not included FIR filter coefficients and decimation stages in our metadata. Discovering however that most(?) other networks do we have started a process towards doing so. However, it seems that t…

---

## [Converting segy to sac format](https://discourse.obspy.org/t/converting-segy-to-sac-format/1988)

<div class="topic-metadata">

**Author:** [@kozan88](https://discourse.obspy.org/u/kozan88)\
**Replies:** 6\
**Last updated:** [September 2, 2024, 6:43am UTC](https://discourse.obspy.org/t/converting-segy-to-sac-format/1988 "2024-09-02T06:43:45Z")

</div>

Hi, I have borehole seismic data, with seg-y format. I do not know anything about the data structure and header, I just retrieved it from IRIS. I want to convert it to SAC, but before, I tried to read it using: impor…

---

## [I am in Trouble with Seismic Data Analysis Using ObsPy - Need Help!](https://discourse.obspy.org/t/i-am-in-trouble-with-seismic-data-analysis-using-obspy-need-help/1995)

<div class="topic-metadata">

**Author:** [@steevesmith](https://discourse.obspy.org/u/steevesmith)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 7:27am UTC](https://discourse.obspy.org/t/i-am-in-trouble-with-seismic-data-analysis-using-obspy-need-help/1995 "2024-08-29T07:27:48Z")

</div>

Hi everyone, I am relatively new to using ObsPy and I have run into a problem that I can’t seem to figure out on my own. I am trying to analyze some seismic data from a local network.., specifically focusing on filterin…

---

## [Getting a response file to use with the CSS3.0 format](https://discourse.obspy.org/t/getting-a-response-file-to-use-with-the-css3-0-format/1980)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Gordienko](https://discourse.obspy.org/u/Dmitriy_Gordienko)\
**Replies:** 4\
**Last updated:** [July 16, 2024, 11:36am UTC](https://discourse.obspy.org/t/getting-a-response-file-to-use-with-the-css3-0-format/1980 "2024-07-16T11:36:08Z")

</div>

Hello dear friends! I started using obspy and I need to receive data from Iris and process it. Processing is performed using the Antelope package in css3.0 format. I receive the data normally and convert it to css3.0 for…

---

## [Beamforming routine - 180 degree uncertainty?](https://discourse.obspy.org/t/beamforming-routine-180-degree-uncertainty/1976)

<div class="topic-metadata">

**Author:** [@benjaminfernando](https://discourse.obspy.org/u/benjaminfernando)\
**Replies:** 0\
**Last updated:** [July 11, 2024, 6:19pm UTC](https://discourse.obspy.org/t/beamforming-routine-180-degree-uncertainty/1976 "2024-07-11T18:19:42Z")

</div>

Hi, I am doing some beam forming using a source in the atmosphere. The routines all work fine, but the plots that I get out all have a 180 degree difference between the backazimuth of maximum energy incidence as compare…

---

## [Fail of ppsd() cause by sampling rate](https://discourse.obspy.org/t/fail-of-ppsd-cause-by-sampling-rate/1974)

<div class="topic-metadata">

**Author:** [@JunliuSuwen](https://discourse.obspy.org/u/JunliuSuwen)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 8:10am UTC](https://discourse.obspy.org/t/fail-of-ppsd-cause-by-sampling-rate/1974 "2024-07-10T08:10:15Z")

</div>

Hi all, When I use ppsd() (PPSD) for calculating the probabilistic power spectral densities of seismic record, ObsPy raise a warning, /home/junliu/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/signal/spectral…

---

## [Remove instrument response and export file](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967)

<div class="topic-metadata">

**Author:** [@Nas94](https://discourse.obspy.org/u/Nas94)\
**Replies:** 3\
**Last updated:** [July 4, 2024, 12:38pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967 "2024-07-04T12:38:45Z")

</div>

Hello, I was wondering if there is a way to export or save the corrected waveform as a txt file. I need to use a txt file as an input file for my own Matlab code. The txt file should be included :the first column for ti…

---

## [FK beam forming: attribute error](https://discourse.obspy.org/t/fk-beam-forming-attribute-error/1962)

<div class="topic-metadata">

**Author:** [@benjaminfernando](https://discourse.obspy.org/u/benjaminfernando)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 3:10pm UTC](https://discourse.obspy.org/t/fk-beam-forming-attribute-error/1962 "2024-06-20T15:10:01Z")

</div>

Hi! I’m getting an error I don’t really understand when following the “Beamforming: FK Analysis” guide. MWE (copied parameters into a dictionary to make it easier to read): lat\_dict = {1: 39.49957, 2: 39.49991, 3: 39.…

---

## [How to Plotting Waveforms Relative to Earthquake Origin Time?](https://discourse.obspy.org/t/how-to-plotting-waveforms-relative-to-earthquake-origin-time/1964)

<div class="topic-metadata">

**Author:** [@moly](https://discourse.obspy.org/u/moly)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 3:37am UTC](https://discourse.obspy.org/t/how-to-plotting-waveforms-relative-to-earthquake-origin-time/1964 "2024-06-17T03:37:30Z")

</div>

Hello everyone, I am trying to plot waveforms from different stations with respect to their epicentral distance. Currently, my plot starts at the waveform’s start time, but I would like the waveforms to start at the ear…

---

## [Separe mseed data to SDS structure](https://discourse.obspy.org/t/separe-mseed-data-to-sds-structure/1957)

<div class="topic-metadata">

**Author:** [@sergio59](https://discourse.obspy.org/u/sergio59)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 4:14pm UTC](https://discourse.obspy.org/t/separe-mseed-data-to-sds-structure/1957 "2024-06-09T16:14:14Z")

</div>

Hello again, I would to separe mseed waves block in SDS structure. I have a function to to that, but I encountered some errors. This function read data from temporary file in a variable, and, with support of an other …

---

## [Obspy-scan(data availability & station-uptime)](https://discourse.obspy.org/t/obspy-scan-data-availability-station-uptime/1951)

<div class="topic-metadata">

**Author:** [@Leonard](https://discourse.obspy.org/u/Leonard)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 7:11pm UTC](https://discourse.obspy.org/t/obspy-scan-data-availability-station-uptime/1951 "2024-06-06T19:11:18Z")

</div>

Hi, I am a newbie here. Started using obspy-scan for data-availability and all works well. Q1: How to specify start & end date/time when scanning a station waveform? Q2: Is it ideal to use obspy-scan to check station …

---

## [Error while convert data from suds to mseed](https://discourse.obspy.org/t/error-while-convert-data-from-suds-to-mseed/1945)

<div class="topic-metadata">

**Author:** [@sergio59](https://discourse.obspy.org/u/sergio59)\
**Replies:** 10\
**Last updated:** [June 5, 2024, 1:17pm UTC](https://discourse.obspy.org/t/error-while-convert-data-from-suds-to-mseed/1945 "2024-06-05T13:17:59Z")

</div>

hello everyone. I have old seismograms stored in suds format. I can read data with python and then, after set the first date and other parameters like New\_tr = obspy.Trace(data = np.array(values), header = { “network”…

---

## [About add traces to mseed format](https://discourse.obspy.org/t/about-add-traces-to-mseed-format/1946)

<div class="topic-metadata">

**Author:** [@sergio59](https://discourse.obspy.org/u/sergio59)\
**Replies:** 2\
**Last updated:** [May 29, 2024, 5:03pm UTC](https://discourse.obspy.org/t/about-add-traces-to-mseed-format/1946 "2024-05-29T17:03:46Z")

</div>

Is there a way to check if a package already exists in the file (example with time if exists)? Regards, Sergio

---

## [Multiple stages for poles and zeros block](https://discourse.obspy.org/t/multiple-stages-for-poles-and-zeros-block/1941)

<div class="topic-metadata">

**Author:** [@sfpoveda](https://discourse.obspy.org/u/sfpoveda)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 7:27pm UTC](https://discourse.obspy.org/t/multiple-stages-for-poles-and-zeros-block/1941 "2024-05-23T19:27:09Z")

</div>

Hi, I have a DATALESS file with two stages for the poles and zeros, when I try to plot the repsonse curve using Obspy plotting method it just takes into account the first PAZ stage ignoring the second one, so plotting a…

---

## [Help reading wfdisc/css data files](https://discourse.obspy.org/t/help-reading-wfdisc-css-data-files/1928)

<div class="topic-metadata">

**Author:** [@Jonathan\_Weiss\_PTWC](https://discourse.obspy.org/u/Jonathan_Weiss_PTWC)\
**Replies:** 2\
**Last updated:** [May 10, 2024, 2:44pm UTC](https://discourse.obspy.org/t/help-reading-wfdisc-css-data-files/1928 "2024-05-10T14:44:30Z")

</div>

Hello ObsPy Forum, I’m trying to load/read wfdisc/css format data so I can convert them to an easier to manipulate format (e.g., sac) for subsequent Earthworm ingestion/processing. I’ve tried following the wfdisc table …

---

## [FDSN mass\_downloader time range behavior](https://discourse.obspy.org/t/fdsn-mass-downloader-time-range-behavior/1927)

<div class="topic-metadata">

**Author:** [@lcataldi](https://discourse.obspy.org/u/lcataldi)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 12:41pm UTC](https://discourse.obspy.org/t/fdsn-mass-downloader-time-range-behavior/1927 "2024-05-08T12:41:14Z")

</div>

Hi everyone, I noticed an ‘unexpected’ (at least with respect to what I understood from the documentation) behavior of the FDSN mass downloader feature in terms of selected starttime and enditme. If I specify some UTC …

---

## [Unable to download waveforms using massdownloader or get\_waveforms](https://discourse.obspy.org/t/unable-to-download-waveforms-using-massdownloader-or-get-waveforms/1939)

<div class="topic-metadata">

**Author:** [@turtlobenzene](https://discourse.obspy.org/u/turtlobenzene)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 12:38pm UTC](https://discourse.obspy.org/t/unable-to-download-waveforms-using-massdownloader-or-get-waveforms/1939 "2024-05-08T12:38:08Z")

</div>

Hello, I’m trying to download the mseed data from the 9N network over the entire time period: FDSN: 9N (2020-2020): CO2 containment and monitoring techniques at Crystal Geyser Neither massdownloader nor get\_waveforms se…

---

## [2024 Noto Japan Earthquake Data Download Issue](https://discourse.obspy.org/t/2024-noto-japan-earthquake-data-download-issue/1923)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.obspy.org/u/leo)\
**Replies:** 0\
**Last updated:** [April 21, 2024, 7:57am UTC](https://discourse.obspy.org/t/2024-noto-japan-earthquake-data-download-issue/1923 "2024-04-21T07:57:43Z")

</div>

\# Import third-party libraries from pathlib import Path from obspy.clients.fdsn import Client from obspy import read\_events, UTCDateTime from obspy.clients.fdsn.mass\_downloader import CircularDomain, Restrictions, MassDo…

---

## [Plot record section offset in meters instead of km](https://discourse.obspy.org/t/plot-record-section-offset-in-meters-instead-of-km/1909)

<div class="topic-metadata">

**Author:** [@79seismo](https://discourse.obspy.org/u/79seismo)\
**Replies:** 2\
**Last updated:** [March 23, 2024, 2:21am UTC](https://discourse.obspy.org/t/plot-record-section-offset-in-meters-instead-of-km/1909 "2024-03-23T02:21:50Z")

</div>

Hi All, Is there a way to plot offset in meters instead of km when using st.plot(type="section") Thank you! Januka

---

## [Converting .wav into a Mini-SEED format file](https://discourse.obspy.org/t/converting-wav-into-a-mini-seed-format-file/1875)

<div class="topic-metadata">

**Author:** [@maryani](https://discourse.obspy.org/u/maryani)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 2:48pm UTC](https://discourse.obspy.org/t/converting-wav-into-a-mini-seed-format-file/1875 "2024-03-22T14:48:01Z")

</div>

Hi there, I am currently working on audio files (.wav) with recordings of earthquakes. I am new in ObsPy and I would like to know if it is possible to convert a .wav into a Mini-SEED format file. With the obspy.io.wav …

[Previous page](https://discourse.obspy.org/c/usage-questions/6.md)

[Next page](https://discourse.obspy.org/c/usage-questions/6.md?page=2)
