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
  • ../trunk-jpl/src/m/coordsystems/gmtmask.py

     
    3838       
    3939        #First, write our lat,long file for gmt:
    4040        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')
    4242
    4343        #Avoid bypassing of the ld library path by Matlab (:()
    4444        try:
     
    6767        line=fid.readline()
    6868        oce_vertices=[]
    6969        while line:
    70                 ind=str2num(line.split()[3])
     70                ind=int(float(line.split()[2]))-1;
    7171                oce_vertices.append(ind)
    7272                line=fid.readline()
    7373        fid.close()
  • ../trunk-jpl/src/m/coordsystems/gmtmask.m

     
    3030       
    3131        %First, write our lat,long file for gmt:
    3232        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);
    3434
    3535        %Avoid bypassing of the ld library path by Matlab (:()
    3636        if ismac,
Note: See TracBrowser for help on using the repository browser.