-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEQ_create_printDGeo.m
executable file
·45 lines (36 loc) · 1.32 KB
/
EQ_create_printDGeo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function EQ_create_printDGeo (fEQ,dim,geom)
% EQ_create_printDGeo.m
% EQ Function that print the event geometry to .eq
% Nathanael Wong Zhixin, Feng Lujia
%
% This function is created for the purpose of printing the dimensions and
% geometryinformation into .eq files, to be read and used in GTdef
%
% INPUT:
% -- fEQ : file name
% -- dim : dimension information
% -- geom : geometry information
%
% OUTPUT: N/A
%
% FORMAT OF CALL: EQ_create_printDGeo (fEQ,dim,geom)
%
% OVERVIEW:
% 1) This function prints the event dimensions and geometry
%
% VERSIONS:
% 1) -- Final version validated and commented on 20190715 by Nathanael Wong
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PRINT HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf (fEQ, '# DGeo Len Wid Area');
fprintf (fEQ, ' ');
fprintf (fEQ, 'Str Dip\n');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PRINT UNITS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf (fEQ, '# (m) (m) (m^2)');
fprintf (fEQ, ' ');
fprintf (fEQ, '(d) (d)\n');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PRINT DETAILS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf (fEQ, ' DGeo %-6.0f %-6.0f %-e', dim);
fprintf (fEQ, ' ');
fprintf (fEQ, '%-5.1f %-4.1f\n\n', geom);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end