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

Last change on this file since 1197 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
RevLine 
[639]1#! /usr/bin/env python
2
3from mcd import mcd
4
[859]5
[639]6query = mcd()
[859]7
[944]8#query.toversion5()
[859]9query.loct = 12.
10
[639]11query.update()
12query.printcoord()
13query.printmeanvar()
14query.printextvar(22)
15query.printallextvar()
16
17query.xz = 30000.
18query.printmcd()
[859]19query.printextvar(94)
20query.printextvar(95)
[639]21
[859]22
[639]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.