source: trunk/UTIL/PYTHON/planetoplot_v2/demo_data/meso_profile.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: 5.2 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
24I00
25sS'absc'
26p11
27cnumpy.core.multiarray
28_reconstruct
29p12
30(cnumpy
31ndarray
32p13
33(I0
34tp14
35g9
36tp15
37Rp16
38(I1
39(I44
40tp17
41cnumpy
42dtype
43p18
44(S'f4'
45p19
46I0
47I1
48tp20
49Rp21
50(I3
51S'<'
52p22
53NNNI-1
54I-1
55I0
56tp23
57bI00
58S'\x9a\x1c\x1c\xc0\xd1O\x1b\xc0B\x89\x19\xc0\x06x\x14\xc0\xbf\xbb\n\xc0*\x08\xf2\xbf\x03\x95\xb9\xbfc\x184\xbf9\xf5\x8e>\xf6\xbd\xa1?J\xec\x0f@\n\x04O@\x8b\x16\x87@\xdd\xba\xa6@\x8b}\xc6@Ek\xe6@\xa9D\x03A\xefj\x13A\x84\xa5#A\x1d\xf13A\tJDA\xc6\xadTA\xf8\x1beAV\x96uA~\x10\x83A\xd3`\x8bA6\xbf\x93A\xca.\x9cAU\xb2\xa4AWK\xadA\xd8\xf9\xb5A\xcf\xbd\xbeA\xd3\x98\xc7A\xbas\xd0A\x192\xd9AO\xd3\xe1Au[\xeaA\xb8\xcd\xf2A}.\xfbA\xb4\xc0\x01BT\xe5\x05BH\x05\nB\xa8\x1f\x0eB\x124\x12B'
59p24
60tp25
61bsS'xcoeff'
62p26
63F1.0
64sS'logx'
65p27
66I00
67sS'logy'
68p28
69I00
70sS'field'
71p29
72g12
73(g13
74(I0
75tp30
76g9
77tp31
78Rp32
79(I1
80(I44
81tp33
82g21
83I00
84S'Q\x93}C\x8c\xd5wC\xbeztC,\xb6pC\xe8\x14oC\xdb\x93nC\xe5\xe4oC\x93\x1arC\xd1\xfetC\xb3\xb1wC\x8d1zC\xd9\xd9|Cc\x98\x7fC&`\x81C#>\x83C\xf4B\x85C\xd7T\x87C\xffQ\x89CJ9\x8bCQ\x04\x8dC\xad\xb1\x8eC&U\x90Cv\xfe\x91C\x07\xc1\x93C\xca\xb3\x95C\xd0\xdc\x97Cp=\x9aCs\xd6\x9cC6\x9a\x9fC\x83d\xa2C  \xa5C\xb9\xdc\xa7C@\xc3\xaaC\x07\xcb\xadC\xc8\x1f\xb1C\x98\x07\xb5C\x01(\xb9C6\xc8\xbdC\xe2\xe4\xc2C4t\xc8C2\xac\xceC\r\xa2\xd4CJ\xe0\xdaC\xee\x0b\xe1C'
85p34
86tp35
87bsS'ycoeff'
88p36
89F1.0
90sS'xlabel'
91p37
92S'Potential temperature (K)'
93p38
94sS'swap'
95p39
96I01
97sS'ylabel'
98p40
99S'Geopotential height (km)'
100p41
101sS'var'
102p42
103S'T'
104p43
105sS'div'
106p44
107I20
108sS'axisbg'
109p45
110S'white'
111p46
112sS'marker'
113p47
114g7
115sS'lstyle'
116p48
117S'--'
118p49
119sba(ippplot
120plot1d
121p50
122(dp51
123g3
124I00
125sg4
126Nsg5
127I01
128sg6
129g7
130sg8
131g9
132sg10
133I00
134sg11
135g12
136(g13
137(I0
138tp52
139g9
140tp53
141Rp54
142(I1
143(I44
144tp55
145g21
146I00
147S'\x89%\x1c\xc0[s\x1b\xc0Q\xd8\x19\xc0\x17\x13\x15\xc0\xae\xbb\x0b\xc0q\t\xf5\xbf;\xd8\xbd\xbf\x0es?\xbf\xa0&g>\xe4f\x9a?\xb3H\x0c@!\x94K@&\x81\x85@\x9dD\xa5@\xdc\x0c\xc5@&\xd3\xe4@\x06K\x02A\x16+\x12AY\n"AP\xe91A\xe2\xc9AA\x9b\xafQA\xf5\x9daA\xc6\x98qA\xdb\xd2\x80A\x12\xe7\x88A\x18\x0f\x91A\x1cP\x99Ae\xad\xa1A\x0c*\xaaA\x93\xca\xb2Au\x94\xbbA\xcb\x8c\xc4A\x1e\x9b\xcdA\xcb\x9d\xd6A\xb2\x8c\xdfA\xa9e\xe8A\xf3\'\xf1A\x9d\xd3\xf9AN4\x01B\xa0s\x05B\xee\xa7\tB\x19\xd4\rBY\x00\x12B'
148p56
149tp57
150bsg26
151F1.0
152sg27
153I00
154sg28
155I00
156sg29
157g12
158(g13
159(I0
160tp58
161g9
162tp59
163Rp60
164(I1
165(I44
166tp61
167g21
168I00
169S"\x0b\xd7OC\x00\xe6XC\x8c@]CfAbC\x12\xa4dCv\x1bfC\xc7\xc2hC\x86\xb3lC$\xebpC\xfb\xbftC\xaa'xCr#{C\xf2\x02~C\x80^\x80C\xdf\x94\x81C\xba\xbd\x82C\x0f\xe9\x83C\x03\x17\x85CAL\x86C/\x83\x87C\x7f\xd9\x88C\xf5K\x8aC\xb6\xdc\x8bC\x99\x90\x8dC\xd3\x83\x8fC\xe1\xdd\x91C\xc8\xa7\x94CB\xb9\x97C'\xf6\x9aCct\x9eCxQ\xa2C\xa5\x8d\xa6Cd\x13\xabC\x8a|\xafC\x83\xce\xb3C\xc5\x00\xb8C\t\x1f\xbcC<T\xc0C\xbd\x8f\xc4C\x90\xd7\xc8C(1\xcdC\xbe\x98\xd1C\xc8*\xd7C2\x04\xdfC"
170p62
171tp63
172bsg36
173F1.0
174sg37
175g38
176sg39
177I01
178sg40
179g41
180sg42
181g43
182sg44
183I20
184sg45
185g46
186sg47
187g7
188sg48
189Nsba(ippplot
190plot1d
191p64
192(dp65
193g3
194I00
195sg4
196Nsg5
197I01
198sg6
199g7
200sg8
201g9
202sg10
203I00
204sg11
205g12
206(g13
207(I0
208tp66
209g9
210tp67
211Rp68
212(I1
213(I44
214tp69
215g21
216I00
217S'+(\x1c\xc0\x8c\x81\x1b\xc0\xd7\x01\x1a\xc0\xdd\x92\x15\xc0g\xdf\x0c\xc0;e\xf9\xbf\xdc_\xc5\xbfUJY\xbf\xb6\xf5\x93=\xa9\xc8\x80?\xd3\xa6\xf9?=\xba9@*\xf5v@s;\x9a@9\x1b\xb9@q\x11\xd8@\xe5\x15\xf7@\xaa\x11\x0bA\\\x9d\x1aA\xe00*A\xe0\xd29Aw\x92IA\xe3\x88YA\xe7\xd3iA$\x88zA\xe0\xd3\x85A\xcc\x92\x8eA\x03x\x97A\x83|\xa0A9\x9c\xa9A\xd3\xd5\xb2A\x1b*\xbcAu\x9b\xc5AZ\x0f\xcfA/c\xd8A\x0e\x92\xe1AF\x9c\xeaA/\x80\xf3A\x0c@\xfcA\xeep\x02Bl\xb6\x06B\xfc\xf5\nB\x056\x0fB\xdav\x13B'
218p70
219tp71
220bsg26
221F1.0
222sg27
223I00
224sg28
225I00
226sg29
227g12
228(g13
229(I0
230tp72
231g9
232tp73
233Rp74
234(I1
235(I44
236tp75
237g21
238I00
239S'\x02\x08BC\xfchIC\x07UMC\xd0\xd3PC @TC\x0e\xb0WC\xe1-ZC\xaf\xf1]C6bcC\xc2\x86hC\xc6\xeclC\x08\xacpC}\x13tC\x87zwC\xad\xa7zC\xa9\x91}C\xab \x80C\xeem\x81C\xb6\xd1\x82CVQ\x84C\xed(\x86C\xa8\xb2\x88CNK\x8cC\xc9\xe6\x90C\xae\xf0\x95C`\xb8\x9aC@\xe1\x9eC%t\xa2Ck\xa1\xa5Cy\x98\xa8C\xdf\x84\xabCt\x7f\xaeC\xc6\xa2\xb1C.\x93\xb4C>m\xb7C\xaf~\xbaC\xe6V\xbdC:\x13\xc0C\x7f7\xc3CX\xea\xc6C>Q\xcbCZ\x10\xd1C\xe3\xed\xd7C\xf0\xd6\xddC'
240p76
241tp77
242bsg36
243F1.0
244sg37
245g38
246sg39
247I01
248sg40
249g41
250sg42
251g43
252sg44
253I20
254sg45
255g46
256sg47
257g7
258sg48
259Nsba(ippplot
260plot1d
261p78
262(dp79
263g3
264I00
265sg4
266Nsg5
267I01
268sg6
269g7
270sg8
271g9
272sg10
273I00
274sg11
275g12
276(g13
277(I0
278tp80
279g9
280tp81
281Rp82
282(I1
283(I44
284tp83
285g21
286I00
287S"9%\x1c\xc0mx\x1b\xc0\xb2\xf4\x19\xc0\x02\x92\x15\xc0*\x10\r\xc0\xf8\xcb\xfa\xbf\xb0\x89\xc8\xbf\xfe\x19e\xbf\xa0.!;'\xafj?f\xec\xeb?\x98\xe11@\x81^n@d\xaf\x95@|j\xb4@H^\xd3@t\x92\xf2@\xb9\n\tA\xad\xfb\x18A\x0c$)A\xc4\x879AQ#JAE\xecZA\xc8\xd5kA\xe3\xd6|A\xdb\xf6\x86Ah\x8f\x8fAp9\x98Ax\xf9\xa0A\xbb\xd2\xa9A\xe2\xc6\xb2Ad\xd7\xbbA\r\x08\xc5A$D\xceA\x89s\xd7A\xc9\x99\xe0A#\xb9\xe9AP\xcc\xf2A\xe5\xcc\xfbA&[\x02B\xcd\xc4\x06B1&\x0bB\n\x80\x0fB?\xcd\x13B"
288p84
289tp85
290bsg26
291F1.0
292sg27
293I00
294sg28
295I00
296sg29
297g12
298(g13
299(I0
300tp86
301g9
302tp87
303Rp88
304(I1
305(I44
306tp89
307g21
308I00
309S';\xe9OC\x19GNC\xa1\xa5MC\xc7hMC\x04/NC\xc5\x15PC\xf3jRC+\x17WC\xf8\x08^C)\x90cC\xb0ShC\x11\xdelCJIqC8\x7fuC\x11\x96yC\xd4\xbc}C\xa65\x81C\xeb\xcd\x83C\x10\xb7\x86CY\xe0\x89C\xa5\x16\x8dCl\x0c\x90C^\x95\x92C\xd0\xb2\x94Cw\xa2\x96C\x16\x9e\x98C0\xda\x9aC\xe7h\x9dC\x07;\xa0C\xd7-\xa3C"(\xa6C\xd67\xa9Cs\x9f\xacC\xa5o\xb0C\x06\x1b\xb5C>\x80\xbaC\xe3\xad\xbfCTc\xc4C\xa0\x9e\xc8C\x11\x97\xccC\x02\x05\xd1C?\xf8\xd5Cp\x95\xdaC\xb3d\xddC'
310p90
311tp91
312bsg36
313F1.0
314sg37
315g38
316sg39
317I01
318sg40
319g41
320sg42
321g43
322sg44
323I20
324sg45
325g46
326sg47
327g7
328sg48
329Nsba.
Note: See TracBrowser for help on using the repository browser.