|
Last change
on this file since 1247 was
1062,
checked in by aslmd, 12 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 |
|---|
| 2 | from ppclass import pp |
|---|
| 3 | |
|---|
| 4 | fi = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
|---|
| 5 | v = ["ps","phisinit"] |
|---|
| 6 | vg = ["main","contour"] |
|---|
| 7 | |
|---|
| 8 | meanps = pp(file=fi,var=v,vargoal=vg,t="0,1").get() |
|---|
| 9 | waveref = pp(file=fi,var=v,vargoal=vg,t=0.5).get() - meanps |
|---|
| 10 | waveref.smooth(5) |
|---|
| 11 | waveref.title = "$p_s$ diurnal anomaly" |
|---|
| 12 | waveref.proj = "moll" |
|---|
| 13 | |
|---|
| 14 | waveref.vmin = -10 |
|---|
| 15 | waveref.vmax = 10 |
|---|
| 16 | waveref.div = 10 |
|---|
| 17 | waveref.filename = "tide" |
|---|
| 18 | waveref.plot(extraplot=3) |
|---|
| 19 | |
|---|
| 20 | eqmeanps = pp(file=fi,var="ps",t="0,1",y=0.).get() |
|---|
| 21 | addplot = pp(file=fi,var="ps",t=0.5,y=0.).get() - eqmeanps |
|---|
| 22 | addplot.plotin = waveref |
|---|
| 23 | addplot.title = "Tide signal at the equator" |
|---|
| 24 | addplot.ylabel = "$p_s$ diurnal anomaly (Pa)" |
|---|
| 25 | addplot.linestyle = "" |
|---|
| 26 | addplot.marker = "." |
|---|
| 27 | addplot.plot() |
|---|
| 28 | |
|---|
| 29 | for 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.