remove "\" from directories path
This commit is contained in:
parent
7f04745dcc
commit
be4eba2661
@ -323,7 +323,7 @@ switch Mode1
|
|||||||
|
|
||||||
case 1
|
case 1
|
||||||
%% SEISMIC DATA
|
%% SEISMIC DATA
|
||||||
cd CATALOGS\
|
cd CATALOGS
|
||||||
d=dir;dstr1={d.name};
|
d=dir;dstr1={d.name};
|
||||||
[SData,SFields,s,s1]=DatLoad(dstr1,1);
|
[SData,SFields,s,s1]=DatLoad(dstr1,1);
|
||||||
cd ../
|
cd ../
|
||||||
@ -336,7 +336,7 @@ PROD_data=[];ss=[];s2=[];ss2=[];dstr2=[];
|
|||||||
%% ------------------------------------------------------------------------------------------------------------------------------------
|
%% ------------------------------------------------------------------------------------------------------------------------------------
|
||||||
% BOTH -SEISMIC and PRODUCTION DATA
|
% BOTH -SEISMIC and PRODUCTION DATA
|
||||||
|
|
||||||
cd CATALOGS\ %Seismic Data
|
cd CATALOGS %Seismic Data
|
||||||
d=dir;dstr1={d.name};
|
d=dir;dstr1={d.name};
|
||||||
[SData,SFields,s,s1]=DatLoad(dstr1,1);
|
[SData,SFields,s,s1]=DatLoad(dstr1,1);
|
||||||
cd ../
|
cd ../
|
||||||
@ -346,7 +346,7 @@ Na=length(SFields);if SFields(Na)~=' ';SFields(Na+1)=' ';end
|
|||||||
ss1=1:length(Catalog);
|
ss1=1:length(Catalog);
|
||||||
% ss1=SetParams(Catalog);%Catalog=Catalog(ss1);
|
% ss1=SetParams(Catalog);%Catalog=Catalog(ss1);
|
||||||
|
|
||||||
cd PRODUCTION_DATA\ % Production (non-Seismic) Data
|
cd PRODUCTION_DATA % Production (non-Seismic) Data
|
||||||
d=dir;dstr2={d.name};
|
d=dir;dstr2={d.name};
|
||||||
[OData,OFields,ss,s2]=DatLoad(dstr2,2);
|
[OData,OFields,ss,s2]=DatLoad(dstr2,2);
|
||||||
cd ../
|
cd ../
|
||||||
|
@ -110,7 +110,7 @@ subplot(3,1,3);xlabel('Date','FontSize',18)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function savefig_callback(popup,event)
|
function savefig_callback(popup,event)
|
||||||
cd Outputs_SHA\
|
cd Outputs_SHA
|
||||||
print(gcf,'SHA.jpeg','-djpeg','-r300')
|
print(gcf,'SHA.jpeg','-djpeg','-r300')
|
||||||
savefig(gcf,'SHA.fig')
|
savefig(gcf,'SHA.fig')
|
||||||
% This code uses dot notation to get properties.
|
% This code uses dot notation to get properties.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
% ---- Save *.txt file with Parameters Report ----
|
% ---- Save *.txt file with Parameters Report ----
|
||||||
cd Outputs_SHA\
|
cd Outputs_SHA
|
||||||
fid=fopen('REPORT_Hazard_Analysis.txt','w');
|
fid=fopen('REPORT_Hazard_Analysis.txt','w');
|
||||||
fprintf(fid,['Parameters Report & Results for HAZARD ANALYSIS (created on ', datestr(now),')\n']);
|
fprintf(fid,['Parameters Report & Results for HAZARD ANALYSIS (created on ', datestr(now),')\n']);
|
||||||
fprintf(fid,['Parameters Estimated: Mean Return Period (MRP) and Exceedance Probability (EPR) \n']);
|
fprintf(fid,['Parameters Estimated: Mean Return Period (MRP) and Exceedance Probability (EPR) \n']);
|
||||||
|
@ -216,7 +216,7 @@ function [Catalog,PROD_data,ss1]=Data_Hand_A2M_ver2...
|
|||||||
|
|
||||||
if isempty(PROD_DATA)
|
if isempty(PROD_DATA)
|
||||||
%% SEISMIC DATA
|
%% SEISMIC DATA
|
||||||
cd CATALOGS\
|
cd CATALOGS
|
||||||
SData=load(SEIS_DATA);
|
SData=load(SEIS_DATA);
|
||||||
SFields=fileread(SEIS_FIELDS);
|
SFields=fileread(SEIS_FIELDS);
|
||||||
cd ../
|
cd ../
|
||||||
@ -230,7 +230,7 @@ else
|
|||||||
%% ------------------------------------------------------------------------------------------------------------------------------------
|
%% ------------------------------------------------------------------------------------------------------------------------------------
|
||||||
% BOTH -SEISMIC and PRODUCTION DATA
|
% BOTH -SEISMIC and PRODUCTION DATA
|
||||||
|
|
||||||
cd CATALOGS\ %Seismic Data
|
cd CATALOGS %Seismic Data
|
||||||
SData=load(SEIS_DATA);
|
SData=load(SEIS_DATA);
|
||||||
SFields=fileread(SEIS_FIELDS);
|
SFields=fileread(SEIS_FIELDS);
|
||||||
cd ../
|
cd ../
|
||||||
@ -240,7 +240,7 @@ Na=length(SFields);if SFields(Na)~=' ';SFields(Na+1)=' ';end
|
|||||||
ss1=1:length(Catalog);
|
ss1=1:length(Catalog);
|
||||||
% ss1=SetParams(Catalog);%Catalog=Catalog(ss1);
|
% ss1=SetParams(Catalog);%Catalog=Catalog(ss1);
|
||||||
|
|
||||||
cd PRODUCTION_DATA\ % Production (non-Seismic) Data
|
cd PRODUCTION_DATA % Production (non-Seismic) Data
|
||||||
OData=load(PROD_DATA);
|
OData=load(PROD_DATA);
|
||||||
OFields=fileread(PROD_FIELDS);
|
OFields=fileread(PROD_FIELDS);
|
||||||
cd ../
|
cd ../
|
||||||
|
@ -118,7 +118,7 @@ subplot(3,1,3);xlabel('Date','FontSize',18)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function savefig_callback(popup,event)
|
function savefig_callback(popup,event)
|
||||||
cd Outputs_SHA\
|
cd Outputs_SHA
|
||||||
print(gcf,'SHA.jpeg','-djpeg','-r300')
|
print(gcf,'SHA.jpeg','-djpeg','-r300')
|
||||||
savefig(gcf,'SHA.fig')
|
savefig(gcf,'SHA.fig')
|
||||||
% This code uses dot notation to get properties.
|
% This code uses dot notation to get properties.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
% ---- Save *.txt file with Parameters Report ----
|
% ---- Save *.txt file with Parameters Report ----
|
||||||
cd Outputs_SHA\
|
cd Outputs_SHA
|
||||||
fid=fopen('REPORT_Hazard_Analysis.txt','w');
|
fid=fopen('REPORT_Hazard_Analysis.txt','w');
|
||||||
fprintf(fid,['Parameters Report & Results for HAZARD ANALYSIS (created on ', datestr(now),')\n']);
|
fprintf(fid,['Parameters Report & Results for HAZARD ANALYSIS (created on ', datestr(now),')\n']);
|
||||||
fprintf(fid,['Parameters Estimated: Mean Return Period (MRP) and Exceedance Probability (EPR) \n']);
|
fprintf(fid,['Parameters Estimated: Mean Return Period (MRP) and Exceedance Probability (EPR) \n']);
|
||||||
|
Loading…
Reference in New Issue
Block a user