Ignore:
Timestamp:
Feb 1, 2013, 6:10:25 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. Corrected a bug in getdimfromvar so that it works quite in all the cases now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot.py

    r866 r871  
    228228          ### --> add a line here if your reference is not present
    229229          else:
    230               print "No altitude found. Try to build a simple axis." ; dadim = getdimfromvar(nc)
     230              dadim = getdimfromvar(nc) ; print "No altitude found. Try to build a simple axis.",dadim
    231231              if   len(dadim) == 4:  print "-- 4D field. Assume z is dim 2." ; vert = np.arange(dadim[-3])
    232232              elif len(dadim) == 3:  print "-- 3D field. Assume z is dim 1." ; vert = [0.]
Note: See TracChangeset for help on using the changeset viewer.