source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/web.py @ 1170

Last change on this file since 1170 was 1062, checked in by aslmd, 11 years ago

planetoplot_v2. added trans back showcb attributes to ppclass. simplified example scripts. added the web home page example.

  • Property svn:executable set to *
File size: 710 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4# define object
5p = pp()
6
7# define file, variable, slice
8p.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
9p.var = "icetot"
10p.t = 0.5
11
12# get field. convert from kg m-2 to pr_mic
13p.get()
14p = 1000.*p
15
16# customize plot
17# -- map projection, background image
18p.proj = "robin"
19p.back = "vishires"
20p.trans = 0.5
21# -- title, colorbar
22p.title = 'Water ice clouds on Mars'
23p.units = "pr-$\mu$m"
24p.colorbar = "spectral"
25p.vmin = 0.
26p.vmax = 8.
27p.div = 32
28p.fmt = '%.1f'
29# -- save info
30p.filename = "weblowres"
31p.includedate = False
32p.out = "png"
33p.res = 30
34
35# generate plot
36p.plot()
37
38# generate a higher resolution version
39p.filename = "webhires"
40p.res = 150
41p.plot()
Note: See TracBrowser for help on using the repository browser.