Changeset 22781 for issm/trunk/src/m/coordsystems/gmtmaskparallel.m
- Timestamp:
- 05/15/18 13:55:45 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/coordsystems/gmtmaskparallel.m
r20500 r22781 23 23 end 24 24 25 %Find path to gmt 26 paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'}; 27 gmtpath = ''; 28 for i=paths 29 if exist(i{1},'file'), 30 gmtpath = i{1}; 31 end 32 end 33 if isempty(gmtpath), 34 error('gmt not found, make sure it is properly installed'); 35 end 36 25 37 %Build xjobs script: 26 38 fid=fopen('xjobs.script','w'); 27 39 for i=1:length(nnv)-1, 28 fprintf(fid,' gmt gmtselect ./all_vertices%i.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices%i.txt\n',i,i);40 fprintf(fid,'%s gmtselect ./all_vertices%i.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices%i.txt\n',gmtpath,i,i); 29 41 end 30 42 fclose(fid);
Note:
See TracChangeset
for help on using the changeset viewer.