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