source: anuga_work/development/culvert_flow/plot_rating_curve.py @ 5586

Last change on this file since 5586 was 5586, checked in by ole, 14 years ago

Rating curves for culverts

File size: 422 bytes
Line 
1from anuga.shallow_water.data_manager import csv2array
2from Numeric import array
3       
4       
5culvert_quantities = 'Culvert No. 2_136649740_timeseries.csv'       
6
7
8X = csv2array(culvert_quantities)
9
10print X.keys()
11
12
13E1 = X['E1']
14E0 = X['E0']
15Q = X['Discharge']
16
17delta_E = E0 - E1
18
19
20from pylab import ion, plot, show, xlabel, ylabel
21ion()
22
23plot(Q, delta_E)
24xlabel('Q')
25ylabel('\delta E')
26show()
27
28raw_input('done')
29
30
31
Note: See TracBrowser for help on using the repository browser.