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