Skip to content

Commit

Permalink
pol submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjones76 committed Nov 10, 2016
1 parent 5d5f28f commit b10843e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SeisIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ include("Web/WebMisc.jl") # Common functions for web data access

# Submodule SeisPol
module Polarization
export seispol, polhist, gauss, gdm, chi2d, qchd
export seispol, polhist, gauss, gdm, chi2d, qchd, seispol!
include("Submodules/Histograms.jl")
include("Submodules/Polarization.jl")
end
Expand Down
17 changes: 16 additions & 1 deletion src/Submodules/Polarization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,22 @@ using SeisIO
# return (Θ_c, Σ_c)
# end

function spol!(S::SeisData,

"""
seispol!(S)
Update SeisData structure S with polarization of all seismic instruments. Polarization values are in S.misc[i]["pol"], weights in S.misc[i]["wt"], where [i] is the channel number of the vertical component.
seispol!(S, inst_codes = INST_CODES::Array{Char,1})
Compute polarization on instruments whose codes match `INST_CODES`. Default: ['G', 'H', 'L', 'M', 'N', 'P'].
seispol!(S, sort_ord = SORT_ORDER::Array{String,1})
Use `SORT_ORDER` for the relative orientations of different components. Default: ["Z","N","E","0","1","2","3","4","5","6","7","8","9"]
"""
function seispol!(S::SeisData,
sort_ord = ["Z","N","E","0","1","2","3","4","5","6","7","8","9"]::Array{String,1},
inst_codes = ['G', 'H', 'L', 'M', 'N', 'P']::Array{Char,1})
# Add: bandpass filtering paramters (npoles, corners)
Expand Down

0 comments on commit b10843e

Please sign in to comment.