Changeset 1178 for trunk/UTIL


Ignore:
Timestamp:
Feb 14, 2014, 2:47:35 PM (11 years ago)
Author:
tnavarro
Message:

bug with method comp for t and z-axis : last point was always discarded

File:
1 edited

Legend:

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

    r1170 r1178  
    15841584            start = np.argmin( np.abs( self.field_t - dalist[ind][0] ) )
    15851585            stop = np.argmin( np.abs( self.field_t - dalist[ind][1] ) )
    1586             self.index_t = np.arange(start,stop,self.st)
     1586            self.index_t = np.arange(start,stop+1,self.st)
    15871587            if self.verbose: print "**** OK. t values. comp over interval ",self.field_t[start],self.field_t[stop]," nvalues=",self.index_t.size
    15881588        elif self.method_t == "fixed":
     
    16081608            start = np.argmin( np.abs( self.field_z - dalist[ind][0] ) )
    16091609            stop = np.argmin( np.abs( self.field_z - dalist[ind][1] ) )
    1610             self.index_z = np.arange(start,stop,self.sz)
     1610            self.index_z = np.arange(start,stop+1,self.sz)
    16111611            if self.verbose: print "**** OK. z values. comp over interval",self.field_z[start],self.field_z[stop]," nvalues=",self.index_z.size
    16121612        elif self.method_z == "fixed":
Note: See TracChangeset for help on using the changeset viewer.