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