Last change
on this file since 943 was
943,
checked in by aslmd, 12 years ago
|
clean and organized UTIL/PYTHON folder
|
-
Property svn:executable set to
*
|
File size:
825 bytes
|
Rev | Line | |
---|
[761] | 1 | #! /usr/bin/env python |
---|
| 2 | |
---|
[793] | 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 |
---|
| 13 | |
---|
[761] | 14 | from mcd import mcd |
---|
| 15 | |
---|
| 16 | gale = mcd() |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | gale.lat = -4.6 |
---|
| 20 | gale.lon = 137.4 |
---|
| 21 | gale.loct = 15. |
---|
| 22 | gale.xz = 1. |
---|
| 23 | |
---|
| 24 | gale.xdate = 150.6 |
---|
| 25 | |
---|
| 26 | gale.update() |
---|
| 27 | gale.printmcd() |
---|
| 28 | gale.printallextvar() |
---|
| 29 | #gale.printextvar("rho") |
---|
| 30 | |
---|
[793] | 31 | gale.seasonal() |
---|
| 32 | gale.plot1d(["tsurf","u","v"]) |
---|
[761] | 33 | |
---|
[793] | 34 | import matplotlib.pyplot as mpl |
---|
| 35 | mpl.savefig("temp.png",dpi=85,bbox_inches='tight',pad_inches=0.25) |
---|
| 36 | |
---|
| 37 | |
---|
[761] | 38 | #gale.xdate = 270. |
---|
| 39 | #gale.diurnal() |
---|
| 40 | #gale.plot1d(["u","v"]) |
---|
| 41 | |
---|
[793] | 42 | gale.latlon() |
---|
| 43 | gale.map2d("tsurf") |
---|
[761] | 44 | |
---|
| 45 | import matplotlib.pyplot as mpl |
---|
[793] | 46 | #mpl.show() |
---|
[796] | 47 | mpl.savefig("temp.png",dpi=110,bbox_inches='tight',pad_inches=0.4) |
---|
Note: See
TracBrowser
for help on using the repository browser.