source: trunk/UTIL/PYTHON/mcd/mcdtest.py @ 796

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
3from mcd import mcd
4
5query = mcd()
6query.update()
7query.printcoord()
8query.printmeanvar()
9query.printextvar(22)
10query.printallextvar()
11
12query.xz = 30000.
13query.printmcd()
14
15query.viking1()
16query.xz = 1.
17query.xdate = 150.
18query.loct = 12.
19query.xdate = 90.
20
21import matplotlib.pyplot as mpl
22
23query.diurnal()
24query.plot1d(15)
25mpl.show()
26query.plot1d(["t","p","u","v"])
27mpl.show()
28
29query.latlon()
30query.map2d("tsurf")
31mpl.show()
32query.map2d(["ps","mtot","u","olr"])
33mpl.show()
34
35import myplot as cuisine
36
37figname = query.getnameset()+'.png'
38query.map2d("tsurf")
39mpl.savefig(figname,dpi=85,bbox_inches='tight',pad_inches=0.25)
Note: See TracBrowser for help on using the repository browser.