Giter Site home page Giter Site logo

fdsnws_scripts's People

Contributors

andres-h avatar javiquinte avatar pevans-gfz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fdsnws_scripts's Issues

missing networks with default routing service geofon.gfz-potsdam.de/eidaws/routing/1

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.

Python 3 not supported

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.