Skip to main content

A collection of utilities for working with EarthScope strainmeter data

Project description

This repo contains the code associated with a library on pypi https://pypi.org/project/earthscopestraintools/ M. Gottlieb 1-20-23

It can be installed with

pip install earthscopestraintools

Or with optional dependencies:

pip install 'earthscopestraintools[mseed]'

pip install 'earthscopestraintools[tiledb]'

pip install 'earthscopestraintools[mseed,tiledb]'

straintiledbarray.py

class with methods and metadata to interact with strain tiledb arrays.
Methods include create, delete, consolidate, vacuum, read, write. it also includes the current schema definition.

ascii2tdb.py

ETL script to read level 2 ascii files and write them to tiledb local arrays. then need to

aws s3 sync arrayname s3://tiledb-strain/arrayname

tdb2ascii.py

distrubution script to generate level 2 ascii files based on a time query back from tiledb and package as tarball

tdb2tdb.py

distribution script to generate a subset tdb array based on a time query and package as tarball

bottle.py

library for reading gtsm bottle files

bottletar.py

wrapper class for reading 5 cases of tarballs of bottle files and writing to tiledb

bottle2mseed.py

add on functionality around bottletar to use obspy to write mseed files

bottle2tiledb.py

add on functionality around bottletar to use straintiledbarray to write to tiledb

mseed_tools.py

functions to download miniseed from DataSelect and load into pandas dataframes

gtsm_metadata.py

class to load GTSM metadata

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

earthscopestraintools-0.1.10.tar.gz (40.1 kB view hashes)

Uploaded Source

Built Distribution

earthscopestraintools-0.1.10-py3-none-any.whl (43.1 kB view hashes)

Uploaded Python 3

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