Giter VIP home page Giter VIP logo

asdf_sextant's Introduction

ASDF Sextant

Landing page for all things ASDF: https://seismic-data.org

This is Adaptable Seismic Data Format - if you are looking for the Advanced Scientific Data Format, go here: https://asdf.readthedocs.io/en/latest/

This is an experimental graphical user interface intended to enable the interactive exploration of ASDF files. It is best suited to deal with earthquake data.

Imgur Imgur Imgur

Installation

$ conda install pyasdf pyside2
$ pip install asdf-sextant

It is important to install pyside2 via conda if you use conda - otherwise it is easy to install some version of Qt with conda and another via pip which just crashes.

Usage

Start it with:

$ asdf-sextant

Alternatively you can directly open a file with it:

$ asdf-sextant filename.h5

Dev

Dependencies

The GUI has the following dependencies:

  • Python 3.7 or 3.8
  • pyasdf
  • pyside2
  • pyqtgraph>=0.11.0rc0
  • qdarkstyle

Misc

Rebuild the UI file in case its necessary with:

pyside2-uic -g python --output=asdf_sextant_window.py asdf_sextant_window.ui

asdf_sextant's People

Contributors

krischer avatar neeleym avatar outdoorpet avatar

Stargazers

Jincheng Ma avatar  avatar Charles avatar  avatar Stephen Soerens avatar  avatar  avatar  avatar Evan Bianco avatar lpk-py avatar Kent avatar  avatar Tobias Megies avatar

Watchers

Elliott Sales de Andrade avatar  avatar James Cloos avatar  avatar Dan Auerbach avatar  avatar  avatar  avatar

asdf_sextant's Issues

Segmentation fault issue on both linux and mac

Hi!

I have now tried with both Linux and Mac, I can't seem to make the installation work. The error I get is the following:

QSslSocket: cannot resolve CRYPTO_num_locks
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv2_client_method
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv2_server_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
unsupported date format detected
Segmentation fault (core dumped)

I have a feeling that the error is lying here somewhere: unsupported date format detected since a little googling revealed that the SSL warnings can be ignored.

I thought it might be an issue of the python version, so I have tried to run the software on both architectures with both python 3.6 and 2.7. No success.

Is this maybe known and I'm making a mistake when installing?

Thanks!

Lucas

Can not run it..

Anybody using this GUI program now?

I met a problem, when I running "asdf-sextant" with the command in the windows system. It will
happen nothing. There are photoes showing my packages in python 3.7.12 and my running result.

Thanks a lot if anybody can help me slove the issue!!
image
image

Is this utility supported/been tested on Mac (pyside errors)?

Hello, I tried running this on Mac (intel running 11.4), I set it up by running the following commands:

conda create -n "asdfSextant" python=3.8 ipython pyasdf pyside2
conda activate asdfSextant
pip install asdf-sextant

When I run asdf-sextant I get an error (NameError: name '_init_pyside_extension' is not defined). Any idea what might be causing this?

Thank You, I appreciate any assistance,

Full Output:

Traceback (most recent call last):
File "/Users/eckert/anaconda3/envs/asdfSextant/bin/asdf-sextant", line 5, in
from asdf_sextant.main import launch
File "/Users/eckert/anaconda3/envs/asdfSextant/lib/python3.8/site-packages/asdf_sextant/main.py", line 11, in
from PySide2 import QtGui, QtCore
File "/Users/eckert/anaconda3/envs/asdfSextant/lib/python3.8/site-packages/PySide2/init.py", line 107, in
_setupQtDirectories()
File "/Users/eckert/anaconda3/envs/asdfSextant/lib/python3.8/site-packages/PySide2/init.py", line 58, in _setupQtDirectories
import shiboken2
File "/Users/eckert/anaconda3/envs/asdfSextant/lib/python3.8/site-packages/shiboken2/init.py", line 30, in
_init_pyside_extension()
NameError: name '_init_pyside_extension' is not defined

running asdf-sextant

Hello

I have installed the GUI on an Ubuntu machine following the instructions which went OK. Running asdf-sextant from terminal produces the below error message. I would appreciate any help on this matter :)

Traceback (most recent call last):
File "/home/hadi/miniconda/envs/obspy/bin/asdf-sextant", line 5, in
from asdf_sextant.main import launch
File "/home/hadi/miniconda/envs/obspy/lib/python3.7/site-packages/asdf_sextant/main.py", line 32, in
from . import asdf_sextant_window
File "/home/hadi/miniconda/envs/obspy/lib/python3.7/site-packages/asdf_sextant/asdf_sextant_window.py", line 44, in
from .svg_graphics_view import SvgGraphicsView
File "/home/hadi/miniconda/envs/obspy/lib/python3.7/site-packages/asdf_sextant/svg_graphics_view.py", line 4, in
class SvgGraphicsView(QtGui.QGraphicsView):
AttributeError: module 'PySide2.QtGui' has no attribute 'QGraphicsView'

"Reset View" unhandles condition

I just wanted to let you know that when clicking on the "Reset View" button, when no waveforms have been visualized yet, the follow Traceback appears:

Traceback (most recent call last):
  File "./main.py", line 277, in on_reset_view_push_button_released
    self.reset_view()
  File "./main.py", line 481, in reset_view
    self._state["waveform_plots"][0].setXRange(
KeyError: 'waveform_plots'

Ideally this button would be inactive, and activated only when a trace has been visualized.

Not a big deal thought ;-)

Sextant for PyQt 5

Hi guys!

Is it part of your plans to upgrade sextant to a version built on PyQt 5?
I have been using pyasdf to create .h5 datasets and now wanted to try sextant to interactively visualize the event waveforms in there.
The problem is that I only have PyQt 5 installed at the moment. I haven't been able to install PyQt 4 along with either my current python installation (3.6.7 in a conda 4.7.5 environment) or another python 2.7.15 conda env on my Ubuntu 16.04.6 LTS.

Thanks!
Hugo

bug?

Hi Lion,

The GUI does not work unless I comment out the following lines in main.py:

if station not in info["ds"].waveforms:
continue

The condition is always true

Cheers,
Kuangdai

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.