-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting alternate data formats (i.e., not only miniSEED) #8
Comments
Thank you very much, Joseph. hvsrpy is going to rock. |
Hi Joseph I consider it important to be able to use hvsrpy with the SESAME ASCII data format (saf) v. 1. Thank you for your input. |
Hi @emirochica, Can you post an example of the SESAME ASCII data format (saf) v1? I will then post an example parser script (similar to what I showed above for the MiniShark format) with the promise to provide native support for the format in the next release of hvsrpy. |
Hi Joseph I have attached a file in SAF format. Thanks for your support. |
Hi @emirochica, See description above for a script to read SAF format and create a |
Hi @jpvantassel Thank you very much for the time and effort that you dedicate to your project and that represents a valuable contribution to the work of other people. While the solution of converting from SAF to miniseed in geopsy worked, editing the component names is extra work. The possibility of reading SAF directly on the notebook is much more straightforward. |
Hi @jpvantassel I'm attempting to utilize this Python script for processing HVSR data. However, I possess three Miniseed files for the X, Y, and Z components instead of one Miniseed file that includes them all. In the 'simple_hvsrpt_interdace.py' script, I can only input one file containing all X,Y.Z components. Do you have any suggestions for this scenario? Thanks regard |
Hi @RuijieAmy, The
|
Hi @jpvantassel I'm currently attempting to achieve the SAF to MSEED conversion in order to avoid the use of Geopsy. Thank you very much, hvsrpy is an awesome resource |
Hi @luc4f, The code snippet above reads a SAF file into a Sensor3C object. You can then use that object for performing HVSR computations by modifying the example notebooks. To be clear the script does not perform SAF to miniSEED conversion, but it will allow you to process your SAF data using hvsrpy. I looked at your file and it loads in correctly using the script above. In addition, the new version (v2.0.0) of hvsrpy will be released in the next month. The new version has a major overhaul of many aspects including native support for different file types (seven in total; including SAF). All the best, |
Oh, now it works! still a newbie in this game :) thanks regard @jpvantassel, |
All, With the public commit #d27f92ab, hvsrpy now support all major file types for microtremor and earthquake recordings. These include: miniSEED (1 and 3 file versions), SAC, MiniShark, SAF, PEER, GCF. A table summarizing these formats in great detail is provided below. These advancements are currently only available by installing via GitHub, but will be available for the community via |
Problem Summary
Researchers use various equipment to measure ambient noise for HVSR, and this variety of equipment unfortunately results in a variety of data formats. Ideally
hvsrpy
will allow for convenient handling of a variety of common data formats and not only miniSEED.Proposed Solution
As most researchers are able to convert their data to ASCII/UTF-8 characters it makes sense to extend
hvsrpy
to include that functionality as a first step. However, as the format of any text file may vary, its difficult to produce a single script that will extract the data appropriately. Therefore, it is important to keep in mind that the example provided below is in fact only an example of a potential solution that can/must be modified appropriately.Examples
For MiniShark:
For SESAME ASCII data format (SAF) v1
The text was updated successfully, but these errors were encountered: