Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IFOS3D
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIT
GPI
AG
Software
IFOS3D
Commits
ce4d2167
Commit
ce4d2167
authored
2 months ago
by
Lars Houpt
Browse files
Options
Downloads
Patches
Plain Diff
Suffix (.su) moved to the end of filename in I/O of seismic data.
parent
8f7849f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/readrec.c
+2
-2
2 additions, 2 deletions
src/readrec.c
src/readseis.c
+2
-2
2 additions, 2 deletions
src/readseis.c
src/saveseis.c
+6
-6
6 additions, 6 deletions
src/saveseis.c
src/savesig.c
+3
-3
3 additions, 3 deletions
src/savesig.c
src/time_window.c
+1
-1
1 addition, 1 deletion
src/time_window.c
with
14 additions
and
14 deletions
src/readrec.c
+
2
−
2
View file @
ce4d2167
...
...
@@ -45,11 +45,11 @@ void readrec(int ishot, int **topo, st_acquisition *acq, GlobVar *gv, int rec_lo
switch
(
gv
->
READREC
)
{
/* read receiver positions from file */
case
3
:
/* read receiver positions from SU file headers */
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
shotnum
,
"
.
shot%d"
,
shot_id
);
sprintf
(
shotnum
,
"shot%d"
,
shot_id
);
}
else
{
sprintf
(
shotnum
,
"%s"
,
""
);
}
sprintf
(
filename
,
"%s_%s.su
%s
"
,
gv
->
SEIS_OBS_FILE
,
component
[
gv
->
ADJOINT_TYPE
-
1
],
shotnum
);
sprintf
(
filename
,
"%s_%s
_%s
.su"
,
gv
->
SEIS_OBS_FILE
,
component
[
gv
->
ADJOINT_TYPE
-
1
],
shotnum
);
log_info
(
"Reading receiver positions from file %s.
\n
"
,
filename
);
//acq->recpos = scan_suhead_rec(&filename, gv, topo, &ntr);
...
...
This diff is collapsed.
Click to expand it.
src/readseis.c
+
2
−
2
View file @
ce4d2167
...
...
@@ -51,12 +51,12 @@ void readseis(int shot_id, float **section, const st_acquisition *acq, int ntr,
}
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
shotnum
,
"
.
shot%d"
,
shot_id
);
sprintf
(
shotnum
,
"shot%d"
,
shot_id
);
}
else
{
sprintf
(
shotnum
,
"%s"
,
""
);
}
sprintf
(
data
,
"%s_%s.su
%s
"
,
gv
->
SEIS_OBS_FILE
,
component
[
comp
-
1
],
shotnum
);
sprintf
(
data
,
"%s_%s
_%s
.su"
,
gv
->
SEIS_OBS_FILE
,
component
[
comp
-
1
],
shotnum
);
if
(
gv
->
MYID_SHOT
==
0
)
log_info
(
"Reading file %s.
\n
"
,
data
);
if
(
ntr
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/saveseis.c
+
6
−
6
View file @
ce4d2167
...
...
@@ -88,12 +88,12 @@ void saveseis(st_seismogram *section, st_acquisition *acq, int ntr_glob, int ish
}
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
vxf
,
"%s_vx%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
vyf
,
"%s_vy%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
vzf
,
"%s_vz%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
curlf
,
"%s_rot%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
divf
,
"%s_div%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
pf
,
"%s_p%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
vxf
,
"%s_vx%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
sprintf
(
vyf
,
"%s_vy%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
sprintf
(
vzf
,
"%s_vz%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
sprintf
(
curlf
,
"%s_rot%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
sprintf
(
divf
,
"%s_div%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
sprintf
(
pf
,
"%s_p%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
}
else
{
sprintf
(
vxf
,
"%s_vx%s.%s"
,
seisfile
,
file_iter
,
file_ext
);
sprintf
(
vyf
,
"%s_vy%s.%s"
,
seisfile
,
file_iter
,
file_ext
);
...
...
This diff is collapsed.
Click to expand it.
src/savesig.c
+
3
−
3
View file @
ce4d2167
...
...
@@ -66,7 +66,7 @@ void savesig(float **signals, st_acquisition *acq, int nsrc_loc, int ishot, int
switch
(
fswitch
)
{
case
0
:
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
sigf
,
"%s_srcsig%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
sigf
,
"%s_srcsig%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
nsig
=
1
;
}
else
{
sprintf
(
sigf
,
"%s_srcsig%s.%s"
,
seisfile
,
file_iter
,
file_ext
);
...
...
@@ -75,7 +75,7 @@ void savesig(float **signals, st_acquisition *acq, int nsrc_loc, int ishot, int
break
;
case
1
:
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
sigf
,
"%s_srcsig_stfi%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
sigf
,
"%s_srcsig_stfi%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
nsig
=
1
;
}
else
{
sprintf
(
sigf
,
"%s_srcsig_stfi%s.%s"
,
seisfile
,
file_iter
,
file_ext
);
...
...
@@ -84,7 +84,7 @@ void savesig(float **signals, st_acquisition *acq, int nsrc_loc, int ishot, int
break
;
case
2
:
if
(
gv
->
RUN_MULTIPLE_SHOTS
)
{
sprintf
(
sigf
,
"%s_srcsig_stfi_stepl%s
.%s.
shot%d"
,
seisfile
,
file_iter
,
file_ext
,
shot_id
);
sprintf
(
sigf
,
"%s_srcsig_stfi_stepl%s
_
shot%d
.%s
"
,
seisfile
,
file_iter
,
shot_id
,
file_ext
);
nsig
=
1
;
}
else
{
sprintf
(
sigf
,
"%s_srcsig_stfi_stepl%s.%s"
,
seisfile
,
file_iter
,
file_ext
);
...
...
This diff is collapsed.
Click to expand it.
src/time_window.c
+
1
−
1
View file @
ce4d2167
...
...
@@ -72,7 +72,7 @@ void time_window(float **sectiondata1, float **sectiondata2, int **recpos_loc, i
}
}
//
log_info("Read mute from pick file %s, starting at line %d.\n", pickfile, gv->TW_START_READING_AT_LINE);
log_info
(
"Read mute from pick file %s, starting at line %d.
\n
"
,
pickfile
,
gv
->
TW_START_READING_AT_LINE
);
for
(
i
=
1
;
i
<=
gv
->
TW_START_READING_AT_LINE
-
1
;
i
++
){
fscanf
(
fptime
,
"%s %s
\n
"
,
dummy1
,
dummy2
);
...
...
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