Changeset 1064 for trunk/UTIL


Ignore:
Timestamp:
Oct 11, 2013, 1:39:04 PM (11 years ago)
Author:
aslmd
Message:

PYTHON planetoplot. check sizes for contours.

File:
1 edited

Legend:

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

    r1062 r1064  
    643643            self.mapmode = False
    644644            print "!! WARNING !! dummy coordinates on y axis"
     645        # check sizes
     646        if self.addcontour is not None:
     647            if self.addcontour.ndim != 2:
     648                print "!! WARNING !! Contour is not a 2D field. No contour.",self.addcontour.ndim
     649                self.addcontour = None
     650        if self.field.ndim != 2:
     651            print "!! ERROR !! Field is not two-dimensional" ; exit()
    645652        # transposing if necessary
    646653        shape = self.f.shape
Note: See TracChangeset for help on using the changeset viewer.