Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSource
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Willem Thorbecke
OpenSource
Commits
b87fb15f
Commit
b87fb15f
authored
7 years ago
by
Jan Thorbecke
Browse files
Options
Downloads
Patches
Plain Diff
added optional Q correction
parent
b7246c2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fdelmodc/fdelmodc
+0
-0
0 additions, 0 deletions
fdelmodc/fdelmodc
marchenko/readShotData.c
+9
-1
9 additions, 1 deletion
marchenko/readShotData.c
with
9 additions
and
1 deletion
fdelmodc/fdelmodc
+
0
−
0
View file @
b87fb15f
No preview for this file type
This diff is collapsed.
Click to expand it.
marchenko/readShotData.c
+
9
−
1
View file @
b87fb15f
...
...
@@ -16,7 +16,8 @@ int optncr(int n);
void
cc1fft
(
complex
*
data
,
int
n
,
int
sign
);
void
rc1fft
(
float
*
rdata
,
complex
*
cdata
,
int
n
,
int
sign
);
int
readShotData
(
char
*
filename
,
float
*
xrcv
,
float
*
xsrc
,
float
*
zsrc
,
int
*
xnx
,
complex
*
cdata
,
int
nw
,
int
nw_low
,
int
nshots
,
int
nx
,
int
nxs
,
float
fxsb
,
float
dxs
,
int
ntfft
,
int
mode
,
float
scale
,
float
tsq
,
int
reci
,
int
*
nshots_r
,
int
*
isxcount
,
int
*
reci_xsrc
,
int
*
reci_xrcv
,
float
*
ixmask
,
int
verbose
)
int
readShotData
(
char
*
filename
,
float
*
xrcv
,
float
*
xsrc
,
float
*
zsrc
,
int
*
xnx
,
complex
*
cdata
,
int
nw
,
int
nw_low
,
int
nshots
,
int
nx
,
int
nxs
,
float
fxsb
,
float
dxs
,
int
ntfft
,
int
mode
,
float
scale
,
float
tsq
,
float
Q
,
float
f0
,
int
reci
,
int
*
nshots_r
,
int
*
isxcount
,
int
*
reci_xsrc
,
int
*
reci_xrcv
,
float
*
ixmask
,
int
verbose
)
{
FILE
*
fp
;
segy
hdr
;
...
...
@@ -102,6 +103,13 @@ int readShotData(char *filename, float *xrcv, float *xsrc, float *zsrc, int *xnx
}
}
/* Q-correction */
if
(
Q
!=
0
.
0
&&
f0
!=
0
.
0
)
{
for
(
iw
=
0
;
iw
<
nt
;
iw
++
)
{
trace
[
iw
]
*=
expf
(((
dt
*
iw
)
*
M_PI
*
f0
)
/
Q
);
}
}
/* transform to frequency domain */
if
(
ntfft
>
hdr
.
ns
)
memset
(
&
trace
[
nt
-
1
],
0
,
sizeof
(
float
)
*
(
ntfft
-
nt
)
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment