Skip to content
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

Add flag for EarthScope-ready miniSEED export #15

Merged
merged 6 commits into from
Oct 2, 2023
Merged

Conversation

liamtoney
Copy link
Member

This PR adds an option, --earthscope, which produces miniSEED files that are ready for EarthScope upload. Namely, this means that they are in digitizer integer counts. See #1, which this PR addresses (but not completely!).

One important change is the the encoding for cube2mseed has been changed to INT-32. Previously it was FLOAT-64, but I don't think this makes sense for a file that is natively coming off the digitizer in counts. The default encoding for cube2mseed is an integer data type, so that supports this. The code now specifies an encoding when writing the final miniSEED files.

I'm not quite sure how to handle the BoB factor. Here I've just multiplied digitizer counts by this factor. Input welcome on this!

@liamtoney liamtoney added the enhancement New feature or request label Sep 23, 2023
@liamtoney liamtoney requested a review from davidfee5 September 23, 2023 00:59
@liamtoney liamtoney self-assigned this Sep 23, 2023
README.md Outdated Show resolved Hide resolved
cube_convert.py Outdated Show resolved Hide resolved
@liamtoney liamtoney requested a review from davidfee5 October 2, 2023 14:25
@liamtoney
Copy link
Member Author

@davidfee5 thanks for your comments. I have addressed them and if you think this looks good, we can merge!

Note that the BoB factor application will be done in the StationXML creation script in the Yasur 2023 repo. Including a generalized form of that script in this repo would likely make sense but should be a separate PR I feel.

@liamtoney
Copy link
Member Author

Note that the BoB factor application will be done in the StationXML creation script in the Yasur 2023 repo.

This is done in https://github.com/liamtoney/yasur_2023/commit/79ce6526142ac998924660223f842239ed533dd2 (private repo)

Copy link
Member

@davidfee5 davidfee5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now! I tested it on a couple examples and seems to work well. Thanks!

@liamtoney liamtoney merged commit 23b83a7 into master Oct 2, 2023
@liamtoney liamtoney deleted the earthscope branch October 2, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants