Last change
on this file since 1052 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:
512 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | from ppclass import pp |
---|
3 | |
---|
4 | ## A SIMPLE EXAMPLE |
---|
5 | simple = pp() |
---|
6 | simple.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
---|
7 | simple.var = "tsurf" |
---|
8 | simple.t = "0.5" |
---|
9 | simple.getplot() |
---|
10 | |
---|
11 | ## GET A TIME AVERAGE WITHOUT A PLOT |
---|
12 | mean = pp() |
---|
13 | mean << simple |
---|
14 | mean.t = "0,1" |
---|
15 | mean.get() |
---|
16 | |
---|
17 | ## COMPUTE AND PLOT RELATIVE ANOMALY in % |
---|
18 | anomaly = ((simple-mean)/mean)*100. |
---|
19 | anomaly.filename = "anomaly" |
---|
20 | anomaly.defineplot() |
---|
21 | anomaly.p[0].title = "surface temperature anomaly" |
---|
22 | anomaly.p[0].units = '%' |
---|
23 | anomaly.makeplot() |
---|
Note: See
TracBrowser
for help on using the repository browser.