source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/les_surf.py @ 1054

Last change on this file since 1054 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: 646 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4for t in range(3500,3600):
5  les = pp()
6  #les.file = "/home/aymeric/Big_Data/press_ustm_exomars.nc"
7  les.file = "/home/aymeric/Big_Data/uv.nc"
8  les.var = ["U","V"]
9  les.t = t
10  les.xcoeff = 100./1000.
11  les.ycoeff = 100./1000.
12  les.xlabel = "x distance (km)"
13  les.ylabel = "y distance (km)"
14  les.vmin = -8.
15  les.vmax = 8.
16  les.div = 32
17  #les.out = "png"
18  les.res = 75
19  les.get()
20  les.defineplot()
21  #les.p[0].vmin = 715.5
22  #les.p[0].vmax = 716.5
23  #les.p[1].vmin = 0.0
24  #les.p[1].vmax = 1.0
25  les.p[0].title = "East-West wind"
26  les.p[1].title = "North-South wind"
27  les.makeplot()
28
29
Note: See TracBrowser for help on using the repository browser.