Questions tagged [obspy]

ObsPy is a seismology toolbox for Python

ObsPy is a Python library that provides routines useful in seismology. Routines include parsers for common file formats and signal processing for data analysis and manipulation.

42 questions
0
votes
0 answers

Python subplot : sharex and set_xlim options seems incompatibles

I'm using obspy to display seismogram but also, I'm ploting directly with matplotlib because I want to customize my plots. Here is my code : st.trim(starttime=t0, endtime=(t0+float(dur)), nearest_sample=True) tr3 =…
BenjiBoy
  • 141
  • 7
0
votes
0 answers

How to plot the data spectrum raw?

I am new in python and I need to plot the data spectrum of a earthquake. I have been reading a lot but I quite don't understand how to do it. I have been using and editing this code from library ObsPy from obspy import UTCDateTime from…
Zen
  • 1
  • 1
0
votes
0 answers

plotting annotation in scatter chart

Plotting scatters I am using this code code But I need to appear the only date annotation ( not houres:minutes:seconds) as I show output
0
votes
1 answer

How can I save multiple figures individually from a for loop?

I have this for-loop which shoots out focal mechanisms as a figures and I want to be able to save each figure individually but can't figure out how. for strike,dip,rake in zip(out_df.strike,out_df.dip,out_df.rake): fig, ax =…
0
votes
1 answer

plotting stations on map

i have three stations named as A, B, C. I want to plot them on a map using matplotlib basemap. station A: latitude=17.8 longitude=74.48 station B: latitude=-25.02 longitude=25.60 station C: latitude=44.58 longitude=-123.30 As i am new to python and…
manas
  • 479
  • 2
  • 14
0
votes
2 answers

plotting noise spectrum of the data

i have a single column file(contain only one column) and a matrix file(contain 10 columns) of data which are noisy data and i want to plot the noise spectrum of both file using python. sample data for single column file is attached…
manas
  • 479
  • 2
  • 14
0
votes
1 answer

Problem plotting spectrogram colorbar in matplotlib

I want to make a subplot using the input data
manas
  • 479
  • 2
  • 14
0
votes
1 answer

how to set the order of zero-phase bandpass filter in obspy

I have a question about setting the order of zero-phase bandpass filter in obspy. I want to apply a 2nd order zero-phase filter, with corner frequencies of 0.05Hz and 0.1Hz. I think it's right to type 'st.filter('bandpass', freqmin=0.05,…
Young Oh Son
  • 21
  • 2
  • 5
0
votes
2 answers

obspy read wav file unknown format

I try to reproduce the given example obspy example in order to read a wav, unfortunately even with the same code as written in the example, I raise an error: the wav exemple file can be downloaded from here: download 3cssan.near.8.1.RNON.wav from…
Xavier
  • 61
  • 1
  • 2
0
votes
1 answer

Changing Basemap projection causes beach balls / data to disappear (obspy)

There's a very similar problem to my problem here, but the solution recommended on this page does not work in my case. For projection 'cyl', beach balls are plotted. Changing this projection to 'robin' (robinson) creates the projection without the…
pymat
  • 1,090
  • 1
  • 23
  • 45
-1
votes
2 answers

What dimensions should my Numpy Array be ? Obspy Traces

I currently have seismic data with 175x events with 3 traces for each event (traces are numpy arrays of seismic data). I have classification labels for whether the seismic data is an earthquake or not for each of those 175 samples. I'm looking to…
David
  • 9
  • 4
-2
votes
1 answer

Invert polarity of seismic signal using obspy

One of the signal sensors reads the in inverted polarity of a signal, meaning it flips it. I am trying to invert it in python using Obspy. Anyone can help me figure out how?
1 2
3