source: trunk/UTIL/PYTHON/planetoplot_v2/demo_data/hodograph.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: 955 bytes
Line 
1(lp0
2(ippplot
3plot1d
4p1
5(dp2
6S'swaplab'
7p3
8I01
9sS'ordi'
10p4
11NsS'superpose'
12p5
13I00
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(I11
40tp17
41cnumpy
42dtype
43p18
44(S'f4'
45p19
46I0
47I1
48tp20
49Rp21
50(I3
51S'<'
52p22
53NNNI-1
54I-1
55I0
56tp23
57bI00
58S'\xcc\xf3\xa5@\x97\x97\x94@]1\x7f@Gog@/\xfbW@1\xbcH@\xbb\x19:@\xe9\x15)@\x03\xb4\xa6?\x84\x0f1\xbf(\xf9\xa8\xbf'
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(I11
81tp33
82g21
83I00
84S'm\x16u@\xda\xc9`@W\xaaB@\xf2\xf8"@\xf6\xed\xf9?\x97\x8b\x8c?\xcb\xd1I\xbd:{\xa0\xbf-\\\x06\xc0\xa5f,\xc0\x9f:5\xc0'
85p34
86tp35
87bsS'ycoeff'
88p36
89F1.0
90sS'xlabel'
91p37
92S'Zonal wind (m s$^{-1}$)'
93p38
94sS'swap'
95p39
96I00
97sS'ylabel'
98p40
99S'Meridional wind (m s$^{-1}$)'
100p41
101sS'var'
102p42
103S'v'
104p43
105sS'div'
106p44
107I20
108sS'axisbg'
109p45
110S'white'
111p46
112sS'marker'
113p47
114S'x'
115p48
116sS'lstyle'
117p49
118S'-'
119p50
120sba.
Note: See TracBrowser for help on using the repository browser.