sbonaime / seedlink_plotter

Seedlink_plotter A python script to plot real time seismic data from a seedlink server
GNU Lesser General Public License v3.0
36 stars 18 forks source link

UserWarning in Multichannel #11

Closed sbonaime closed 10 years ago

sbonaime commented 10 years ago

I have the following warning just after starting seedlink plotter

seedlink-plotter -s "G_IVI:00BHZ BHN, G_SSB:00BHZ"  --seedlink_server "rtserver.ipgp.fr:18000" --with_decoration -b 0.2
SLClient comes with ABSOLUTELY NO WARRANTY
/usr/local/lib/python2.7/site-packages/matplotlib/axes.py:2760: UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=0.0, top=0.0
  + 'bottom=%s, top=%s') % (bottom, top))

It appears once after the first plot.

sbonaime commented 10 years ago

The warning occurs the first time I plot the received data

G.IVI.00.BHN | 2014-01-13T13:12:33.446436Z - 2014-01-13T13:12:34.446436Z | 1.0 Hz, 2 samples
G.IVI.00.BHZ | 2014-01-13T13:12:33.446436Z - 2014-01-13T13:12:34.446436Z | 1.0 Hz, 2 samples
G.SSB.00.BHZ | 2014-01-13T13:12:33.450000Z - 2014-01-13T13:18:33.400000Z | 20.0 Hz, 7200 samples (masked)

There should be a receiving problem or maybe a lock problem because the two IVI streams are BH channels with a 20Hz sample rate. Before the second plotting, those channels are correct:

G.IVI.00.BHN | 2014-01-13T13:12:36.899998Z - 2014-01-13T13:18:36.849998Z | 20.0 Hz, 7200 samples (masked)
G.IVI.00.BHZ | 2014-01-13T13:12:36.899998Z - 2014-01-13T13:18:36.849998Z | 20.0 Hz, 7200 samples (masked)
G.SSB.00.BHZ | 2014-01-13T13:12:36.900000Z - 2014-01-13T13:18:36.850000Z | 20.0 Hz, 7200 samples (masked)

If we wait few seconds before the first plot, I don't have this problem

sbonaime commented 10 years ago

this issue is linked to https://github.com/obspy/obspy/issues/708