source: trunk/UTIL/PYTHON/planetoplot_v2/examples/histo.py @ 1002

Last change on this file since 1002 was 1002, checked in by aslmd, 11 years ago

UTIL PYTHON planetoplot_v2. possibility to load a field in a restricted interval with e.g. -t 0,1 without performing computations (self.compute=nothing). use for histograms, see histo.py. added smooth2diter. bug correction: ensure numpy array, vector, minmax equal.

  • Property svn:executable set to *
File size: 251 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3import matplotlib.pyplot as mpl
4import numpy as np
5
6icetot = pp(file="/home/aymeric/Big_Data/DATAPLOT/diagfired.nc",var="icetot",t="0.5,2.5",compute="nothing").getf()
7mpl.hist(np.ravel(icetot))
8mpl.show()
Note: See TracBrowser for help on using the repository browser.