Commit fd855bd8 authored by Joseph Doetsch's avatar Joseph Doetsch
Browse files

- Add GNU Lesser GPL License info to all files

parent f4c4d354
### DUG Seis
# DUG Seis
Software for acquisition and processing of micro-seismic data
......@@ -9,4 +10,19 @@ Software for acquisition and processing of micro-seismic data
3. create a new conda environment using the command "conda create -n dug-seis python=3.6 obspy redis celery”. It is important to use python version 3.6, as there are some incompatibilities between different packages for 3.7.
4. move into the new environment using "conda activate dug-seis”
5. cd into the base folder of the dug-seis software
6. install the software using "pip install -e .” The “-e” in the install command makes sure that you can change the code and the changes will be directly effective, when you call dug-seis again. Once we are out of the immediate development stage, it makes sense to install using “pip install .”. Then you will have to re-install, when you changed the code or downloaded a new version.
\ No newline at end of file
6. install the software using "pip install -e .” The “-e” in the install command makes sure that you can change the code and the changes will be directly effective, when you call dug-seis again. Once we are out of the immediate development stage, it makes sense to install using “pip install .”. Then you will have to re-install, when you changed the code or downloaded a new version.
## License & Copyright
DUG Seis is licensed under the GNU Lesser General Public License, Version 3
(https://www.gnu.org/copyleft/lesser.html).
The copyright is held by ETH Zurich, Switzerland.
Main Contributors for the first version developed until August 2019 are
- Joseph Doetsch
- Thomas Haag
- Sem Demir
- Linus Villiger
# DUG-Seis command file
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
Usage: dug-seis [OPTIONS] COMMAND [ARGS]...
......
# DUG-Seis parameter file
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
General:
project_name : Bedretto_test
......
Joseph's contribution
this is Linus's contribution
"""
Software for data acquisition and real-time processing of induced
seismicity during rock-laboratory experiments.
# Celery App
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
# Copyright (c) 2018 by SCCER-SoE and SED at ETHZ
"""
try:
from celery import Celery
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""Manages the different hardware components. Calls the data transfer periodically.
- state machine
- restart
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""Read data from an array to a ASDF file.
Create a new file when needed.
"""
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
# example from lion HowTo generate a StationXML file
#
# ObsPy StationXML: https://docs.obspy.org/tutorial/code_snippets/stationxml_file_from_scratch.html
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import random
import time
import logging
......
# DUG-Seis hardware driver
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import os
import platform
import sys
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import logging
import time
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""Representation of one data acquisition card. Translation between python and the spectrum hardware drive.
- making function names understandable
- translation to hardware calls
- bundling of several calls to a "higher level one"
- hiding card pointers and management
"""
import logging
import numpy as np
import os.path
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""
- removing a bunch of lines out of one_card.py to make it slimmer
- not sure if this is a clever idea, i guess we will see
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import os
import pyasdf
from scipy.io import savemat
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""Interface to the Star Hub hardware.
Translation between python and the spectrum hardware drive.
The Star Hub is a "wire" connecting every card to every card and can therefore be used to start,
......
#!/usr/bin/env python
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import yaml
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
import unittest
# self.assertEqual('foo'.upper(), 'FOO')
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
"""Test how to move a file.
- Check if directory exists
- Move file"""
......
# DUG-Seis
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
# example from lion HowTo generate a StationXML file
#
# ObsPy StationXML: https://docs.obspy.org/tutorial/code_snippets/stationxml_file_from_scratch.html
......
# Celery App
#
# :copyright:
# ETH Zurich, Switzerland
# :license:
# GNU Lesser General Public License, Version 3
# (https://www.gnu.org/copyleft/lesser.html)
#
# -*- coding: utf-8 -*-
# Broker settings.
broker_url = "redis://"
# Using the database to store task state and results.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment