Comments (7)
If I change
neries_emsc = Client("EMSC")
to
neries_emsc = Client("IRIS")
I don't have the error. But I don't know if IRIS catalogue should be used instead of EMSC...
from seedlink_plotter.
from seedlink_plotter.
The problem is the minmagnitude argument for EMSC
from seedlink_plotter.
I propose to switch to IRIS instead of EMSC
from seedlink_plotter.
from seedlink_plotter.
I have this error
FDSNException: Bad request. If you think your request was valid please contact the developers.
Detailed response of server:Error 400: unknown : Cannot send body with 204
Request:
/fdsnws/event/1/query?minmagnitude=7.0&endtime=2018-03-27T15%3A52%3A56.950000&starttime=2018-03-27T03%3A58%3A00.000000
Request Submitted:
2018-03-27T15:53:14.777101Z
Service version:
fdsnws-event: v 1.1.0
But the script still continues.. right? Just shows that message on stderr
? Because the get_events()
call seems to be properly encased in a try/except.
from seedlink_plotter.
Could it be this was just a temporary problem?
I just did a quick comparison of what catalog data is returned for today (i.e. 12 hours backwards from realtime) with M>2 for each of the FDSNWS end points and it looks like in general EMSC catalog might be the best option for near-realtime data. ISC might be an obvious choice but it is not able to give data for near-realtime (newest event 4 hours behind realtime), seems like.
from obspy import UTCDateTime
from obspy.clients.fdsn import Client
from obspy.clients.fdsn.header import URL_MAPPINGS
t = UTCDateTime(2018, 4, 10)
for key in URL_MAPPINGS.keys():
client = Client(key)
try:
cat = client.get_events(starttime=t, minmagnitude=2)
except:
continue
cat.events = sorted(cat.events, key=lambda e: e.origins[0].time)
print key
print cat
print ''
cat.plot(outfile='/tmp/events/%s.png' % key, show=False)
EMSC
75 Event(s) in Catalog:
2018-04-10T00:10:45.000000Z | -40.770, -72.920 | 3.2 ml | manual
2018-04-10T00:13:01.200000Z | +35.510, +22.370 | 2.2 ml | manual
...
2018-04-10T11:50:46.000000Z | +15.890, -98.050 | 4.1 m | manual
2018-04-10T12:10:44.700000Z | +43.440, +18.790 | 3.0 ml | automatic
ISC
34 Event(s) in Catalog:
2018-04-10T00:13:49.250000Z | +43.059, +13.032 | 2.0 ML
2018-04-10T00:14:59.970000Z | +45.472, +26.258 | 3.1 ml
...
2018-04-10T08:36:41.480000Z | +43.067, +13.048 | 2.0 ML
2018-04-10T08:52:59.000000Z | +36.384, -120.966 | 2.5 M
USGS
21 Event(s) in Catalog:
2018-04-10T00:05:26.250000Z | +63.462, -150.983 | 2.4 ml | automatic
2018-04-10T00:23:04.020000Z | +33.493, -116.800 | 2.27 ml | automatic
...
2018-04-10T10:19:34.030000Z | -30.986, -71.557 | 6.2 mww | manual
2018-04-10T11:41:06.990000Z | +41.354, -100.127 | 3.7 mb_lg | manual
IRIS
21 Event(s) in Catalog:
2018-04-10T00:05:26.508000Z | +63.477, -150.906 | 2.4 Ml
2018-04-10T00:23:04.020000Z | +33.493, -116.800 | 2.27 Ml
...
2018-04-10T10:19:34.030000Z | -30.986, -71.557 | 6.2 Mww
2018-04-10T11:41:06.990000Z | +41.354, -100.127 | 3.7 mb_Lg
Pics for best candidates:
from seedlink_plotter.
Related Issues (20)
- pip install, matplotlib and Macos
- UserWarning in Multichannel HOT 2
- singlechannel plot: ticklabels inside of axes? HOT 3
- Tcl-Tk and Yosemite on Macos HOT 1
- Drum plots with backtrace_time and x_scale not well choosen
- need to clear processing list of traces after trim() in plot_graph() HOT 1
- CPU load when monitoring many stations HOT 3
- reconnect on interrupted connection to server
- Localisation bug HOT 2
- Matplotlib 1.5 breaking plotting
- DATA/FETCH/TIME command is not accepted HOT 6
- URLerror HOT 2
- seedlink_plotter embedded in a web page HOT 4
- Time problem if more than 15 stations HOT 4
- Add support for wildcards in selected networks/stations
- Seedlink plotter kills my MacOs WindowServer ! HOT 4
- change host HOT 4
- how to include realtime triggering sta/lta HOT 1
- Problem when plotting multiple channels of the same station HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seedlink_plotter.