Add script to generate StationXML files from cube metadata#26
Draft
Add script to generate StationXML files from cube metadata#26
Conversation
I don't have the model or frequency of sensitivity measurement for all sensors — where these are missing, I've left the fields as "?"" for sensor model and -9999 for frequency. These must be filled in later!
Member
Author
This might be coming soon: obspy/obspy#3681 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new script,
cube_stationxml, which generates and validates a StationXML file from input miniSEED files and metadata. The idea is that the StationXML file generated by this script, together with the miniSEED files generated bycube_convertwith the--earthscopeflag, form a complete package ready for EarthScope upload.I'm opening this PR as a draft so that we can have some time to discuss in this thread and make modifications / improvements as needed — there's no rush on this. You can view the help menu for the new
cube_stationxmlscript in this section of the updated README.Here are some key notes on this PR:
sensor_sensitivities.jsonfile has a new format. In addition to sensitivity in V/Pa, the frequency of the sensitivity measurement and the sensor model are also included. Chaparral calibration sheets give this frequency info. The new content in this file is required for forming the StationXML file (e.g., we need the sensor model to look up the proper nominal response in the EarthScope NRL). I've done my best to update the UAF-specific file in here but set values to"?"and-9999if I didn't know what they were — should be easy enough to fill in.cube_convertwas run with the--grab-gpsflag). However, if another coordinate source is used (e.g., external GPS survey), we'd want to allow the user to provide those coordinates instead.This PR closes #1 (at long last!).