Changeset 20283
- Timestamp:
- 03/01/16 20:18:15 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/coordsystems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/coordsystems/gmtmask.m
r20013 r20283 31 31 %First, write our lat,long file for gmt: 32 32 nv=length(lat); 33 dlmwrite('./all_vertices.txt',[long lat (1:nv)'],'delimiter','\t' );33 dlmwrite('./all_vertices.txt',[long lat (1:nv)'],'delimiter','\t','precision',10); 34 34 35 35 %Avoid bypassing of the ld library path by Matlab (:() -
issm/trunk-jpl/src/m/coordsystems/gmtmask.py
r20225 r20283 39 39 #First, write our lat,long file for gmt: 40 40 nv=lenlat 41 savetxt('./all_vertices.txt', [long, lat, arange(1,nv+1)],delimiter='\t')41 savetxt('./all_vertices.txt',transpose([long, lat, arange(1,nv+1)]),delimiter='\t',fmt='%.10f') 42 42 43 43 #Avoid bypassing of the ld library path by Matlab (:() … … 68 68 oce_vertices=[] 69 69 while line: 70 ind= str2num(line.split()[3])70 ind=int(float(line.split()[2]))-1; 71 71 oce_vertices.append(ind) 72 72 line=fid.readline()
Note:
See TracChangeset
for help on using the changeset viewer.