1 | ---------------------------- |
---|
2 | PLANETOPLOT v2 |
---|
3 | ---------------------------- |
---|
4 | A. Spiga LMD/UPMC 24/03/2013 |
---|
5 | ---------------------------- |
---|
6 | |
---|
7 | Contents |
---|
8 | -------- |
---|
9 | core |
---|
10 | ---- |
---|
11 | - ppclass.py --> main class with pp() objects (need ppplot and ppcompute) |
---|
12 | - ppplot.py --> plot class (can be used independently, need ppcompute) |
---|
13 | - ppcompute.py --> computation class (can be used independently) |
---|
14 | scripts |
---|
15 | ------- |
---|
16 | - pp.py --> command line utility to use ppclass |
---|
17 | - pp_reload.py --> command line utility to load saved plot objects *.ppobj |
---|
18 | - example/* --> example scripts using ppclass |
---|
19 | settings files |
---|
20 | -------------- |
---|
21 | - set_area.txt --> setting file: predefined areas for plotting (can be omitted) |
---|
22 | - set_back.txt --> setting file: predefined backgrounds for plotting (can be omitted) |
---|
23 | - set_multiplot.txt --> setting file: predefined coefficients for multiplots (can be omitted) |
---|
24 | - set_ppclass.txt --> setting file: predefined variables for x,y,z,t (can be omitted) |
---|
25 | - set_var.txt --> setting file: predefined colorbars, format, labels, etc... for variables (can be omitted) |
---|
26 | documentation |
---|
27 | ------------- |
---|
28 | - README.TXT --> this README file |
---|
29 | data |
---|
30 | ---- |
---|
31 | - demo_data/* --> plot objects for a demonstration tour and customizing tests |
---|
32 | |
---|
33 | Requirements |
---|
34 | ------------ |
---|
35 | python + numpy + matplotlib + netCDF4 |
---|
36 | - for mapping --> Basemap |
---|
37 | - for scientific computations --> scipy |
---|
38 | [recommended: Enthought Python Distribution (free for academics)] |
---|
39 | |
---|
40 | Installation |
---|
41 | ------------ |
---|
42 | - install required softwares and librairies in requirements |
---|
43 | - add planetoplot_v2 in your PYTHONPATH environment variable (and in your PATH to use pp.py) |
---|
44 | |
---|
45 | Take a demo tour |
---|
46 | ---------------- |
---|
47 | pp_reload.py demo_data/* |
---|
48 | |
---|
49 | Improvements compared to v1 |
---|
50 | --------------------------- |
---|
51 | * code readability and structuration for future improvements |
---|
52 | * modularity (class formulation) |
---|
53 | + easy definition/addition of attributes |
---|
54 | * separation between data retrieval and plotting |
---|
55 | * versatility |
---|
56 | + command line (pp.py) |
---|
57 | --> for quick inspection |
---|
58 | + interactive session (ipython) |
---|
59 | --> for testing and exploring |
---|
60 | + scripts |
---|
61 | --> for powerful and fully customized results |
---|
62 | * performance (overall and on large files) |
---|
63 | + memory consumption (only retrieve what is needed) |
---|
64 | * saving/loading plot objects in/from *.ppobj |
---|
65 | * plot aesthetics and customizing (see header in ppplot) |
---|
66 | * multiplot flexibility with .plotin attribute |
---|
67 | * easy definition of presets with set_*.txt files |
---|
68 | * function: one field vs. another one |
---|
69 | * emulation of + - / * ** operations on fields |
---|
70 | (between two fields or between a field and a int/float) |
---|
71 | * computations of min/max in addition to mean |
---|
72 | * simple inspection of dimensions+variables in a file (pp.py -f file) |
---|
73 | * verbose / non verbose mode |
---|
74 | |
---|
75 | Acknowledgements |
---|
76 | ---------------- |
---|
77 | Thanks to A. Colaitis, T. Navarro, J. Leconte |
---|
78 | for feedbacks and contributions on version 1 |
---|