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:
4.9 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 | I01 |
---|
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 | (I100 |
---|
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'\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' |
---|
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 | I01 |
---|
70 | sS'field' |
---|
71 | p29 |
---|
72 | g12 |
---|
73 | (g13 |
---|
74 | (I0 |
---|
75 | tp30 |
---|
76 | g9 |
---|
77 | tp31 |
---|
78 | Rp32 |
---|
79 | (I1 |
---|
80 | (I100 |
---|
81 | tp33 |
---|
82 | g21 |
---|
83 | I00 |
---|
84 | S'\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' |
---|
85 | p34 |
---|
86 | tp35 |
---|
87 | bsS'ycoeff' |
---|
88 | p36 |
---|
89 | F1.0 |
---|
90 | sS'xlabel' |
---|
91 | p37 |
---|
92 | S'Temperature (K)' |
---|
93 | p38 |
---|
94 | sS'swap' |
---|
95 | p39 |
---|
96 | I01 |
---|
97 | sS'ylabel' |
---|
98 | p40 |
---|
99 | S'Pressure (Pa)' |
---|
100 | p41 |
---|
101 | sS'var' |
---|
102 | p42 |
---|
103 | S'tk' |
---|
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 | S'x' |
---|
115 | p48 |
---|
116 | sS'lstyle' |
---|
117 | p49 |
---|
118 | S'-' |
---|
119 | p50 |
---|
120 | sba(ippplot |
---|
121 | plot1d |
---|
122 | p51 |
---|
123 | (dp52 |
---|
124 | g3 |
---|
125 | I00 |
---|
126 | sg4 |
---|
127 | Nsg5 |
---|
128 | I01 |
---|
129 | sg6 |
---|
130 | g7 |
---|
131 | sg8 |
---|
132 | g9 |
---|
133 | sg10 |
---|
134 | I00 |
---|
135 | sg11 |
---|
136 | g12 |
---|
137 | (g13 |
---|
138 | (I0 |
---|
139 | tp53 |
---|
140 | g9 |
---|
141 | tp54 |
---|
142 | Rp55 |
---|
143 | (I1 |
---|
144 | (I100 |
---|
145 | tp56 |
---|
146 | g21 |
---|
147 | I00 |
---|
148 | S'\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' |
---|
149 | p57 |
---|
150 | tp58 |
---|
151 | bsg26 |
---|
152 | F1.0 |
---|
153 | sg27 |
---|
154 | I00 |
---|
155 | sg28 |
---|
156 | I00 |
---|
157 | sg29 |
---|
158 | g12 |
---|
159 | (g13 |
---|
160 | (I0 |
---|
161 | tp59 |
---|
162 | g9 |
---|
163 | tp60 |
---|
164 | Rp61 |
---|
165 | (I1 |
---|
166 | (I100 |
---|
167 | tp62 |
---|
168 | g21 |
---|
169 | I00 |
---|
170 | S'\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' |
---|
171 | p63 |
---|
172 | tp64 |
---|
173 | bsg36 |
---|
174 | F1.0 |
---|
175 | sg37 |
---|
176 | g38 |
---|
177 | sg39 |
---|
178 | I01 |
---|
179 | sg40 |
---|
180 | g41 |
---|
181 | sg42 |
---|
182 | g43 |
---|
183 | sg44 |
---|
184 | I20 |
---|
185 | sg45 |
---|
186 | g46 |
---|
187 | sg47 |
---|
188 | g48 |
---|
189 | sg49 |
---|
190 | Nsba. |
---|
Note: See
TracBrowser
for help on using the repository browser.