source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_additional/vertpress.py @ 1192

Last change on this file since 1192 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: 615 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4prof = pp()
5prof.verbose = True
6#prof.file = "/home/aymeric/Big_Data/case_night.nc"
7prof.file = "/home/aymeric/Big_Data/GALE/wrfout_d03_2024-06-09_00:00:00_z"
8prof.var = "tk"
9prof.t = [10.,20.]
10prof.x = -5. #30
11prof.y = 138. #30
12prof.filename = "vertpress"
13
14prof.get()
15prof.superpose = True
16prof.defineplot()
17prof.p[0].logy = True
18prof.makeplot()
19
20## a small workaround if one wants to change axis names
21## (it is difficult because of swapping axis)
22prof.p[0].swaplab = False
23prof.p[0].xlabel = "Temperature (K)"
24prof.p[0].ylabel = "Pressure (Pa)"
25prof.makeplot()
26
27
28
29
Note: See TracBrowser for help on using the repository browser.