andres-h / fdsnws_scripts Goto Github PK
View Code? Open in Web Editor NEWScripts for working with (EIDA) FDSN web services
Scripts for working with (EIDA) FDSN web services
It seems the routing service at geofon.gfz-potsdam.de/eidaws/routing/1 only finds a limited number of networks. I get the following error:
heimers@foehr:/tmp$ ~/.local/bin/fdsnws_fetch -a ~/index.eidatoken -s 2021-06-12T16:00:00Z -e 2021-06-12T16:10:00Z -N YM -S NJ384 -v -o data.mseed
using token in /home/heimers/index.eidatoken:
{"valid_until": "2023-03-08T12:08:34.646022Z", "cn": "Stefan Heimers", "memberof": "/epos/K3MUL;/epos/alparray;/epos/THMJL;/epos;/epos/case;/;/epos/esm;/epos/JZKWQ", "sn": "Heimers", "issued": "2023-02-06T12:08:34.646026Z", "mail": "[email protected]", "givenName": "Stefan", "expiration": "1m"}
getting routes from http://geofon.gfz-potsdam.de/eidaws/routing/1/query?starttime=2021-06-12T16%3A00%3A00Z&endtime=2021-06-12T16%3A10%3A00Z&network=YM&station=NJ384&format=post
received no routes from http://geofon.gfz-potsdam.de/eidaws/routing/1/query?starttime=2021-06-12T16%3A00%3A00Z&endtime=2021-06-12T16%3A10%3A00Z&network=YM&station=NJ384&format=post
did not receive routes to YM.NJ384.*.*
But it works fine if I provide an other routing service, eg. as follows:
heimers@foehr:/tmp$ fdsnws_fetch --url="http://www.orfeus-eu.org/eidaws/routing/1/" -a ~/index.eidatoken -s 2021-06-12T16:00:00Z -e 2021-06-12T16:10:00Z -N YM -S NJ384 -v -o data.mseed
using token in /home/heimers/index.eidatoken:
{"valid_until": "2023-03-08T12:08:34.646022Z", "cn": "Stefan Heimers", "memberof": "/epos/K3MUL;/epos/alparray;/epos/THMJL;/epos;/epos/case;/;/epos/esm;/epos/JZKWQ", "sn": "Heimers", "issued": "2023-02-06T12:08:34.646026Z", "mail": "[email protected]", "givenName": "Stefan", "expiration": "1m"}
getting routes from http://www.orfeus-eu.org/eidaws/routing/1/query?starttime=2021-06-12T16%3A00%3A00Z&endtime=2021-06-12T16%3A10%3A00Z&network=YM&station=NJ384&format=post
authenticating at https://eida.ethz.ch/fdsnws/dataselect/1/auth
authentication at https://eida.ethz.ch/fdsnws/dataselect/1/auth successful
getting data from https://eida.ethz.ch/fdsnws/dataselect/1/queryauth
got 2182144 bytes (application/vnd.fdsn.mseed) from https://eida.ethz.ch/fdsnws/dataselect/1/queryauth
retrieving network citation info
getting routes from http://www.orfeus-eu.org/eidaws/routing/1/query
getting data from https://eida.ethz.ch/fdsnws/station/1/query
got 188 bytes (text/plain) from https://eida.ethz.ch/fdsnws/station/1/query
You received seismic waveform data from the following network(s):
YM_2021 Temporary Deployments associated with the DEEPEN project in the Hengill region, Iceland
So either the gfz routing service should be fixed, or the default should be changed to the one at Orfeus.
Needs some cleanup to fully support Py3.
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/db/generic/inventory.py", line 91
raise DBError, "StationReference %s already defined" % stationID
^
SyntaxError: invalid syntax
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/db/xmlio/inventory.py", line 860
raise DBError, "unrecognized root element: " + root.tag
^
SyntaxError: invalid syntax
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/db/xmlio/xmlwrap.py", line 112
raise ValueError, "invalid datetime: " + val
^
SyntaxError: invalid syntax
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/fseed.py", line 43
raise SEEDError, "blockette %d, field %d: error parsing FIR coefficients at '%s'" % (nblk, nfld, s[pos:])
^
SyntaxError: invalid syntax
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/logs.py", line 33
print s
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(s)?
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fdsnwsscripts/seiscomp/mseedlite.py", line 70
raise TypeError, "argument is neither string nor file object"
^
SyntaxError: invalid syntax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.