Giter Site home page Giter Site logo

seishub.plugins.seismology's People

Contributors

barsch avatar krischer avatar mbyt avatar megies avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bmorg megies

seishub.plugins.seismology's Issues

QuakeML validation issue

Hi again Robert,

I'm receiving a validation error for a set of QuakeML files I'm attempting to upload to my SeisHub db and was wondering if you'd be able to shed some light on a possible reason.

The files all follow the format of the attached xml file (.txt extension to appease GitHub) and wont validate against the RelaxNG schema for 'event' in the seismology plugin.

I assume this is an issue with the .xml files I am feeding seishub but am unsure how to go about troubleshooting this. The files are readable by Obspy's readQuakeML() and readEvents(). Calling isQuakeML() returns 'True' (although I'm unsure how relevant that might be).

Attempting to upload the file yields the following:

chet@chet-Dell-Precision-M3800:~$ curl -v --data-binary @/home/chet/data/GeoNet_catalog/2012p000867.xml -u admin:admin -X POST http://localhost:8080/xml/seismology/event/
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> POST /xml/seismology/event/ HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.35.0
> Host: localhost:8080
> Accept: */*
> Content-Length: 44468
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
< HTTP/1.1 409 Resource-validation against schema 'seismology_event_QuakeML-1.2-merged.rng' failed. (Could not validate document. (Element quakeml has extra content: eventParameters, line 2))
< Transfer-Encoding: chunked
< Date: Tue, 17 Nov 2015 04:13:14 GMT
< Access-Control-Allow-Origin: *
* Server SeisHub 1.4.0 is not blacklisted
< Server: SeisHub 1.4.0
* HTTP error before end of send, stop sending
< 
* Closing connection 0

Any advise is very much appreciated,

Chet

2012p000867.xml.txt

Stop using pickle

I just noticed that SeisHub (and ObsPy) use pickle to communicate some things. Since this is a networked service, there are no guarantees that data may not be corrupt (accidentally or maliciously). There's even a great big red warning on the module documentation page for pickle about it.

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.