[20498] | 1 | Index: ../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()
|
---|
| 23 | Index: ../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,
|
---|