Skip to content

Commit 7e62409

Browse files
committed
- cleared out a few more install/uninstall bugs
- also fixed extras zipfiles to have proper paths
1 parent 8c3fa42 commit 7e62409

8 files changed

+43
-36
lines changed

Diff for: Contents.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% SEIZMO - Passive Seismology Toolbox
2-
% Version 0.6.15 Noshaq 25-Feb-2014
2+
% Version 0.6.15 Noshaq 2-Mar-2014
33
%
44
% New to SEIZMO? Overwhelmed by all the functions?
55
% <a href="matlab:showdemo sz_pub_beginning">THE BASICS</a>

Diff for: docs/seizmo_to_do.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ download_extras.bash
4949
- add new 3D models?
5050
- sph harm mantle models
5151
- really need codes to synthesize info at points
52-
- fjsimmons has matlab codes along these lines it seems
52+
- fjsimmons might have matlab codes along these lines
5353
- ani mantle models
5454
- just store the values as another field
5555
- add an ani flag of some sort (should indicate type too)

Diff for: shutdown_seizmo.m

+12-12
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,21 @@
7272
end
7373

7474
% removing irisws jar
75-
jars(1)=[path fs 'ws' fs 'IRIS-WS-2.0.6.jar'];
75+
jars{1}=[path fs 'ws' fs 'IRIS-WS-2.0.6.jar'];
7676
for i=1:numel(jars)
77-
if(java_in_octave && ismember(jars(1),javaclasspath))
78-
javarmpath(jars(1));
77+
if(java_in_octave && ismember(jars{1},javaclasspath))
78+
javarmpath(jars{1});
7979
end
8080
end
8181
clear jars;
8282

8383
% removing the jars for mattaup
84-
jars(1)=[path fs 'mattaup' fs 'lib' fs 'TauP-2.1.1.jar'];
85-
jars(2)=[path fs 'mattaup' fs 'lib' fs 'seisFile-1.5.1.jar'];
86-
jars(3)=[path fs 'mattaup' fs 'lib' fs 'MatTauP-2.1.1.jar'];
84+
jars{1}=[path fs 'mattaup' fs 'lib' fs 'TauP-2.1.1.jar'];
85+
jars{2}=[path fs 'mattaup' fs 'lib' fs 'seisFile-1.5.1.jar'];
86+
jars{3}=[path fs 'mattaup' fs 'lib' fs 'MatTauP-2.1.1.jar'];
8787
for i=1:numel(jars)
88-
if(java_in_octave && ismember(jars(i),javaclasspath))
89-
javarmpath(jars(i));
88+
if(java_in_octave && ismember(jars{i},javaclasspath))
89+
javarmpath(jars{i});
9090
end
9191
end
9292
clear jars;
@@ -114,11 +114,11 @@
114114

115115
% jars (2 of them) for external program njtbx
116116
% - used by WW3 functions (analyze ocean waves & seismic noise)
117-
jars(1)=[path fs 'njtbx' fs 'njTools-2.0.12_jre1.6.jar'];
118-
jars(2)=[path fs 'njtbx' fs 'toolsUI-4.0.49.jar'];
117+
jars{1}=[path fs 'njtbx' fs 'njTools-2.0.12_jre1.6.jar'];
118+
jars{2}=[path fs 'njtbx' fs 'toolsUI-4.0.49.jar'];
119119
for i=1:numel(jars)
120-
if(java_in_octave && ismember(jars(i),javaclasspath))
121-
javarmpath(jars(i));
120+
if(java_in_octave && ismember(jars{i},javaclasspath))
121+
javarmpath(jars{i});
122122
end
123123
end
124124
clear jars;

Diff for: startup_seizmo.m

+18-12
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,27 @@
7171
end
7272

7373
% adding irisws jar
74-
jars(1)=[path fs 'ws' fs 'IRIS-WS-2.0.6.jar'];
74+
jars{1}='IRIS-WS-2.0.6.jar';
75+
pjars=strcat(path,fs,'ws',fs,jars);
7576
for i=1:numel(jars)
76-
if(java_in_octave && ~ismember(jars(1),javaclasspath('-all')))
77-
javaaddpath(jars(1));
77+
if(java_in_octave && ...
78+
all(cellfun('isempty',strfind(javaclasspath('-all'),jars{i}))))
79+
javaaddpath(pjars{i});
7880
end
7981
end
8082
clear jars;
8183

8284
% adding the jars for mattaup is not necessary for
8385
% taup*.m but you might want to do this now if you
8486
% directly use the jars or objects for some reason
85-
jars(1)=[path fs 'mattaup' fs 'lib' fs 'TauP-2.1.1.jar'];
86-
jars(2)=[path fs 'mattaup' fs 'lib' fs 'seisFile-1.5.1.jar'];
87-
jars(3)=[path fs 'mattaup' fs 'lib' fs 'MatTauP-2.1.1.jar'];
87+
jars{1}='TauP-2.1.1.jar';
88+
jars{2}='seisFile-1.5.1.jar';
89+
jars{3}='MatTauP-2.1.1.jar';
90+
pjars=strcat(path,fs,'mattaup',fs,'lib',fs,jars);
8891
for i=1:numel(jars)
89-
if(java_in_octave && ~ismember(jars(i),javaclasspath('-all')))
90-
javaaddpath(jars(i));
92+
if(java_in_octave && ...
93+
all(cellfun('isempty',strfind(javaclasspath('-all'),jars{i}))))
94+
javaaddpath(pjars{i});
9195
end
9296
end
9397
clear jars;
@@ -115,11 +119,13 @@
115119

