Changeset 27201
- Timestamp:
- 08/10/22 13:41:19 (3 years ago)
- Location:
- issm/trunk-jpl/src/m/coordsystems
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/coordsystems/gmtmask.m
r26184 r27201 36 36 37 37 %figure out which vertices are on the ocean, which one on the continent: 38 [status,result] = system(['gmt select ./' filename_all ' -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./' filename_oce]);38 [status,result] = system(['gmt select ./' filename_all ' -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./' filename_oce]); 39 39 if status~=0, 40 40 error(result); -
issm/trunk-jpl/src/m/coordsystems/gmtmask.py
r26184 r27201 45 45 46 46 #figure out which vertices are on the ocean, which one on the continent: 47 subprocess.call('gmt select ./ all_vertices.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices.txt', shell=True)47 subprocess.call('gmt select ./ all_vertices.txt -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices.txt', shell=True) 48 48 49 49 #read the con_vertices.txt file and flag our mesh vertices on the continent -
issm/trunk-jpl/src/m/coordsystems/gmtmaskparallel.m
r27158 r27201 42 42 fid=fopen('xjobs.script','w'); 43 43 for i=1:length(nnv)-1, 44 fprintf(fid,'%s gmt select ./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);44 fprintf(fid,'%s gmt select ./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); 45 45 end 46 46 fclose(fid);
Note:
See TracChangeset
for help on using the changeset viewer.