Last change
on this file since 796 was
639,
checked in by aslmd, 13 years ago
|
UTIL PYTHON : Interfacing MCD with python. (Also a toy web server in proto; for the moment, do not use nor modify).
|
-
Property svn:executable set to
*
|
File size:
645 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | from mcd import mcd |
---|
4 | |
---|
5 | query = mcd() |
---|
6 | query.update() |
---|
7 | query.printcoord() |
---|
8 | query.printmeanvar() |
---|
9 | query.printextvar(22) |
---|
10 | query.printallextvar() |
---|
11 | |
---|
12 | query.xz = 30000. |
---|
13 | query.printmcd() |
---|
14 | |
---|
15 | query.viking1() |
---|
16 | query.xz = 1. |
---|
17 | query.xdate = 150. |
---|
18 | query.loct = 12. |
---|
19 | query.xdate = 90. |
---|
20 | |
---|
21 | import matplotlib.pyplot as mpl |
---|
22 | |
---|
23 | query.diurnal() |
---|
24 | query.plot1d(15) |
---|
25 | mpl.show() |
---|
26 | query.plot1d(["t","p","u","v"]) |
---|
27 | mpl.show() |
---|
28 | |
---|
29 | query.latlon() |
---|
30 | query.map2d("tsurf") |
---|
31 | mpl.show() |
---|
32 | query.map2d(["ps","mtot","u","olr"]) |
---|
33 | mpl.show() |
---|
34 | |
---|
35 | import myplot as cuisine |
---|
36 | |
---|
37 | figname = query.getnameset()+'.png' |
---|
38 | query.map2d("tsurf") |
---|
39 | mpl.savefig(figname,dpi=85,bbox_inches='tight',pad_inches=0.25) |
---|
Note: See
TracBrowser
for help on using the repository browser.