source: issm/oecreview/Archive/19101-20495/ISSM-20282-20283.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 1.3 KB
RevLine 
[20498]1Index: ../trunk-jpl/src/m/coordsystems/gmtmask.py
2===================================================================
3--- ../trunk-jpl/src/m/coordsystems/gmtmask.py (revision 20282)
4+++ ../trunk-jpl/src/m/coordsystems/gmtmask.py (revision 20283)
5@@ -38,7 +38,7 @@
6
7 #First, write our lat,long file for gmt:
8 nv=lenlat
9- savetxt('./all_vertices.txt',[long, lat, arange(1,nv+1)],delimiter='\t')
10+ savetxt('./all_vertices.txt',transpose([long, lat, arange(1,nv+1)]),delimiter='\t',fmt='%.10f')
11
12 #Avoid bypassing of the ld library path by Matlab (:()
13 try:
14@@ -67,7 +67,7 @@
15 line=fid.readline()
16 oce_vertices=[]
17 while line:
18- ind=str2num(line.split()[3])
19+ ind=int(float(line.split()[2]))-1;
20 oce_vertices.append(ind)
21 line=fid.readline()
22 fid.close()
23Index: ../trunk-jpl/src/m/coordsystems/gmtmask.m
24===================================================================
25--- ../trunk-jpl/src/m/coordsystems/gmtmask.m (revision 20282)
26+++ ../trunk-jpl/src/m/coordsystems/gmtmask.m (revision 20283)
27@@ -30,7 +30,7 @@
28
29 %First, write our lat,long file for gmt:
30 nv=length(lat);
31- dlmwrite('./all_vertices.txt',[long lat (1:nv)'],'delimiter','\t');
32+ dlmwrite('./all_vertices.txt',[long lat (1:nv)'],'delimiter','\t','precision',10);
33
34 %Avoid bypassing of the ld library path by Matlab (:()
35 if ismac,
Note: See TracBrowser for help on using the repository browser.