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
c7081108
Commit
c7081108
authored
5 years ago
by
JanThorbecke
Browse files
Options
Downloads
Patches
Plain Diff
cleaning
parent
0c744ccc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fdelmodc/getParameters.c
+1
-1
1 addition, 1 deletion
fdelmodc/getParameters.c
fdelmodc/getWaveletInfo.c
+5
-3
5 additions, 3 deletions
fdelmodc/getWaveletInfo.c
with
6 additions
and
4 deletions
fdelmodc/getParameters.c
+
1
−
1
View file @
c7081108
...
...
@@ -283,7 +283,7 @@ int getParameters(modPar *mod, recPar *rec, snaPar *sna, wavPar *wav, srcPar *sr
/* Check stability and dispersion setting */
if
(
cp_max
>
dx
*
stabfactor
/
dt
)
{
if
(
cp_max
>
(
dx
*
stabfactor
)
/
dt
)
{
vwarn
(
"************ ! Stability ! ****************"
);
vwarn
(
"From the input file maximum P-wave velocity"
);
vwarn
(
"in the current model is %f !!"
,
cp_max
);
...
...
This diff is collapsed.
Click to expand it.
fdelmodc/getWaveletInfo.c
+
5
−
3
View file @
c7081108
...
...
@@ -41,7 +41,7 @@ int getWaveletInfo(char *file_src, int *n1, int *n2, float *d1, float *d2, float
off_t
bytes
;
int
ret
,
one_shot
,
ntraces
;
int
optn
,
nfreq
,
i
,
iwmax
;
float
*
trace
;
float
*
trace
,
df
;
float
ampl
,
amplmax
,
tampl
,
tamplmax
;
complex
*
ctrace
;
segy
hdr
;
...
...
@@ -73,8 +73,9 @@ int getWaveletInfo(char *file_src, int *n1, int *n2, float *d1, float *d2, float
/* check to find out number of traces in shot gather */
optn
=
optncr
(
*
n1
);
optn
=
optncr
(
*
n1
);
nfreq
=
optn
/
2
+
1
;
df
=
1
.
0
/
(
optn
*
(
*
d1
));
ctrace
=
(
complex
*
)
malloc
(
nfreq
*
sizeof
(
complex
));
one_shot
=
1
;
trace
=
(
float
*
)
malloc
(
optn
*
sizeof
(
float
));
...
...
@@ -107,12 +108,13 @@ int getWaveletInfo(char *file_src, int *n1, int *n2, float *d1, float *d2, float
iwmax
=
i
;
}
}
/* from the maximum amplitude position look for the largest frequency
* which has an amplitude 400 times weaker than the maximum amplitude */
for
(
i
=
iwmax
;
i
<
nfreq
;
i
++
)
{
ampl
=
sqrt
(
ctrace
[
i
].
r
*
ctrace
[
i
].
r
+
ctrace
[
i
].
i
*
ctrace
[
i
].
i
);
if
(
400
*
ampl
<
amplmax
)
{
*
fmax
=
(
i
-
1
)
*
(
1
.
0
/
(
optn
*
(
*
d1
)))
;
*
fmax
=
(
i
-
1
)
*
df
;
break
;
}
}
...
...
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