source: trunk/UTIL/PYTHON/planetoplot_v2/demo_data/vertpress.ppobj @ 910

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

PLANETOPLOT v2


  1. Spiga LMD/UPMC 24/03/2013

Contents


core


  • ppclass.py --> main class with pp() objects (need ppplot and ppcompute)
  • ppplot.py --> plot class (can be used independently, need ppcompute)
  • ppcompute.py --> computation class (can be used independently)

scripts


  • pp.py --> command line utility to use ppclass
  • pp_reload.py --> command line utility to load saved plot objects *.ppobj
  • example/* --> example scripts using ppclass

settings files


  • set_area.txt --> setting file: predefined areas for plotting (can be omitted)
  • set_back.txt --> setting file: predefined backgrounds for plotting (can be omitted)
  • set_multiplot.txt --> setting file: predefined coefficients for multiplots (can be omitted)
  • set_ppclass.txt --> setting file: predefined variables for x,y,z,t (can be omitted)
  • set_var.txt --> setting file: predefined colorbars, format, labels, etc... for variables (can be omitted)

documentation


  • README.TXT --> this README file

data


  • demo_data/* --> plot objects for a demonstration tour and customizing tests

Requirements


python + numpy + matplotlib + netCDF4

  • for mapping --> Basemap
  • for scientific computations --> scipy

[recommended: Enthought Python Distribution (free for academics)]

Installation


  • install required softwares and librairies in requirements
  • add planetoplot_v2 in your PYTHONPATH environment variable (and in your PATH to use pp.py)

Take a demo tour


pp_reload.py demo_data/*

Improvements compared to v1


  • code readability and structuration for future improvements
  • modularity (class formulation) + easy definition/addition of attributes
  • separation between data retrieval and plotting
  • versatility + command line (pp.py)

--> for quick inspection

+ interactive session (ipython)

--> for testing and exploring

+ scripts

--> for powerful and fully customized results

  • performance (overall and on large files) + memory consumption (only retrieve what is needed)
  • saving/loading plot objects in/from *.ppobj
  • plot aesthetics and customizing (see header in ppplot)
  • multiplot flexibility with .plotin attribute
  • easy definition of presets with set_*.txt files
  • function: one field vs. another one
  • emulation of + - / * operations on fields (between two fields or between a field and a int/float)
  • computations of min/max in addition to mean
  • simple inspection of dimensions+variables in a file (pp.py -f file)
  • verbose / non verbose mode

Acknowledgements


Thanks to A. Colaitis, T. Navarro, J. Leconte
for feedbacks and contributions on version 1

File size: 4.9 KB
Line 
1(lp0
2(ippplot
3plot1d
4p1
5(dp2
6S'swaplab'
7p3
8I00
9sS'ordi'
10p4
11NsS'superpose'
12p5
13I01
14sS'title'
15p6
16S''
17p7
18sS'color'
19p8
20S'b'
21p9
22sS'invert'
23p10
24I01
25sS'absc'
26p11
27cnumpy.core.multiarray
28_reconstruct
29p12
30(cnumpy
31ndarray
32p13
33(I0
34tp14
35g9
36tp15
37Rp16
38(I1
39(I100
40tp17
41cnumpy
42dtype
43p18
44(S'f4'
45p19
46I0
47I1
48tp20
49Rp21
50(I3
51S'<'
52p22
53NNNI-1
54I-1
55I0
56tp23
57bI00
58S'\x00\x00\xc8B&\xf3\xadB\xecJ\x97B.\x96\x83B\x0c\xe5dB\xb9\x14GB\x84&-B\xf1\x98\x16Bb\xfb\x02B\xc7\xd7\xe3A\x86*\xc6A\xd2Z\xacA\xc8\xe7\x95ALa\x82A\xbe\xcbbAgAEA\x11\x90+Ao7\x15A\xeb\xc7\x01A\xf0\xc0\xe1@ZY\xc4@>\xc6\xaa@\xe5\x87\x94@?/\x81@^\xb7`@^rC@X\xfd)@*\xd9\x13@F\x97\x00@\x03\xaf\xdf?r\x8c\xc2?^5\xa9?=+\x93?\x00\x00\x80?\xdf\xa7^?\x94\xa7A?Pn(?\x1c~\x12?\xd8\xd2\xfe>\xf0\xa1\xdd>\xc4\xc3\xc0>,\xa8\xa7>\xc7\xd1\x91>\x12\xa7}>7\x9d\\>\x00\xe1?>\xf1\xe2&><&\x11>\xad|\xfc=\xaf\x99\xdb=G\xff\xbe=\x9e\x1e\xa6={{\x90=\xa6S{=X\x97Z=\x96\x1e>=2[%=\x84\xd1\x0f=\xfe+\xfa<2\x96\xd9<\xee>\xbd<\xac\x98\xa4<T(\x8f<\xb0\x05y<:\x96X<N`<<\n\xd7#<\xeb\x7f\x0e<\xbf\xe0\xf7;p\x97\xd7;\xb3\x82\xbb;M\x16\xa3;H\xd8\x8d;%\xbdv;\xd1\x99V;\x1d\xa6:;rV";k1\r;\xe1\x9a\xf5:]\x9d\xd5:\x8a\xca\xb9:y\x97\xa1:Q\x8b\x8c:\xf3yt:\x12\xa2T:\xfa\xef8:a\xd9 :\xfc\xe5\x0b:ZZ\xf39\xee\xa7\xd39k\x16\xb89(\x1c\xa09hA\x8b9\x13<r9\xf0\xaeR9\xdb=79\xcd_\x1f9\x96\x9d\n9\x1b\x1f\xf18\x17\xb7\xd18'
59p24
60tp25
61bsS'xcoeff'
62p26
63F1.0
64sS'logx'
65p27
66I00
67sS'logy'
68p28
69I01
70sS'field'
71p29
72g12
73(g13
74(I0
75tp30
76g9
77tp31
78Rp32
79(I1
80(I100
81tp33
82g21
83I00
84S'\xf9\x0f?C\xe8\xf2=C\xa4\x9b<C\xf2\x85:C\xcd\xfa7C\x8e\xd56C?\xb75C\xff\xda3C1h1C\xc4>/C\x16@.C\x16\xd0,C\x9a\xc2*C\xd7+(C\xbb\xb6&C\xa1\x9f&C\x95\x01&C$\x8f$C\x9e\x94"C\xf5q!C\xbfi!C\x02\xd4 C\x86l\x1fC\xf4}\x1dC\xa8\xf5\x1bC5\xb2\x1bCN\xb9\x1aC\r\x19\x19C$&\x17C\xa2\x08\x16C\x87\xc9\x15CCG\x15Cu\t\x14CDR\x12C\x9b\x9f\x11COo\x12CQ\xb2\x12CN\x13\x12C\x86&\x11CD\xa8\x11C\xeb\xe7\x13C\xb3\xd7\x15CN\xbd\x16Cf@\x17C\xad\xd8\x18C\xf7\xf9\x1bC\xd6E\x1fCj\x8d!C\x18\x83"C\x13\x1b"C"X Cg}\x1dC\xf3\xf7\x19C_C\x16C\x8f\x01\x13C$\xa4\x10C\x80\xf6\x0eCK]\rC\xf0o\x0bC\xe8C\tC\x1b+\x07C%9\x05C\x882\x03Cs\xe8\x00C\x7f\xf5\xfcB\x867\xf8B\x85\xad\xf3B\xa3)\xefB\xf0\x80\xeaB/\xb7\xe5B\x18\xf8\xe0B\xe4c\xdcB\x12\xd8\xd7B\x8cI\xd3B\xac\x0c\xcfB\xcf\x89\xcbB\\\xf9\xc8B\xc6A\xc7B\t\xd8\xc5B\xfe,\xc4B\xe4E\xc2B\xce+\xc0B>\xe4\xbdBNf\xbbBk9\xb9B\xcd4\xb8B;\xa4\xb8B3\x95\xbaB\x95\xcb\xbdB\xf4\xf5\xc1B \xb8\xc7B\xadq\xcfB*!\xdaB7\xb9\xe4BC\xc5\xeeB\xae#\xf8Bs\xa8\x00C\xbc?\x04C\xc7\xfb\x06C\xecg\x08C'
85p34
86tp35
87bsS'ycoeff'
88p36
89F1.0
90sS'xlabel'
91p37
92S'Temperature (K)'
93p38
94sS'swap'
95p39
96I01
97sS'ylabel'
98p40
99S'Pressure (Pa)'
100p41
101sS'var'
102p42
103S'tk'
104p43
105sS'div'
106p44
107I20
108sS'axisbg'
109p45
110S'white'
111p46
112sS'marker'
113p47
114S'x'
115p48
116sS'lstyle'
117p49
118S'-'
119p50
120sba(ippplot
121plot1d
122p51
123(dp52
124g3
125I00
126sg4
127Nsg5
128I01
129sg6
130g7
131sg8
132g9
133sg10
134I00
135sg11
136g12
137(g13
138(I0
139tp53
140g9
141tp54
142Rp55
143(I1
144(I100
145tp56
146g21
147I00
148S'\x00\x00\xc8B&\xf3\xadB\xecJ\x97B.\x96\x83B\x0c\xe5dB\xb9\x14GB\x84&-B\xf1\x98\x16Bb\xfb\x02B\xc7\xd7\xe3A\x86*\xc6A\xd2Z\xacA\xc8\xe7\x95ALa\x82A\xbe\xcbbAgAEA\x11\x90+Ao7\x15A\xeb\xc7\x01A\xf0\xc0\xe1@ZY\xc4@>\xc6\xaa@\xe5\x87\x94@?/\x81@^\xb7`@^rC@X\xfd)@*\xd9\x13@F\x97\x00@\x03\xaf\xdf?r\x8c\xc2?^5\xa9?=+\x93?\x00\x00\x80?\xdf\xa7^?\x94\xa7A?Pn(?\x1c~\x12?\xd8\xd2\xfe>\xf0\xa1\xdd>\xc4\xc3\xc0>,\xa8\xa7>\xc7\xd1\x91>\x12\xa7}>7\x9d\\>\x00\xe1?>\xf1\xe2&><&\x11>\xad|\xfc=\xaf\x99\xdb=G\xff\xbe=\x9e\x1e\xa6={{\x90=\xa6S{=X\x97Z=\x96\x1e>=2[%=\x84\xd1\x0f=\xfe+\xfa<2\x96\xd9<\xee>\xbd<\xac\x98\xa4<T(\x8f<\xb0\x05y<:\x96X<N`<<\n\xd7#<\xeb\x7f\x0e<\xbf\xe0\xf7;p\x97\xd7;\xb3\x82\xbb;M\x16\xa3;H\xd8\x8d;%\xbdv;\xd1\x99V;\x1d\xa6:;rV";k1\r;\xe1\x9a\xf5:]\x9d\xd5:\x8a\xca\xb9:y\x97\xa1:Q\x8b\x8c:\xf3yt:\x12\xa2T:\xfa\xef8:a\xd9 :\xfc\xe5\x0b:ZZ\xf39\xee\xa7\xd39k\x16\xb89(\x1c\xa09hA\x8b9\x13<r9\xf0\xaeR9\xdb=79\xcd_\x1f9\x96\x9d\n9\x1b\x1f\xf18\x17\xb7\xd18'
149p57
150tp58
151bsg26
152F1.0
153sg27
154I00
155sg28
156I00
157sg29
158g12
159(g13
160(I0
161tp59
162g9
163tp60
164Rp61
165(I1
166(I100
167tp62
168g21
169I00
170S'\xa2\xe9>C\x16\xc7=C\x06o<Cte:C\xbd\x148C\xfc\xf96C\xfb\xd05C\xdd\xf23C2\x951C\x01\xac/C\xde\xa0.C\xb6\x1a-Cx\xfe*C\x8d\x8c(C4K\'Cp\xfd&C\x81(&C\x86\x8e$C\xba\x87"C\x9bH!C\xfc\xe6 C\x8d" C \xa1\x1eC\x1b\xa1\x1cC\xa2\xd7\x1aC\x8b\x17\x1aC0(\x19C\xa3\xa4\x17C\x1d\xad\x15Cn$\x14C\x18|\x13C\xa6\x1a\x13C\xd1>\x12C\x14\xc8\x10C\xe5\xd5\x0fCo^\x10C\xb4%\x11C14\x11C\x01\xfc\x10C\x90=\x12C\xeeA\x15C\xf6\xe6\x17CC\xcf\x19C\'9\x1cC\xc6\xd9\x1fC\xeb\x9a#C\xf5\x1f&CJ\x0e\'C\xfe\x84&C\x06\xb4$C:\xe0!Czp\x1eC\xa1\xe7\x1aC\xe5\xba\x17C\x8e\x19\x15C\xa1\xdc\x12C]\xb7\x10C\x02v\x0eC\x97\n\x0cC\xf9\x84\tC\xd8\xf8\x06C\x10m\x04C\\\xda\x01C\xacw\xfeB\xb9*\xf9B,\xe0\xf3B\xb8\xa8\xeeBY\x8c\xe9B\xb8\x89\xe4B\xf9\x99\xdfB\xb7\xb6\xdaBW\xe2\xd5B\x19$\xd1B\x07\x8a\xccB\t&\xc8BN\r\xc4B8W\xc0B\xe5,\xbdBR\xaf\xbaB\xaa\xc6\xb8B\xe9W\xb7B\x86<\xb6B\xa1H\xb5B\x9fs\xb4B3\x0c\xb5BY\xb7\xbaB\xed\xfe\xc7B\xad\xaa\xdeBD\xd3\xf0B\x0f\t\xf1B\x99n\xe9BT\x98\xe1B\xfa\x0f\xdfB\x82\xff\xdfB\xb9n\xe2B\x81^\xe5B\x0c%\xecB\xa7\x84\xf4B\xbeD\xfdBk\xc8\x01C'
171p63
172tp64
173bsg36
174F1.0
175sg37
176g38
177sg39
178I01
179sg40
180g41
181sg42
182g43
183sg44
184I20
185sg45
186g46
187sg47
188g48
189sg49
190Nsba.
Note: See TracBrowser for help on using the repository browser.