source:
issm/oecreview/Archive/19101-20495/ISSM-20282-20283.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 1.3 KB |
-
../trunk-jpl/src/m/coordsystems/gmtmask.py
38 38 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 (:() 44 44 try: … … 67 67 line=fid.readline() 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() 73 73 fid.close() -
../trunk-jpl/src/m/coordsystems/gmtmask.m
30 30 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 (:() 36 36 if ismac,
Note:
See TracBrowser
for help on using the repository browser.