From 43cefc2710266b42d0be2fe221b03018c5dd006c Mon Sep 17 00:00:00 2001 From: AtilaSaraiva Date: Fri, 6 Sep 2024 20:09:25 -0600 Subject: [PATCH] returning dataframe with all the information from SeisHeaderInfo --- src/ReadWrite/SeisHeaderInfo.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ReadWrite/SeisHeaderInfo.jl b/src/ReadWrite/SeisHeaderInfo.jl index b52a5a1..90f6925 100644 --- a/src/ReadWrite/SeisHeaderInfo.jl +++ b/src/ReadWrite/SeisHeaderInfo.jl @@ -65,4 +65,12 @@ function SeisHeaderInfo(filename::String;ntrace::Union{Integer,Nothing}=nothing) @printf("%10s %11.3f %11.3f %11.3f\n",string(key[ikey]),min_h[ikey],max_h[ikey],mean_h[ikey]) end + df = DataFrame() + + df.Keys = key |> collect + df.Minimum = min_h + df.Mean = mean_h + df.Maximum = max_h + + return df end