Changeset 793 for trunk/UTIL/PYTHON/mcd/gale.py
- Timestamp:
- Sep 21, 2012, 5:11:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/gale.py
r761 r793 1 1 #! /usr/bin/env python 2 3 #import sys 4 # 5 #class NullDevice(): 6 # def write(self, s): 7 # pass 8 # 9 #original_stdout = sys.stdout # keep a reference to STDOUT 10 # 11 #sys.stdout = NullDevice() # redirect the real STDOUT 12 #sys.stderr = NullDevice() # redirect the real STDOUT 2 13 3 14 from mcd import mcd … … 18 29 #gale.printextvar("rho") 19 30 20 #gale.seasonal() 21 #gale.plot1d(["tsurf","u","v"]) 31 gale.seasonal() 32 gale.plot1d(["tsurf","u","v"]) 33 34 import matplotlib.pyplot as mpl 35 mpl.savefig("temp.png",dpi=85,bbox_inches='tight',pad_inches=0.25) 36 22 37 23 38 #gale.xdate = 270. … … 25 40 #gale.plot1d(["u","v"]) 26 41 27 #gale.latlon()28 #gale.map2d("tsurf")42 gale.latlon() 43 gale.map2d("tsurf") 29 44 30 45 import matplotlib.pyplot as mpl 31 mpl.show() 46 #mpl.show() 47 mpl.savefig("img/temp.png",dpi=110,bbox_inches='tight',pad_inches=0.4)
Note: See TracChangeset
for help on using the changeset viewer.