Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix zero scaling #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/SegyIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ module SegyIO
blank_th = BinaryTraceHeader()

# Methods
include("methods/ordered_pmap.jl")
include("methods/merge.jl")
include("methods/split.jl")
include("methods/set_header.jl")
Expand Down
4 changes: 2 additions & 2 deletions src/methods/get_header.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function get_header(block::SeisBlock, name_in::Union{Symbol, String}; scale::Boo
scaling_factor = get_header(block, scale_name)
out = Float64.(out)
for ii in 1:ntraces
fact = scaling_factor[ii]
fact = scaling_factor[ii] == 0 ? 1 : scaling_factor[ii]
fact > 0 ? out[ii] *= fact : out[ii] /= abs(fact)
end
end
Expand Down Expand Up @@ -86,7 +86,7 @@ To get source coordinate pairs as an array, see `get_sources`.
trace = get_header(s, "TraceNumber")

"""
function get_header(con::SeisCon,name::String)
function get_header(con::SeisCon, name::String)
minmax = [con.blocks[i].summary[name] for i in 1:length(con)]
I = length(minmax)
vals = Array{Int32,2}(undef, I, 2)
Expand Down
32 changes: 0 additions & 32 deletions src/methods/ordered_pmap.jl

This file was deleted.

2 changes: 0 additions & 2 deletions src/read/read_trace.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export read_trace

"""
Use: read_trace!(s::IO,
fh::BinaryFileHeader,
Expand Down
2 changes: 0 additions & 2 deletions src/scan/scan_chunk.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export scan_chunk

function scan_chunk!(s::IO, max_blocks_per_chunk::Int, mem_block::Int, mem_trace::Int,
keys::Array{String,1}, file::String, scan::Array{BlockScan,1}, count::Int)

Expand Down
2 changes: 0 additions & 2 deletions src/scan/scan_shots.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export scan_shots

function scan_shots!(s::IO, mem_chunk::Int, mem_trace::Int,
keys::Array{String,1}, file::AbstractString, scan::Array{BlockScan,1}, fl_eof::Bool)

Expand Down