|
Last change
on this file since 1247 was
1029,
checked in by aslmd, 12 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:
341 bytes
|
| Line | |
|---|
| 1 | #! /usr/bin/env python |
|---|
| 2 | from ppclass import pp |
|---|
| 3 | |
|---|
| 4 | u = pp() |
|---|
| 5 | u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
|---|
| 6 | u.var = "u" |
|---|
| 7 | u.x = 0. |
|---|
| 8 | u.y = 0. |
|---|
| 9 | u.z = 10. |
|---|
| 10 | u.get() |
|---|
| 11 | |
|---|
| 12 | v = pp() |
|---|
| 13 | v << u |
|---|
| 14 | v.var = "v" |
|---|
| 15 | v.get() |
|---|
| 16 | |
|---|
| 17 | # u as a function of v |
|---|
| 18 | hodo = u.func(v) |
|---|
| 19 | hodo.filename = "hodograph" |
|---|
| 20 | hodo.makeplot() |
|---|
| 21 | |
|---|
| 22 | # v as a function of u |
|---|
| 23 | hodo2 = v.func(u) |
|---|
| 24 | hodo2.makeplot() |
|---|
Note: See
TracBrowser
for help on using the repository browser.