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

Last change on this file since 1029 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: 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.