- Timestamp:
- Mar 14, 2012, 5:43:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r581 r583 40 40 a=-1 41 41 for i in range(len(time)-1): 42 if time[i] > time[i+1]: a=i43 if a >= 0 :42 if (time[i] > time[i+1]): a=i 43 if a >= 0 and a < (len(time)-1)/2.: 44 44 print "Sorry, time axis is not regular." 45 45 print "Contourf needs regular axis... recasting" 46 46 for i in range(a+1): 47 47 time[i]=time[i]-24. 48 if a >= 0 and a >= (len(time)-1)/2.: 49 print "Sorry, time axis is not regular." 50 print "Contourf needs regular axis... recasting" 51 for i in range((len(time)-1) - a): 52 time[a+1+i]=time[a+1+i]+24. 48 53 return time 49 54
Note: See TracChangeset
for help on using the changeset viewer.