Giter VIP home page Giter VIP logo

Comments (2)

jpvantassel avatar jpvantassel commented on September 15, 2024

Hi @DavidMvD,

I just took at a look at gallery_sesame.ipynb and everything is running as expected on my laptop and the test server, so I need to better understand exactly how to reproduce the error. From your message it appears that you tried running the notebook as-is (i.e., with the provided data) and are seeing an error, is that correct? If so, can you share the exact error message, your current version of Python, and your current version of hvsrpy. With that I should hopefully be able to reproduce the error and we can go from there.

If you are only getting an error using one of your own .miniseed files it is most-likely an issue with the formatting of the file itself, but I cannot say for sure without looking at the file. The most-likely possibility is that the components are not labeled correctly and the code is not able to understand which trace belongs to the NS, EW, and VT components. You can fix this in Python (using obspy) or in Geopsy and export a correct miniSEED file with the three components labeled correctly. You can supply either a merged three-component file or three one-component files to hvsrpy.read() (see docs).

All the best,
Joe

from hvsrpy.

masamasace avatar masamasace commented on September 15, 2024

I'm not sure if this is helpful for you, @DavidMvD but I've come across a similar issue and found a potential solution.
According to line 39, hvsrpy.data_wrangler.py, it seems that the channel name of each trace should end with any character of E, N, or Z.

data_wrangler.py attempts to read the file in alternative formats if it encounters difficulties in the current format. It follows the sequence of mseed, saf, minishark, sac, gcf, and finally peer. It appears that when reading the last peer files, they should be made up of three individual files, rather than a single merged file. This may be the reason why the ValueError is being raised.

ValueError: Must provide 3 peer files (one per trace) as list or tuple, not <class 'str'>

@jpvantassel would it be possible to modify the code to raise a warning or error to point out the incorrect channel name?

from hvsrpy.

Related Issues (17)

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.