Last change
on this file since 1004 was
960,
checked in by aslmd, 12 years ago
|
UTIL PYTHON planetoplot_v2. MAJOR: created an easy way to load a variable from a netcdf file, see easy_get_field.py [note: now to avoid confusion with .f attributes containing field, .f() method is named .func()] ; MINOR: generic units keyword, quiet mode, dummy xy axis when not given in ppplot, bug fixes for one-value 0D requests.
|
-
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.