source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/tide.py @ 1242

Last change on this file since 1242 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: 914 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4fi = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
5v = ["ps","phisinit"]
6vg = ["main","contour"]
7
8meanps = pp(file=fi,var=v,vargoal=vg,t="0,1").get()
9waveref = pp(file=fi,var=v,vargoal=vg,t=0.5).get() - meanps
10waveref.smooth(5)
11waveref.title = "$p_s$ diurnal anomaly"
12waveref.proj = "moll"
13
14waveref.vmin = -10
15waveref.vmax = 10
16waveref.div = 10
17waveref.filename = "tide"
18waveref.plot(extraplot=3)
19
20eqmeanps = pp(file=fi,var="ps",t="0,1",y=0.).get() 
21addplot = pp(file=fi,var="ps",t=0.5,y=0.).get() - eqmeanps
22addplot.plotin = waveref
23addplot.title = "Tide signal at the equator"
24addplot.ylabel = "$p_s$ diurnal anomaly (Pa)"
25addplot.linestyle = ""
26addplot.marker = "."
27addplot.plot()
28
29for choice_t in [0.6,0.7]:
30    wave = pp(file=fi,var=v,vargoal=vg,t=choice_t).get() - meanps
31    wave << waveref
32    wave.smooth(5)
33    wave.plotin = waveref
34    wave.plot()
35
36
37
38
39
40
41
Note: See TracBrowser for help on using the repository browser.