Commit 28ac9cd9 authored by Florian Wittkamp's avatar Florian Wittkamp

Renaming of seismograms I/O

Renaming of observed seismograms:
SEIS_FILE_z.su -> SEIS_FILE_vz.su
SEIS_FILE_x.su -> SEIS_FILE_vx.su
SEIS_FILE_y.su -> SEIS_FILE_vy.su

Either rename your observed data, or (if synthetic) rerun forward modeling, so IFOS will create observed data, which is correctly named.
parent 516317df
...@@ -34,21 +34,21 @@ void inseis(FILE *fp, int comp, float **section, int ntr, int ns, int sws, int ...@@ -34,21 +34,21 @@ void inseis(FILE *fp, int comp, float **section, int ntr, int ns, int sws, int
FILE *fpdata; FILE *fpdata;
if(sws==1){ /* open seismic data vx */ if(sws==1){ /* open seismic data vx */
sprintf(data,"%s_x.su.shot%d",DATA_DIR,comp); sprintf(data,"%s_vx.su.shot%d",DATA_DIR,comp);
} }
if(sws==2){ /* open seismic data vy */ if(sws==2){ /* open seismic data vy */
sprintf(data,"%s_y.su.shot%d",DATA_DIR,comp); sprintf(data,"%s_vy.su.shot%d",DATA_DIR,comp);
} }
/* sws 3 -- 6 not used */ /* sws 3 -- 6 not used */
if(sws==7){ /* open convolved seismic data vx */ if(sws==7){ /* open convolved seismic data vx */
sprintf(data,"%s_x.su.conv.shot%d",DATA_DIR,comp); sprintf(data,"%s_vx.su.conv.shot%d",DATA_DIR,comp);
} }
if(sws==8){ /* open convolved seismic data vy */ if(sws==8){ /* open convolved seismic data vy */
sprintf(data,"%s_y.su.conv.shot%d",DATA_DIR,comp); sprintf(data,"%s_vy.su.conv.shot%d",DATA_DIR,comp);
} }
if(sws==9){ /* open seismic data p */ if(sws==9){ /* open seismic data p */
...@@ -56,7 +56,7 @@ void inseis(FILE *fp, int comp, float **section, int ntr, int ns, int sws, int ...@@ -56,7 +56,7 @@ void inseis(FILE *fp, int comp, float **section, int ntr, int ns, int sws, int
} }
if(sws==10){ /* open seismic data vz */ if(sws==10){ /* open seismic data vz */
sprintf(data,"%s_z.su.shot%d",DATA_DIR,comp); sprintf(data,"%s_vz.su.shot%d",DATA_DIR,comp);
} }
......
...@@ -77,10 +77,10 @@ void saveseis_glob(FILE *fp, float **sectionvx, float **sectionvy,float **sectio ...@@ -77,10 +77,10 @@ void saveseis_glob(FILE *fp, float **sectionvx, float **sectionvy,float **sectio
} }
if(INVMAT==10){ if(INVMAT==10){
sprintf(vxf,"%s_x.su.shot%d",SEIS_FILE,ishot); sprintf(vxf,"%s_vx.su.shot%d",SEIS_FILE,ishot);
sprintf(vyf,"%s_y.su.shot%d",SEIS_FILE,ishot); sprintf(vyf,"%s_vy.su.shot%d",SEIS_FILE,ishot);
if(WAVETYPE==2 || WAVETYPE==3) { if(WAVETYPE==2 || WAVETYPE==3) {
sprintf(vzf,"%s_z.su.shot%d",SEIS_FILE,ishot); sprintf(vzf,"%s_vz.su.shot%d",SEIS_FILE,ishot);
} }
sprintf(pf,"%s_p.su.shot%d",SEIS_FILE,ishot); sprintf(pf,"%s_p.su.shot%d",SEIS_FILE,ishot);
sprintf(divf,"%s_div.su.shot%d",SEIS_FILE,ishot); sprintf(divf,"%s_div.su.shot%d",SEIS_FILE,ishot);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment