Changeset 1159 for trunk/UTIL


Ignore:
Timestamp:
Jan 15, 2014, 10:22:50 AM (11 years ago)
Author:
aslmd
Message:

planetoplot. corrected a /0 bug on steplon steplat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppplot.py

    r1131 r1159  
    758758            #mertab = np.r_[wlon[0]:wlon[1]:steplon] ; merlab = [0,0,0,1]
    759759            #partab = np.r_[wlat[0]:wlat[1]:steplat] ; parlab = [1,0,0,0]
     760            if steplon < 1: steplon = 1
     761            if steplat < 1: steplat = 1
    760762            if np.abs(wlon[0]) < 180.1 and np.abs(wlon[1]) < 180.1:
    761763                mertab = np.r_[-180.:180.:steplon]
     
    882884                   if x.ndim < 2 and y.ndim < 2: x,y = np.meshgrid(x,y)
    883885                # reference vector is scaled
    884                 if self.wscale is None: 
     886                if self.wscale is None:
    885887                    self.wscale = ppcompute.mean(np.sqrt(self.vx*self.vx+self.vy*self.vy))
    886888                # make vector field
Note: See TracChangeset for help on using the changeset viewer.