-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yjf
committed
Apr 10, 2023
1 parent
92fe302
commit 1ba3233
Showing
5 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export Float32 | ||
|
||
""" | ||
get_sources(con::SeisCon) | ||
Returns an array of the source location coordinate pairs, NOT the minimum and maximum values. | ||
Unlike `get_headers`, `get_sources` checks to make sure that SourceX and SourceY are consistant | ||
throughout each block, that is `min == max`. | ||
Column 1 of the returned array is SourceX, and Column 2 is SourceY. | ||
# Example | ||
sx = get_sources(s) | ||
""" | ||
function Float32(con::SeisBlock) | ||
blocktraces11 = SeisBlock(Float32.(con.data)) #用float矩阵建立seisbloc floatk 格式 | ||
blocktraces11.fileheader = con.fileheader | ||
blocktraces11.traceheaders = con.traceheaders | ||
return blocktraces11 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters