-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added srf2mrf tool to convert SRF file into MRF format.
- Loading branch information
1 parent
aab28f8
commit 4bb500e
Showing
6 changed files
with
646 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ fault_seg2gsf | |
generic_slip2srf | ||
srf2moment | ||
srf2stoch | ||
srf2xyz | ||
srf2xyz | ||
srf2mrf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include "include.h" | ||
#include "structure.h" | ||
#include "function.h" | ||
#include "defs.h" | ||
#include "getpar.h" | ||
|
||
int main(int ac,char **av) | ||
{ | ||
char infile[1024], outfile[1024]; | ||
struct standrupformat srf, mrf; | ||
char velfile[1024]; | ||
struct velmodel vmod; | ||
|
||
int inbin = 0; | ||
int outbin = 0; | ||
|
||
int use_srf_lame = 0; | ||
int print_command = 1; | ||
|
||
sprintf(infile,"stdin"); | ||
sprintf(outfile,"stdout"); | ||
sprintf(velfile,"NOT_PROVIDED"); | ||
|
||
setpar(ac,av); | ||
getpar("infile","s",infile); | ||
getpar("outfile","s",outfile); | ||
getpar("velfile","s",velfile); | ||
getpar("use_srf_lame","d",&use_srf_lame); | ||
getpar("print_command","d",&print_command); | ||
endpar(); | ||
|
||
read_Fvelmodel(velfile,&vmod); | ||
read_srf(&srf,infile,inbin); | ||
|
||
srf_to_mrf(&srf,&mrf,&vmod,use_srf_lame,print_command,ac,av); | ||
|
||
write_srf(&mrf,outfile,outbin); | ||
} |
Oops, something went wrong.