116120
% jars (2 of them) for external program njtbx
117121
% - used by WW3 functions (analyze ocean waves & seismic noise)
118-
jars(1)=[path fs 'njtbx' fs 'njTools-2.0.12_jre1.6.jar'];
119-
jars(2)=[path fs 'njtbx' fs 'toolsUI-4.0.49.jar'];
122+
jars{1}='njTools-2.0.12_jre1.6.jar';
123+
jars{2}='toolsUI-4.0.49.jar';
124+
pjars=strcat(path,fs,'njtbx',fs,jars);
120125
for i=1:numel(jars)
121-
if(java_in_octave && ~ismember(jars(i),javaclasspath('-all')))
122-
javaaddpath(jars(i));
126+
if(java_in_octave && ...
127+
all(cellfun('isempty',strfind(javaclasspath('-all'),jars{i}))))
128+
javaaddpath(pjars{i});
123129
end
124130
end
125131
clear jars;

Diff for: webinstall_extras.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
% Feb. 21, 2014 - initial version
3131
% Feb. 27, 2014 - minor doc update
3232
% Mar. 1, 2014 - iscfmdb not ready yet
33+
% Mar. 2, 2014 - minor fix to web links
3334
%
3435
% Written by Garrett Euler (ggeuler at wustl dot edu)
35-
% Last Updated Mar. 1, 2014 at 15:25 GMT
36+
% Last Updated Mar. 2, 2014 at 15:25 GMT
3637

3738
% todo:
3839

@@ -72,7 +73,7 @@
7273

7374
% grab files (either locally or remotely)
7475
url0='http://epsc.wustl.edu/~ggeuler/codes/m/seizmo/';
75-
url1='https://s3-us-west-2.amazonaws.com/seizmo/';
76+
%url1='https://s3-us-west-2.amazonaws.com/seizmo/'; % backup currently
7677
fprintf(' Getting %s\n',sacpzdb);
7778
if(~dlflag && exist(sacpzdb,'file'))
7879
if(~exist([mypath fs sacpzdb],'file'))
@@ -87,7 +88,7 @@
8788
copyfile(which(sz3dmod),'.');
8889
end
8990
else
90-
urlwrite([url1 sz3dmod],sz3dmod);
91+
urlwrite([url0 sz3dmod],sz3dmod);
9192
end
9293
fprintf(' Getting %s\n',mapfeat);
9394
if(~dlflag && exist(mapfeat,'file'))
@@ -103,7 +104,7 @@
103104
% copyfile(which(iscfmdb),'.');
104105
% end
105106
%else
106-
% urlwrite([url1 iscfmdb],iscfmdb);
107+
% urlwrite([url0 iscfmdb],iscfmdb);
107108
%end
108109

109110
% unpack files

Diff for: webinstall_irisws.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
% will generate warnings from at least Matlab.
104104
iriswsjar=[mypath fs irisws];
105105
if(java_in_octave && ...
106-
all(cellfun('isempty',strfind(irisws,javaclasspath('-all')))))
106+
all(cellfun('isempty',strfind(javaclasspath('-all'),irisws))))
107107
javaaddpath(iriswsjar);
108108
end
109109

Diff for: webinstall_njtbx.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@
141141
toolsuijar=[mypath fs toolsui];
142142
njtoolsjar=[mypath fs njtools];
143143
if(java_in_octave && ...
144-
all(cellfun('isempty',strfind(toolsui,javaclasspath('-all')))))
144+
all(cellfun('isempty',strfind(javaclasspath('-all'),toolsui))))
145145
javaaddpath(toolsuijar);
146146
end
147147
if(java_in_octave && ...
148-
all(cellfun('isempty',strfind(njtools,javaclasspath('-all')))))
148+
all(cellfun('isempty',strfind(javaclasspath('-all'),njtools))))
149149
javaaddpath(njtoolsjar);
150150
end
151151

Diff for: webinstall_taup.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@
104104
seisjar=[mypath fs seis];
105105
mattaupjar=[mypath fs mattaup];
106106
if(java_in_octave && ...
107-
all(cellfun('isempty',strfind(taup,javaclasspath('-all')))))
107+
all(cellfun('isempty',strfind(javaclasspath('-all'),taup))))
108108
javaaddpath(taupjar);
109109
end
110110
if(java_in_octave && ...
111-
all(cellfun('isempty',strfind(seis,javaclasspath('-all')))))
111+
all(cellfun('isempty',strfind(javaclasspath('-all'),seis))))
112112
javaaddpath(seisjar);
113113
end
114114
if(java_in_octave && ...
115-
all(cellfun('isempty',strfind(mattaup,javaclasspath('-all')))))
115+
all(cellfun('isempty',strfind(javaclasspath('-all'),mattaup))))
116116
javaaddpath(mattaupjar);
117117
end
118118

0 commit comments

Comments
 (0)