Skip to main content

A simple and universal package for loading large amounts of distributed acoustic sensing (DAS) data.

Project description

Module for loading Distributed Acoustic Sensing (DAS) data. SILIXA / OPTASENSE

Python: If you want to get started quickly, have a look at the examples.

Install dependencies

If you want to use pip for installing, you can just execute install_dependencies.sh. Otherwise, have a look into install_dependencies.sh and install the listed packages yourself.

Use as python module

API

Recommended: simplest interface

def load_array(t_start:datetime, t_end:datetime, channel_start:int, channel_end:int) -> NP.ndarray:
Loads data and returns it as a numpy array. 
Args:
    t_start (datetime): datetime object which defines the start of the data to load.
    t_end (datetime): datetime object which defines the end of the data to load.
    channel_start (int): The starting index of sensor in the data (inclusive).
    channel_end (int): The ending index of sensors in the data (exclusive).
Returns:
    A 2d-numpy-array containing the data.
    The first axis corresponds to the time, the second, to the channel

More detailed interface

def load_array(t_start:datetime, t_end:datetime, t_step:int, channel_start:int, channel_end:int, channel_step:int) -> NP.ndarray:
Returns nothing, the data can be accessed by accessing the data field of this instance.
Warning: using a different value then 1 for t_step or channel_step can result in a high cpu-usage.
        Consider using multithreaded=True in the constructor and a high amount of workers if needed.
Constraints: 
    t_start has to be less or equal t_end, 
    same for channel_start and channel_end.
    t_step and channel_step have to be greater then 0
Args:
    t_start (datetime): datetime object which defines the start of the data to load.
    t_end (datetime): datetime object which defines the end of the data to load.
    t_step (int): If you, for example only want to load the data of every fourth timestep use t_end=4
    channel_start (int): The starting index of sensor in the data (inclusive).
    channel_end (int): The ending index of sensors in the data (exclusive).
    channel_step (int): Like t_step, but for the sensor position.
Returns:
    A 2d-numpy-array containing the data.
    The first axis corresponds to the time, the second, to the channel

Lower level interfaces

There are also lower level interfaces in the module. For example, the above interfaces also exist with POSIX timestamps in milliseconds instead of datetime objects. These timestamps have exactly the same resolution as the time axis of the resulting array.

Example python-script

example.py

Use as command line interface

Example call (make sure that the current working directory is not inside idas2numpy):

</code></pre>
<p>For more information:</p>
<pre lang="python"><code>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

das2numpy-0.0.1.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

das2numpy-0.0.1-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file das2numpy-0.0.1.tar.gz.

File metadata

  • Download URL: das2numpy-0.0.1.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for das2numpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3202e1da51ad101528158ce7f2606b52635acfd1c2131f4a376f606addca3a59
MD5 d095a89442ecdfa66c2a96d9cc27cf64
BLAKE2b-256 49ff116f5d652d885dc1cb880655486b49edda107acfe351a21d2b4b09887a3f

See more details on using hashes here.

File details

Details for the file das2numpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: das2numpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for das2numpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d80df28a50f9e249ea40e53f9c5b3608f9d34bf944dee53e2dc85dc16f0e3bd
MD5 2a8babe4f7bfab4d9f8b694adc910208
BLAKE2b-256 31477642a187f11f3370d11dcac26ca120050f6cf586f15da1fc6fdf9b289dd7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page