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