Changeset 3150
- Timestamp:
- Jun 13, 2006, 4:37:58 PM (18 years ago)
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/experimentation/boundary_ANUGA_MOST/report/MOST_ANUGA.tex
r3148 r3150 135 135 any relationships between the bathymetric topography and the ``matching'' 136 136 of the ANUGA and MOST outputs. The difficult question is to 137 how to define this matching. Here, we define the measure of blah de blah. 137 how to define this matching. Further, are we concerned with the matching 138 MOST and ANUGA in deeper water, or are we concerned 139 with the impact difference ashore? Section \ref{label:} deals with the first 140 issue with Section \ref{label:} dealing with the second. 141 138 142 139 143 Firstly, at what water depth should we place the ANUGA boundary? And where … … 164 168 165 169 \subsubsection{MOST and ANUGA comparison - 100m contour} 170 \label{mostanugaonslow} 166 171 167 172 \begin{figure} 168 173 \caption{Diagram of MOST grid layout, ANUGA boundary and gauge 169 174 locatations.} 170 \label{fig:setup }175 \label{fig:setuponslow} 171 176 \end{figure} 172 177 178 \begin{table} 179 \label{table:mostanugacomparisononslow} 180 \caption{Comparison in output between ANUGA boundary at 100m 181 MOST output.} 182 \centering 183 \begin{tabular}{|l|l|l|}\hline 184 Point location & MOST & ANUGA \\ \hline 185 & some sort of measure of fit - eg max/min amplitude& \\ \hline 186 \end{tabular} 187 \end{table} 188 173 189 \subsubsection{ANUGA comparison - 50m and 100m contour} 190 \label{compare50100onslow} 191 192 Here, whilst it is not reasonable to compare MOST and ANUGA 193 output in very shallow water (whatever that definition is) we will 194 briefly examine the time series for the point locations 195 described in Table \ref{table:locations}. 196 It is evident that the model output when the boundary is placed 197 at the 50m contour does not pick up the 198 detail which is evident in the output for the 100m contour. This 199 is due to the fact that the output 200 for the 100m contour has been propagated by ANUGA which is more effective 201 in modelling the propagation in shallow water. 202 It seems that the maximum amplitudes are 203 effectively matched for most of the locations chosen; 204 see for example the output for the Ocean polygon 1 and 2 locations. 174 205 175 206 \input{comparison_onslow} 176 207 177 \begin{table} 178 \label{table:comparison} 179 \caption{Comparison in output when ANUGA boundary at 50m and 180 100m contour.} 181 \centering 182 \begin{tabular}{|l|l|l|}\hline 183 Gauge number & Boundary at 50m contour & Boundary at 100m contour \\ \hline 184 & & some sort of measure of fit \\ \hline 185 \end{tabular} 186 \end{table} 187 208 It is more instructive in this case to compare differences in 209 inundation depths and extent ashore as the boundary location is changed. 210 Table \ref{table:anugacomparisononslow} lists inundation depths 211 for locations within the internal polygon with the finest resolution. 212 213 \begin{table} 214 \label{table:anugacomparisononslow} 215 \caption{Comparison in inundation depth at select locations when ANUGA boundary 216 is at the 50m and 100m contour.} 217 \centering 218 \begin{tabular}{|l|l|l|}\hline 219 Point location & Boundary at 50m contour & Boundary at 100m contour \\ \hline 220 & & \\ \hline 221 \end{tabular} 222 \end{table} 223 224 \begin{figure} 225 \caption{Map showing inundation extent for 50m and 100m contour line.} 226 \label{fig:extentcomparisononslow} 227 \end{figure} 188 228 189 229 \subsection{Pt Hedland case study} 190 230 191 231 \subsubsection{MOST and ANUGA comparison - 100m contour} 232 \label{mostanugapthedland} 233 234 \begin{table} 235 \label{table:mostanugacomparisonpthedland} 236 \caption{Comparison in output between ANUGA boundary at 100m 237 MOST output.} 238 \centering 239 \begin{tabular}{|l|l|l|}\hline 240 Point location & MOST & ANUGA \\ \hline 241 & some sort of measure of fit & \\ \hline 242 \end{tabular} 243 \end{table} 192 244 193 245 \subsubsection{ANUGA comparison - 50m and 100m contour} 246 \label{compare50100pthedland} 194 247 195 248 %\input{comparison_pt_hedland} 196 249 197 250 \begin{table} 198 \label{table:comparison} 199 \caption{Comparison in output when ANUGA boundary at 50m contour and 200 100m contour.} 201 \centering 202 \begin{tabular}{|l|l|l|}\hline 203 Gauge number & Boundary at 50m contour & Boundary at 100m contour \\ \hline 204 & & some sort of measure of fit \\ \hline 205 \end{tabular} 206 \end{table} 251 \label{table:anugacomparisonpthedland} 252 \caption{Comparison in inundation depth at select location when ANUGA boundary 253 is at the 50m and 100m contour.} 254 \centering 255 \begin{tabular}{|l|l|l|}\hline 256 Point location & Boundary at 50m contour & Boundary at 100m contour \\ \hline 257 & & \\ \hline 258 \end{tabular} 259 \end{table} 260 261 \begin{figure} 262 \caption{Map showing inundation extent for 50m and 100m contour line.} 263 \label{fig:extentcomparisonpthedland} 264 \end{figure} 207 265 208 266 \section{Summary} -
documentation/experimentation/boundary_ANUGA_MOST/report/comparison_onslow.tex
r3148 r3150 1 \begin{table} \label{table:locations }1 \begin{table} \label{table:locationsonslow} 2 2 \caption{Defined point locations for comparison study for Onslow region.} 3 3 \begin{center} -
documentation/user_manual/examples/project.py
r3136 r3150 187 187 botanybay_polygon_2, zone = convert_points_from_latlon_to_utm([j92, j12, j22, j62, j82, j72, j42]) 188 188 189 slump_origin = [3 85000.0, 6255000.0] #Absolute UTM189 slump_origin = [372500.0, 6255000.0] #Absolute UTM -
documentation/user_manual/examples/runsydney.py
r3136 r3150 135 135 import time 136 136 t0 = time.time() 137 tend = 7200.0 138 print 'Simulate to time = %d secs' %tend 137 139 138 for t in domain.evolve(yieldstep = 120, duration = 18000):140 for t in domain.evolve(yieldstep = 60, duration = tend): 139 141 print domain.timestepping_statistics() 140 142 print domain.boundary_statistics(tags = 'oceaneast') -
inundation/pyvolution/util.py
r3141 r3150 907 907 nn = len(plot_quantity) 908 908 no_cols = 2 909 elev_output = [] 909 910 if len(label_id) > 1: graphname_report = [] 910 911 for k, g in enumerate(gauges): … … 1020 1021 word_quantity += ' and ' + plot_quantity[nn-1] 1021 1022 caption = 'Time series for %s at %s gauge location (elevation %.2fm)' %(word_quantity, locations[k], elev[k]) #gaugeloc.replace('_',' ')) 1023 if elev[k] == 0.0: 1024 caption = 'Time series for %s at %s gauge location (elevation %.2fm)' %(word_quantity, locations[k], elevations[0,k,j]) 1025 east = gauges[0] 1026 north = gauges[1] 1027 elev_output.append([locations[k],east,north,elevations[0,k,j]]) 1022 1028 label = '%sgauge%s' %(label_id2, gaugeloc2) 1023 1029 s = '\end{tabular} \n \\caption{%s} \n \label{fig:%s} \n \end{figure} \n \n' %(caption, label) … … 1049 1055 word_quantity += ' and ' + plot_quantity[nn-1] 1050 1056 label = 'gauge%s' %(gaugeloc2) 1051 caption = 'Time series for %s at %s gauge location (elevation %.2fm)' %(word_quantity, locations[k], elev[k]) 1057 caption = 'Time series for %s at %s gauge location (elevation %.2fm)' %(word_quantity, locations[k], elev[k]) 1058 if elev[k] == 0.0: 1059 caption = 'Time series for %s at %s gauge location (elevation %.2fm)' %(word_quantity, locations[k], elevations[0,k,j]) 1060 thisgauge = gauges[k] 1061 east = thisgauge[0] 1062 north = thisgauge[1] 1063 elev_output.append([locations[k],east,north,elevations[0,k,j]]) 1052 1064 1053 1065 s = '\end{tabular} \n \\caption{%s} \n \label{fig:%s} \n \end{figure} \n \n' %(caption, label) … … 1060 1072 close('all') 1061 1073 1062 return texfile2 1074 return texfile2, elev_output -
production/onslow_2006/compare_timeseries.py
r3136 r3150 27 27 gauge_map = 'onslow_boundary_gauges.png' 28 28 29 plot_quantity = ['stage', 'speed'] 30 29 31 # Create sections and graphs for each designated production directory 30 32 latex_output = [] … … 36 38 swwfiles[swwfile] = label_id 37 39 38 texname = sww2timeseries(swwfiles, 39 project.gauges50, 40 production_dirs, 41 report = True, 42 plot_quantity = ['stage', 'speed'], 43 time_min = None, 44 time_max = None, 45 title_on = False, 46 verbose = True) 40 texname, vec = sww2timeseries(swwfiles, 41 project.gauges50, 42 production_dirs, 43 report = True, 44 reportname = 'latexoutput_compare', 45 plot_quantity = plot_quantity, 46 time_min = None, 47 time_max = None, 48 title_on = False, 49 verbose = True) 47 50 48 texname = texname + '_compare'49 51 latex_output.append(texname) 50 52 51 from shutil import copy 52 copy (texname, project.comparereportdir + 'latex_input.tex') 53 from shutil import copy, move 54 copy ('report' + sep + texname + '.tex', project.comparereportdir + sep + texname + '.tex') 55 53 56 54 57 # Start report generation … … 57 60 58 61 # Generate latex output for location points 59 s = '\\begin{table} \label{table:locations } \n'62 s = '\\begin{table} \label{table:locationsonslow} \n' 60 63 fid.write(s) 61 64 s = '\caption{Defined point locations for comparison study for Onslow region.}' … … 64 67 \\begin{center} 65 68 \\begin{tabular}{|l|l|l|l|}\hline 66 \\bf{Point Name} & \\bf{Easting} & \\bf{Northing} & \\bf{Elevation }\\\\ \hline69 \\bf{Point Name} & \\bf{Easting} & \\bf{Northing} & \\bf{Elevation (m)}\\\\ \hline 67 70 """ 68 71 fid.write(s) 69 72 70 gauges, locations, elevation = get_gauges_from_file(project.gauges50) 71 72 for name, gauges, elev in zip(locations, gauges, elevation): 73 east = gauges[0]74 north = gauges[1]75 s = '%s & %.2f & %.2f & %.2f \\\\ \hline \n' %(name .replace('_',' '), east, north, elev)73 for i, thisvec in enumerate(vec): 74 name = thisvec[0] 75 east = thisvec[1] 76 north = thisvec[2] 77 elev = thisvec[3] 78 s = '%s & %.2f & %.2f & %.2f \\\\ \hline \n' %(name, east, north, elev) 76 79 fid.write(s) 80 for which_one in plot_quantity: 81 move ('report_figures' + sep + 'gauge'+name.replace(' ','')+which_one+'.png', project.comparereportfigdir) 77 82 78 83 s = '\\end{tabular} \n \end{center} \n \end{table} \n \n' … … 83 88 84 89 s = """ 85 \caption{Point locations used for Onslow study.}90 \caption{Point locations used for comparison between boundary at 50m and 100m contour for Onslow region.} 86 91 \label{fig:points} 87 92 \end{figure} … … 91 96 s = '\input{%s} \n \clearpage \n \n' %latex_output[0] 92 97 fid.write(s) 93 94 s = '\end{document}'95 fid.write(s) -
production/onslow_2006/plot_data_extent.py
r3136 r3150 59 59 x = [] 60 60 y = [] 61 name = [] 61 62 line1 = lines[0] 62 63 for line in lines[1:]: … … 64 65 x.append(float(fields[0])) 65 66 y.append(float(fields[1])) 67 if len(line) > 2: name.append(fields[2]) 66 68 67 return x, y 69 return x, y, name 68 70 69 71 if plot_data == True: … … 119 121 figure(4) 120 122 figname = 'onslow_gauges' 121 x, y = read_file(project.gauge_filename)123 x, y, name = read_file(project.gauge_filename) 122 124 plot(x1,y1,'r-',x,y,'r+') 123 125 savefig(figname) … … 125 127 figure(5) 126 128 figname = 'onslow_new_boundary_test' 127 gaugex, gaugey = read_file(project.gauges50)129 gaugex, gaugey, name = read_file(project.gauges50) 128 130 x50, y50 = poly_xy(project.bounding_poly50) 129 131 x_onslow, y_onslow = poly_xy(project.poly_onslow) … … 132 134 #plot(x50,y50,'r-',x25,y25,'r-',x1,y1,'g-') 133 135 plot(x50,y50,'r-',x1,y1,'g-', gaugex, gaugey, 'b+', x_onslow, y_onslow,'r-', x_coast, y_coast,'r-') 136 for i, string in enumerate(name): 137 text(gaugex[i],gaugey[i],string,fontsize=7) 134 138 savefig(figname) 135 139 close('all') -
production/onslow_2006/project.py
r3136 r3150 52 52 outputdir = home+sep+scenario_dir_name+sep+'output'+sep 53 53 tidedir = home+sep+scenario_dir_name+sep+'tide_data'+sep 54 comparereportdir = comparehome+sep+'documentation'+sep+'experimentation'+'boundary_ANUGA_MOST' 54 comparereportdir = comparehome+sep+'documentation'+sep+'experimentation'+sep+'boundary_ANUGA_MOST'+sep+'report' 55 comparereportfigdir = comparehome+sep+'documentation'+sep+'experimentation'+sep+'boundary_ANUGA_MOST'+sep+'report_figures' 55 56 print'bound', boundarydir 56 57
Note: See TracChangeset
for help on using the changeset viewer.