Coder Social home page Coder Social logo

Unconventional StationXML about mt_metadata HOT 7 CLOSED

kujaku11 avatar kujaku11 commented on September 27, 2024
Unconventional StationXML

from mt_metadata.

Comments (7)

kkappler avatar kkappler commented on September 27, 2024

I have added a one off script to clean up the non-conformant xml at the inventory stage before it goes into mt_metadata.

from mt_metadata.

kujaku11 avatar kujaku11 commented on September 27, 2024

@kkappler Is there a date where the conventions changed. For instance did FDSN update the channel codes some time and added the magnetic and electric channels to the current letter code? Could we use the data of the metadata to use different channel code dictionaries? If this is a one off, as Anna suggests maybe a simple workaround is fine.

from mt_metadata.

kkappler avatar kkappler commented on September 27, 2024

I really don't know. I know that when I used the NCEDC data circa 2010, all magnetometers were archived with "T" code. ... and vertical electric dipoles were Q1. I reached out to Doug Neuhauser at BSL to get some insight into this issue and no response.

from mt_metadata.

kkappler avatar kkappler commented on September 27, 2024

Jared has hacked around the "T" instead of "F" issue for magnetic channel code.
Karl's one off code is in iris_mt_scratch/sandbox/io_helpers/test_data.py
as def scan_network_for_nonconformity(inventory)

from mt_metadata.

kkappler avatar kkappler commented on September 27, 2024

I Propose to use the workaround methods and scripts to create a Parkfield/Hollister mth5 file that we commit to the repo for testing. That specific file can be maintained. The scripts that make it can serve as an example for how to make an mth5 from unconventional xml, but we probably don't want to support these odd duck files in general.

I'll plan to get Gary's synthetic data and the parkfield running through the pipeline and then close this issue.

from mt_metadata.

kujaku11 avatar kujaku11 commented on September 27, 2024

@kkappler sounds like a good plan, I would put the StationXML file in mt_metadata/data/station_xml and we can make a script in mt_metadata to convert the StationXML into an Experiment. And another script in MTH5 to make an MTH5 file or just have one script in MTH5.

from mt_metadata.

kujaku11 avatar kujaku11 commented on September 27, 2024

PR #142 updates reading of StationXML and most of these issues should be fixed. Closing on PR

from mt_metadata.

Related Issues (20)

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.