Ignore:
Timestamp:
06/07/17 10:50:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: merged branch back to trunk-jpl 21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/coordsystems/gmtmask.py

    r21069 r21759  
    11from MatlabFuncs import *
    22from model import *
    3 from numpy import *
     3import numpy as np
    44from os import getenv, putenv
    55import subprocess
     
    1212#
    1313        lenlat=len(lat)
    14         mask=empty(lenlat)
     14        mask=np.empty(lenlat)
    1515       
    1616        #are we doing a recursive call?
     
    3838        #First, write our lat,long file for gmt:
    3939        nv=lenlat
    40         savetxt('./all_vertices.txt',transpose([long, lat, arange(1,nv+1)]),delimiter='\t',fmt='%.10f')
     40        np.savetxt('./all_vertices.txt',np.transpose([long, lat, np.arange(1,nv+1)]),delimiter='\t',fmt='%.10f')
    4141
    4242        #Avoid bypassing of the ld library path by Matlab (:()
     
    7272        fid.close()
    7373
    74         mask=zeros([nv,1])
     74        mask=np.zeros([nv,1])
    7575        mask[oce_vertices]=1
    7676       
Note: See TracChangeset for help on using the changeset viewer.