source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/madeleineplot.py @ 1192

Last change on this file since 1192 was 1029, checked in by aslmd, 11 years ago

UTIL PYTHON planetoplot_v2

  • added keywords nxticks nyticks xp yp missing for improved plot settings
  • added function to print contents of pp object
  • added to ppplot a function figureref to easily set a figure of given size
  • bug fix affecting .ppobj objects containing fields with missing values
  • bug fix when size of z coordinate do not match field
  • bug fix for Ls time coordinates (added changetime=correctls)
  • bug fix if not connected to internet
  • tidying up examples
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4
5### Active Clouds
6### -------------
7act = pp()
8act.file = '/planeto/tnalmd/runs/newref/MY26.ifort.modelprecise/monthlybox/concat_LT14_P.nc'
9act.var = 'temp'
10act.x = "-180,180"
11act.y = "-20,20"
12act.z = 50.
13###### Change time axis from Sols to Ls:
14act.changetime="mars_sol2ls"
15act.label="GCM active clouds"
16act.title="Equatorial daytime temperature at 50 Pa"
17act.marker='-'
18act.color='g'
19act.out = "png"
20act.get()
21
22
23### Inactive Clouds
24### ---------------
25inac = pp()
26inac << act
27inac.file = '/planeto/tnalmd/runs/newref/MY26.inac/monthlybox/concat_LT14_P.nc'
28inac.label="GCM inactive clouds"
29inac.marker=''
30inac.color='r'
31inac.get()
32
33
34### TES data
35### --------
36tes = pp()
37tes << act
38tes.file = '/d5/emlmd/TES/TES.MappedClimatology.nadir.MY26.nc'
39tes.var='T_nadir_day'
40#### Do nothing with time axis (is usually the default option):
41tes.changetime=None
42tes.label="TES"
43tes.marker='.'
44tes.color='b'
45tes.get()
46
47
48
49### PLOT
50### ----
51act.superpose  = True
52inac.superpose = True
53tes.superpose  = True
54### add two plots to act:
55act.plot(extraplot=2)
56### plot inac:
57inac.plotin = act
58inac.plot()
59### plot tes:
60tes.plotin = act
61tes.plot()
Note: See TracBrowser for help on using the repository browser.