Changeset 3224
- Timestamp:
- Jun 24, 2006, 5:11:13 PM (19 years ago)
- Location:
- documentation/user_manual/examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/examples/runuptest.py
r3223 r3224 99 99 100 100 f = file_function(gauges) 101 m inw = 10000.0102 them inw = minw103 m inws = []101 maxw = 0.0 102 themaxw = maxw 103 maxws = [] 104 104 for k, g in enumerate(gauges): 105 105 for i, t in enumerate(f.get_time()): 106 if w < minw: minw = w 107 minws.append(minw) 108 if theminw < minw: 109 theminw = minw 110 gaugeloc = k 106 if elevation > 0: 107 if w > maxw: maxw = w 108 maxws.append(maxw) 109 if elevation > 0: 110 if themaxw < maxw: 111 themaxw = maxw 112 gaugeloc = k 111 113 112 114 filename = 'maxrunup'+waveheight+'.csv' … … 119 121 120 122 from pylab import plot, xlabel, ylabel, title 121 plot(gaugex,m inws,'g-',gaugestar[0],gaugestar[1],'r*')123 plot(gaugex,maxws,'g-',gaugestar[0],gaugestar[1],'r*') 122 124 xlabel('x') 123 125 ylabel('stage') 124 title('M inimum stage for gauge line')126 title('Maximum stage for gauge line')
Note: See TracChangeset
for help on using the changeset viewer.