Ignore:
Timestamp:
Apr 19, 2013, 4:19:20 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. units: set an additional column set_var.txt and put units over colorbar. 1D bounding and formatting. possible mode nothing. corrected bug coast/sea.

File:
1 edited

Legend:

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

    r932 r933  
    13651365        # waiting for more fundamental modifications. case when self.index_y is a bool array.
    13661366        # ... be careful if no point...
    1367         if type(self.index_x[0]) == np.bool_: nx = np.sum(self.index_x) ## gives the size of the True part!
    1368         if type(self.index_y[0]) == np.bool_: ny = np.sum(self.index_y) ## gives the size of the True part!
     1367        try:
     1368            if type(self.index_x[0]) == np.bool_: nx = np.sum(self.index_x) ## gives the size of the True part!
     1369            if type(self.index_y[0]) == np.bool_: ny = np.sum(self.index_y) ## gives the size of the True part!
     1370        except:
     1371            pass
    13691372        # NB: ... always 4D array but possibly with "size 1" dimensions
    13701373        #     ... if one dimension is missing because 1D 2D or 3D requests, make it appear again
Note: See TracChangeset for help on using the changeset viewer.