noisepy/NoisePy

Update StackStore in application functions

Closed this issue · 0 comments

From #206
src/noisepy/seis/application_modules/esyn_utils.py

    with pyasdf.ASDFDataSet(sfile, mode="r") as ds:
        alist = ds.auxiliary_data.list()
        try:
            dt = ds.auxiliary_data[alist[0]][ccomp].parameters["dt"]

I wonder if the StackStore could be used for this instead of direct asdf file access? That way your function would work for any of the supported formats (asdf, zarr, numpy)

Originally posted by @carlosgjs in #206 (comment)

This could use a similar patter as plot_all_moveout. See this PR: #244. The data reading and the plotting are decoupled, which is more flexible.