source: trunk/UTIL/PYTHON/planetoplot_v2/examples/hodograph.py @ 1004

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
2from ppclass import pp
3
4u = pp()
5u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
6u.var = "u"
7u.x = 0.
8u.y = 0.
9u.z = 10.
10u.get()
11
12v = pp()
13v << u
14v.var = "v"
15v.get()
16
17# u as a function of v
18hodo = u.func(v)
19hodo.filename = "hodograph"
20hodo.makeplot()
21
22# v as a function of u
23hodo2 = v.func(u)
24hodo2.makeplot()
Note: See TracBrowser for help on using the repository browser.