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).
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()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]
Requires Obspy==1.4.1 Requires Numpy, Matplotlib, Pandas, Requires a valid and accessible sqlite file with a tsindex column (created by mseedindex / rover)
