Last change
on this file since 910 was
910,
checked in by aslmd, 12 years ago
|
PLANETOPLOT v2
- 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 |
---|
3 | plot1d |
---|
4 | p1 |
---|
5 | (dp2 |
---|
6 | S'swaplab' |
---|
7 | p3 |
---|
8 | I00 |
---|
9 | sS'ordi' |
---|
10 | p4 |
---|
11 | NsS'superpose' |
---|
12 | p5 |
---|
13 | I01 |
---|
14 | sS'title' |
---|
15 | p6 |
---|
16 | S'' |
---|
17 | p7 |
---|
18 | sS'color' |
---|
19 | p8 |
---|
20 | S'b' |
---|
21 | p9 |
---|
22 | sS'invert' |
---|
23 | p10 |
---|
24 | I00 |
---|
25 | sS'absc' |
---|
26 | p11 |
---|
27 | cnumpy.core.multiarray |
---|
28 | _reconstruct |
---|
29 | p12 |
---|
30 | (cnumpy |
---|
31 | ndarray |
---|
32 | p13 |
---|
33 | (I0 |
---|
34 | tp14 |
---|
35 | g9 |
---|
36 | tp15 |
---|
37 | Rp16 |
---|
38 | (I1 |
---|
39 | (I44 |
---|
40 | tp17 |
---|
41 | cnumpy |
---|
42 | dtype |
---|
43 | p18 |
---|
44 | (S'f4' |
---|
45 | p19 |
---|
46 | I0 |
---|
47 | I1 |
---|
48 | tp20 |
---|
49 | Rp21 |
---|
50 | (I3 |
---|
51 | S'<' |
---|
52 | p22 |
---|
53 | NNNI-1 |
---|
54 | I-1 |
---|
55 | I0 |
---|
56 | tp23 |
---|
57 | bI00 |
---|
58 | S'\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' |
---|
59 | p24 |
---|
60 | tp25 |
---|
61 | bsS'xcoeff' |
---|
62 | p26 |
---|
63 | F1.0 |
---|
64 | sS'logx' |
---|
65 | p27 |
---|
66 | I00 |
---|
67 | sS'logy' |
---|
68 | p28 |
---|
69 | I00 |
---|
70 | sS'field' |
---|
71 | p29 |
---|
72 | g12 |
---|
73 | (g13 |
---|
74 | (I0 |
---|
75 | tp30 |
---|
76 | g9 |
---|
77 | tp31 |
---|
78 | Rp32 |
---|
79 | (I1 |
---|
80 | (I44 |
---|
81 | tp33 |
---|
82 | g21 |
---|
83 | I00 |
---|
84 | S'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' |
---|
85 | p34 |
---|
86 | tp35 |
---|
87 | bsS'ycoeff' |
---|
88 | p36 |
---|
89 | F1.0 |
---|
90 | sS'xlabel' |
---|
91 | p37 |
---|
92 | S'Potential temperature (K)' |
---|
93 | p38 |
---|
94 | sS'swap' |
---|
95 | p39 |
---|
96 | I01 |
---|
97 | sS'ylabel' |
---|
98 | p40 |
---|
99 | S'Geopotential height (km)' |
---|
100 | p41 |
---|
101 | sS'var' |
---|
102 | p42 |
---|
103 | S'T' |
---|
104 | p43 |
---|
105 | sS'div' |
---|
106 | p44 |
---|
107 | I20 |
---|
108 | sS'axisbg' |
---|
109 | p45 |
---|
110 | S'white' |
---|
111 | p46 |
---|
112 | sS'marker' |
---|
113 | p47 |
---|
114 | g7 |
---|
115 | sS'lstyle' |
---|
116 | p48 |
---|
117 | S'--' |
---|
118 | p49 |
---|
119 | sba(ippplot |
---|
120 | plot1d |
---|
121 | p50 |
---|
122 | (dp51 |
---|
123 | g3 |
---|
124 | I00 |
---|
125 | sg4 |
---|
126 | Nsg5 |
---|
127 | I01 |
---|
128 | sg6 |
---|
129 | g7 |
---|
130 | sg8 |
---|
131 | g9 |
---|
132 | sg10 |
---|
133 | I00 |
---|
134 | sg11 |
---|
135 | g12 |
---|
136 | (g13 |
---|
137 | (I0 |
---|
138 | tp52 |
---|
139 | g9 |
---|
140 | tp53 |
---|
141 | Rp54 |
---|
142 | (I1 |
---|
143 | (I44 |
---|
144 | tp55 |
---|
145 | g21 |
---|
146 | I00 |
---|
147 | S'\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' |
---|
148 | p56 |
---|
149 | tp57 |
---|
150 | bsg26 |
---|
151 | F1.0 |
---|
152 | sg27 |
---|
153 | I00 |
---|
154 | sg28 |
---|
155 | I00 |
---|
156 | sg29 |
---|
157 | g12 |
---|
158 | (g13 |
---|
159 | (I0 |
---|
160 | tp58 |
---|
161 | g9 |
---|
162 | tp59 |
---|
163 | Rp60 |
---|
164 | (I1 |
---|
165 | (I44 |
---|
166 | tp61 |
---|
167 | g21 |
---|
168 | I00 |
---|
169 | S"\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" |
---|
170 | p62 |
---|
171 | tp63 |
---|
172 | bsg36 |
---|
173 | F1.0 |
---|
174 | sg37 |
---|
175 | g38 |
---|
176 | sg39 |
---|
177 | I01 |
---|
178 | sg40 |
---|
179 | g41 |
---|
180 | sg42 |
---|
181 | g43 |
---|
182 | sg44 |
---|
183 | I20 |
---|
184 | sg45 |
---|
185 | g46 |
---|
186 | sg47 |
---|
187 | g7 |
---|
188 | sg48 |
---|
189 | Nsba(ippplot |
---|
190 | plot1d |
---|
191 | p64 |
---|
192 | (dp65 |
---|
193 | g3 |
---|
194 | I00 |
---|
195 | sg4 |
---|
196 | Nsg5 |
---|
197 | I01 |
---|
198 | sg6 |
---|
199 | g7 |
---|
200 | sg8 |
---|
201 | g9 |
---|
202 | sg10 |
---|
203 | I00 |
---|
204 | sg11 |
---|
205 | g12 |
---|
206 | (g13 |
---|
207 | (I0 |
---|
208 | tp66 |
---|
209 | g9 |
---|
210 | tp67 |
---|
211 | Rp68 |
---|
212 | (I1 |
---|
213 | (I44 |
---|
214 | tp69 |
---|
215 | g21 |
---|
216 | I00 |
---|
217 | S'+(\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' |
---|
218 | p70 |
---|
219 | tp71 |
---|
220 | bsg26 |
---|
221 | F1.0 |
---|
222 | sg27 |
---|
223 | I00 |
---|
224 | sg28 |
---|
225 | I00 |
---|
226 | sg29 |
---|
227 | g12 |
---|
228 | (g13 |
---|
229 | (I0 |
---|
230 | tp72 |
---|
231 | g9 |
---|
232 | tp73 |
---|
233 | Rp74 |
---|
234 | (I1 |
---|
235 | (I44 |
---|
236 | tp75 |
---|
237 | g21 |
---|
238 | I00 |
---|
239 | S'\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' |
---|
240 | p76 |
---|
241 | tp77 |
---|
242 | bsg36 |
---|
243 | F1.0 |
---|
244 | sg37 |
---|
245 | g38 |
---|
246 | sg39 |
---|
247 | I01 |
---|
248 | sg40 |
---|
249 | g41 |
---|
250 | sg42 |
---|
251 | g43 |
---|
252 | sg44 |
---|
253 | I20 |
---|
254 | sg45 |
---|
255 | g46 |
---|
256 | sg47 |
---|
257 | g7 |
---|
258 | sg48 |
---|
259 | Nsba(ippplot |
---|
260 | plot1d |
---|
261 | p78 |
---|
262 | (dp79 |
---|
263 | g3 |
---|
264 | I00 |
---|
265 | sg4 |
---|
266 | Nsg5 |
---|
267 | I01 |
---|
268 | sg6 |
---|
269 | g7 |
---|
270 | sg8 |
---|
271 | g9 |
---|
272 | sg10 |
---|
273 | I00 |
---|
274 | sg11 |
---|
275 | g12 |
---|
276 | (g13 |
---|
277 | (I0 |
---|
278 | tp80 |
---|
279 | g9 |
---|
280 | tp81 |
---|
281 | Rp82 |
---|
282 | (I1 |
---|
283 | (I44 |
---|
284 | tp83 |
---|
285 | g21 |
---|
286 | I00 |
---|
287 | S"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" |
---|
288 | p84 |
---|
289 | tp85 |
---|
290 | bsg26 |
---|
291 | F1.0 |
---|
292 | sg27 |
---|
293 | I00 |
---|
294 | sg28 |
---|
295 | I00 |
---|
296 | sg29 |
---|
297 | g12 |
---|
298 | (g13 |
---|
299 | (I0 |
---|
300 | tp86 |
---|
301 | g9 |
---|
302 | tp87 |
---|
303 | Rp88 |
---|
304 | (I1 |
---|
305 | (I44 |
---|
306 | tp89 |
---|
307 | g21 |
---|
308 | I00 |
---|
309 | S';\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' |
---|
310 | p90 |
---|
311 | tp91 |
---|
312 | bsg36 |
---|
313 | F1.0 |
---|
314 | sg37 |
---|
315 | g38 |
---|
316 | sg39 |
---|
317 | I01 |
---|
318 | sg40 |
---|
319 | g41 |
---|
320 | sg42 |
---|
321 | g43 |
---|
322 | sg44 |
---|
323 | I20 |
---|
324 | sg45 |
---|
325 | g46 |
---|
326 | sg47 |
---|
327 | g7 |
---|
328 | sg48 |
---|
329 | Nsba. |
---|
Note: See
TracBrowser
for help on using the repository browser.