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

Last change on this file since 1074 was 944, checked in by aslmd, 12 years ago

associated changes to previous commit. additional readmes and fixes.

  • Property svn:executable set to *
File size: 730 bytes
Line 
1#! /usr/bin/env python
2
3from mcd import mcd
4
5
6query = mcd()
7
8#query.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
22
23query.viking1()
24query.xz = 1.
25query.xdate = 150.
26query.loct = 12.
27query.xdate = 90.
28
29import matplotlib.pyplot as mpl
30
31query.diurnal()
32query.plot1d(15)
33mpl.show()
34query.plot1d(["t","p","u","v"])
35mpl.show()
36
37query.latlon()
38query.map2d("tsurf")
39mpl.show()
40query.map2d(["ps","mtot","u","olr"])
41mpl.show()
42
43import myplot as cuisine
44
45figname = query.getnameset()+'.png'
46query.map2d("tsurf")
47mpl.savefig(figname,dpi=85,bbox_inches='tight',pad_inches=0.25)
Note: See TracBrowser for help on using the repository browser.