Skip to content

csaundersshultz/data_availability_plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data_avail_2

📈 Data availability visualizer for SQLite (rover) databases

This Python tool visualizes the data availability percentage of multiple stations over time using horizontal bar charts. It queries a local sqlite file, intended to be one connected to a local rover database. Note, this does not pull the full data availability from IRIS, it only shows what is downloaded locally and available in a rover database. Hopefully in the future this can be updated to accommodate other obspy clients (earthworm / fdsn).


🛠 USAGE

from data_availability_plot import availability_plot
import matplotlib.pyplot as plt

sqlite_path = "/path/to/rover/datarepo/timeseries.sqlite"

fig, ax = availability_plot(sqlite_path, network="A*", station="", location="", channel="HDF", interval_days=1, max_chunk_days=200)
plt.show()
plt.close()


⬇️ Installation

Clone the repository and move into the project directory:

git clone https://github.com/csaundersshultz/data_availability_plot

[Future work: create a setup.py file so it can be installed directly into python environments]


📦 Requirements

Requires Obspy==1.4.1 Requires Numpy, Matplotlib, Pandas, Requires a valid and accessible sqlite file with a tsindex column (created by mseedindex / rover)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages