-
Notifications
You must be signed in to change notification settings - Fork 0
/
EQ_out.m
executable file
·32 lines (27 loc) · 884 Bytes
/
EQ_out.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
function [ d_out ] = EQ_out (fout)
% EQ_out.m
% EQ Function that extracts the displacement from the GTdef output
% Nathanael Wong Zhixin, Feng Lujia
%
% This function extracts the modelled displacements from the GTdef output
% files
%
% INPUT:
% -- fout : output file name
%
% OUTPUT:
% -- d_out : modelled displacement
%
% FORMAT OF CALL: EQ_out (output file)
%
% OVERVIEW:
% 1) This function will open the output file and extract the modelled
% displacement data at the GPS stations.
%
% VERSIONS:
% 1) -- Final version validated and commented on 20190716 by Nathanael Wong
%%%%%%%%%%%%% IMPORT PREDICTED DISPLACEMENT RECORDED BY SUGAR %%%%%%%%%%%%%
[ ~,~,~,~,~,~,~,~,~,~,~,pnt_out,~,~,~,~,~,~,~ ] = GTdef_open(fout);
d_out = pnt_out.disp;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end