Changeset 1893 for production/karratha_2005/get_timeseries.py
- Timestamp:
- Oct 11, 2005, 3:21:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/karratha_2005/get_timeseries.py
r1836 r1893 4 4 import project 5 5 from pyvolution.util import file_function 6 from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees, redfearn 6 7 7 swwfile = project.outputdir + project.basename + '.sww' 8 #swwfile = project.outputdir + project.basename + '.sww' 9 swwfile = project.outputname + '_0.0tide' + '.sww' 10 #swwfile = project.outputdir + 'karratha_100m_12m.sww' 8 11 9 #gauges = [[0.000, 1.696]] #Boundary 10 #gauges += [[4.521, 1.196], [4.521, 1.696], [4.521, 2.196]] #Ch 5-7-9 11 #gauge_names = ['Boundary', 'ch5', 'ch7', 'ch9'] 12 #finaltime = 22.5 13 #timestep = 0.05 12 #MOST Boundary 13 y = project.north 14 x = (project.west + project.east)/2 14 15 15 gauges = [[60000, 83000], 16 [60000, 80000], 17 [60000, 75000], 18 [60000, 70000], 19 [60000, 60000], 20 [60000, 50000], 21 [60000, 40000], 22 [60000, 30000], 23 [60000, 20000], 24 [60000, 10000], 25 [60000, 0]] 26 #gauge_names = ['SW', 'N', 'N2', ] 16 z, easting, northing = redfearn(y, x) 17 18 19 #From Neil 20 gauges = [[easting, northing], 21 [470882, 7717952], 22 [469390, 7715426], 23 [469214, 7714979], 24 [468899, 7715177], 25 [469038, 7715725], 26 [470285, 7717470]] 27 28 29 30 #gauge_names = ['MOST', 31 # 'Gauge_1', 'Gauge_2', 'Gauge_3', 32 # 'Gauge_4', 'Gauge_5', 'Gauge_6'] 27 33 28 34 … … 45 51 46 52 53 47 54 for k, g in enumerate(gauges): 48 55 model_values = [] … … 55 62 hold(False) 56 63 plot(model_time, model_values, '-b') 57 name = str(g)58 title( 'Gauge %s' %name)64 name = 'Gauge_%d' %k 65 title(name) 59 66 savefig(name, dpi = 300) 60 67
Note: See TracChangeset
for help on using the changeset viewer.