Coder Social home page Coder Social logo

anisotropio's Introduction

AnisotropIO is a cross-platform Python toolkit for parsing, composing, and translating between inputs/outputs for various shear-wave splitting analysis codes.

Key features

AnisotropIO is a sibling Python package to AnisotroPy, providing a standard, unified file format and internal representation used for shear-wave splitting analyses.

AnisotropIO currently provides parsers for:

  • MFAST
  • SplitRacer

More to come.

Documentation

Documentation for AnisotropIO is hosted here.

Installation

AnisotropIO requires Python version 3.8 and above. Installation of AnisotropIO, including all dependencies, can be done using pip:

pip install --extra_index_url https://test.pypi.org/simple/ anisotropio

For further information regarding installation—including virtual environment management and installation from source—please consult our documentation.

Citation

If you use AnisotropIO in your work, please cite the following:

Bacon, C. A. (2023). AnisotropIO (Version 0.0.1) [Computer software]. https://doi.org/XX.XXXX/zenodo.XXXXXXX

Contributing to AnisotropIO

Contributions to AnisotropIO are welcomed. The first stop should be to reach out, either directly or—preferably—via the GitHub Issues panel, to discuss the proposed changes. Next, simply fork the AnisotropIO repository, make your changes/add your new contribution, then make a pull request. All contributors to AnisotropIO will be listed as authors on the releases.

Bug reports, suggestions for new features and enhancements, and even links to projects that have made use of AnisotropIO are most welcome.

See our contributions page for more information.

Contact

Any comments/questions can be directed to:

  • Conor Bacon - cbacon [ at ] ldeo.columbia.edu

License

AnisotropIO is free and open source, distributed under the GPLv3 License. Please see the LICENSE file for a complete description of the rights and freedoms that this provides the user.

anisotropio's People

Contributors

hemmelig avatar jamiemccann avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jamiemccann

anisotropio's Issues

qm2mfast unsupported operand error within archive.read_waveform_data

Describe the bug
In https://github.com/hemmelig/AnisotropIO/blob/main/anisotropio/translators/qm2X.py, specifically the section:

        # --- Find min/max pick times and use to query data from archive ---
        min_time, max_time = picks["PickTime"].min(), picks["PickTime"].max()
        data = archive.read_waveform_data(
            min_time - 15,
            max_time + 15,
            pre_pad=1.5,
            post_pad=1.5

I get the following error:

---> 68     min_time - 15,

TypeError: unsupported operand type(s) for -: 'str' and 'int'

To Reproduce
Copy prepare_MFAST_from_QM_run.py into jupyter notebook and set appropriate base_path and archive_path, run code

Expected behavior
qm2mfast function should run

Desktop (please complete the following information):

  • Operating System: Ubuntu
  • Python version: 3.8
  • AnisotropIO version: 0.0.1

Additional context
Compared to previous script you generated with me in Cambridge, the use of obspy.UTCDateTime() is done later, so it is possibly that when min_time and max_time are created, they are created as strings (and so the indexing of picks['PickTime'] will still work), however the use of arithmetic operators won't wok hence the error

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.