Skip to content

Commit

Permalink
returning dataframe with all the information from SeisHeaderInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
AtilaSaraiva committed Sep 7, 2024
1 parent 77513d4 commit 43cefc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ReadWrite/SeisHeaderInfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43cefc2

Please sign in to comment.