source: production/sydney_2006/gauge_plot_sydney_2006.py @ 2763

Last change on this file since 2763 was 2316, checked in by sexton, 19 years ago

Moving file to appropriate location. This file superceded by get_timeseries.py.

File size: 2.1 KB
Line 
1"""This script allows the user to view the stage values of the scenario output
2sww file (for the sydney tsunami scenario 2006) at the gauge points defined.
3
4The gauge points are defined in the same directory which runs the scenario
5script and the output is written to that directory as well.
6
7The output file can then be read into Excel as a comma delimited file
8(deselect the tab delimiter).
9
10The user should follow these steps to view the output:
11
12* copy and transpose the given data and paste
13* select the first two points in the first column, insert cells and shift
14  cells down
15* delete first two rows
16* order the data by the first column (describes time)
17* plot (subsequent columns describe stage height at gauge points defined)
18
19NOTE - the directory structure is set according to that on Jane's machine.
20Please update the outputhome and productionhome paths according to your setup.
21
22Duncan Gray, Jane Sexton and Adrian Hitchman, GA 2006 """
23   
24from interpolate_sww import interpolate_sww2xya
25from os import sep
26
27print '\n\
28    The directory structure is set up according to that on Jane\'s machine. \n\
29\n\
30    Please update the outputhome and productionhome paths according \n\
31    to your computer. '
32
33#outputhome = '..\..\..\..\sydney_tsunami_scenario_2006\output'
34outputhome = '..\..\..\..\sydney_tsunami_scenario_2006\output'
35productionhome = '..\..\production\sydney_2006'
36
37#swwfilename = outputhome + sep + 'sydney_2006_100.sww'
38#swwfilename = outputhome + sep + 'bathyland100.sww'
39swwfilename = outputhome + sep + 'slump.sww'
40gaugepointsfilename = productionhome + sep + 'harbour_gauge.xya'
41#gaugepointsfilename = productionhome + sep + 'bay_gauge.xya'
42outputfilename1 = productionhome + sep + 'interpolate_output1.xya'
43outputfilename2 = productionhome + sep + 'interpolate_output2.xya'
44
45interpolate_sww2xya(swwfilename, 'stage', gaugepointsfilename, \
46                         outputfilename1, display_errors = True)
47#interpolate_sww2xya(swwfilename, 'depth', gaugepointsfilename, \
48#                         outputfilename2, display_errors = True)
Note: See TracBrowser for help on using the repository browser.