Changeset 1065 for trunk/UTIL


Ignore:
Timestamp:
Oct 14, 2013, 9:00:13 AM (11 years ago)
Author:
aslmd
Message:

planetoplot. bug fix consecutive to a change of attributes' names.

File:
1 edited

Legend:

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

    r1064 r1065  
    644644            print "!! WARNING !! dummy coordinates on y axis"
    645645        # 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:
     646        if self.c is not None:
     647            if self.c.ndim != 2:
     648                print "!! WARNING !! Contour is not a 2D field. No contour.",self.c.ndim
     649                self.c = None
     650        if self.f.ndim != 2:
    651651            print "!! ERROR !! Field is not two-dimensional" ; exit()
    652652        # transposing if necessary
Note: See TracChangeset for help on using the changeset viewer.