Comments (2)
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.
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)
- Feature Request: Command line interface HOT 3
- API Change Request: Multi-Azimuth Output File
- Combine Three One-Component Miniseed Files to a Single Three-Component File
- Issue with installing hvsrpy HOT 6
- Pre-processing? HOT 1
- hvsrpy Community Survey HOT 5
- Clarity criteria don't respect the frequency filter range HOT 2
- CPU number for processing HOT 1
- (Continuous error): ValueError: illegal value in 4-th argument of internal None HOT 1
- Output final results HOT 5
- Problem reading SAF v1 format file HOT 3
- HVSRPY: Using Median Curve Instead of Mean Curve in Analysis HOT 1
- Possible issue with hvsrpy.plot_azimuthal_summary HOT 4
- Possible issue with window rejection HOT 4
- Missing Azimuthal Statistics in `azimuthal_hvsrpy_interface.ipynb` (v0.4.1)
- Supporting alternate data formats (i.e., not only miniSEED) HOT 12
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 hvsrpy.