Last change
on this file since 1050 was
1050,
checked in by aslmd, 11 years ago
|
UTIL PYTHON planetoplot_v2
RENAMED VARIABLES TO BE SIMPLER or COMPLIANT WITH MATPLOTLIB
colorb >> colorbar
lstyle >> linestyle
label >> legend
stridevecx >> svx
stridevecy >> svy
stridex >> sx
stridey >> sy
stridez >> sz
stridet >> st
(in ppplot only)
field >> f
absc >> x
ordi >> y
addvecx >> vx
addvecy >> vy
addontour >> c
ALSO added (same reason of compatibility)
- the possibility to call ppplot.show() as in matplotlib
- a shortcut method for a ppplot object: the so-called .makeshow()
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | from ppclass import pp |
---|
3 | |
---|
4 | ## AVERAGED PROFILE |
---|
5 | temp = pp() |
---|
6 | temp.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
---|
7 | temp.var = "temp" |
---|
8 | temp.x = "-180,175" |
---|
9 | temp.y = "-90,90" |
---|
10 | temp.t = "0,1" |
---|
11 | temp.get() |
---|
12 | temp.defineplot() |
---|
13 | temp.p[0].title = "This is an averaged temperature profile" |
---|
14 | temp.makeplot() |
---|
15 | |
---|
16 | ## ZONAL MEAN |
---|
17 | u = pp() |
---|
18 | u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
---|
19 | u.var = "u" |
---|
20 | u.x = "-180,175" |
---|
21 | u.y = None |
---|
22 | u.t = "0.5" |
---|
23 | u.filename = "zonalmean" |
---|
24 | u.get() |
---|
25 | u.defineplot() |
---|
26 | u.p[0].div = 30. |
---|
27 | u.p[0].colorbar = "RdBu_r" |
---|
28 | u.p[0].title = "This is a zonal mean" |
---|
29 | u.makeplot() |
---|
30 | |
---|
31 | ## ZONAL MINIMUM |
---|
32 | u.compute = "min" |
---|
33 | u.filename = "zonalmin" |
---|
34 | u.get() |
---|
35 | u.defineplot() |
---|
36 | u.p[0].div = 30. |
---|
37 | u.p[0].colorbar = "cool" |
---|
38 | u.p[0].title = "This is minimum over zonal axis" |
---|
39 | u.makeplot() |
---|
40 | |
---|
41 | ## ZONAL MAXIMUM |
---|
42 | u.compute = "max" |
---|
43 | u.filename = "myplot" |
---|
44 | u.get() |
---|
45 | u.defineplot() |
---|
46 | u.p[0].div = 30. |
---|
47 | u.p[0].colorbar = "hot" |
---|
48 | u.p[0].title = "This is maximum over zonal axis" |
---|
49 | u.makeplot() |
---|
50 | |
---|
51 | ## MAP OF MAXIMUM OVER TIME |
---|
52 | u.compute = "max" |
---|
53 | u.x = None |
---|
54 | u.y = None |
---|
55 | u.t = "0,1" |
---|
56 | u.z = 20000. |
---|
57 | u.get() |
---|
58 | u.defineplot() |
---|
59 | u.p[0].div = 30. |
---|
60 | u.p[0].title = "This is maximum over time" |
---|
61 | u.makeplot() |
---|
Note: See
TracBrowser
for help on using the repository browser.