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

Last change on this file since 912 was 859, checked in by aslmd, 13 years ago

UTIL PYTHON MCDonline. Support for MCD5. Added eps figures. Various other informations added (diapo mode, text file with web arborescence).

  • Property svn:executable set to *
File size: 733 bytes
Line 
1#! /usr/bin/env python
2
3from mcd import mcd
4
5
6query = mcd()
7
8query.toversion5()
9query.loct = 12.
10
11query.update()
12query.printcoord()
13query.printmeanvar()
14query.printextvar(22)
15query.printallextvar()
16
17query.xz = 30000.
18query.printmcd()
19query.printextvar(94)
20query.printextvar(95)
21
22end
23
24query.viking1()
25query.xz = 1.
26query.xdate = 150.
27query.loct = 12.
28query.xdate = 90.
29
30import matplotlib.pyplot as mpl
31
32query.diurnal()
33query.plot1d(15)
34mpl.show()
35query.plot1d(["t","p","u","v"])
36mpl.show()
37
38query.latlon()
39query.map2d("tsurf")
40mpl.show()
41query.map2d(["ps","mtot","u","olr"])
42mpl.show()
43
44import myplot as cuisine
45
46figname = query.getnameset()+'.png'
47query.map2d("tsurf")
48mpl.savefig(figname,dpi=85,bbox_inches='tight',pad_inches=0.25)
Note: See TracBrowser for help on using the repository browser.