Changeset 4945
- Timestamp:
- Jan 16, 2008, 4:06:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4914 r4945 1325 1325 Header information has been included to identify the location in terms of eastings and 1326 1326 northings, and each gauge is given a name. The elevation column can be zero here. 1327 This information is then passed to the function sww2timeseries (shown in 1328 \file{GetTimeseries.py} which generates figures for 1329 each desired quantity for each point location. 1327 This information is then passed to the function \code{sww2csv_gauges} (shown in 1328 \file{GetTimeseries.py} which generates the csv files for each point location. The csv files 1329 can then be used in \code{csv2timeseries_graphs} to create the timeseries plot for each desired 1330 quantity. \code{csv2timeseries_graphs} relies on \code{pylab} to be install which is not part 1331 of the standard \code{anuga} release, however it can be downloaded and installed from \code{http://matplotlib.sourceforge.net/} 1330 1332 1331 1333 \verbatiminput{demos/cairns/GetTimeseries.py} 1332 1334 1333 Here, the time series for the quantities stage and speed will be generated for 1334 each gauge defined in the gauge file. As described earlie, depth is more meaningful 1335 for onshore gauges, and stage is more appropriate for offshore gauges. However, the 1336 function used to generate the time series information at each gauge will plot 1337 stage or depth depending on the elevation at that gauge location. Note, if this is 1338 not required, users may update the relevation section of the function. 1335 Here, the time series for the quantities stage, depth and speed will be generated for 1336 each gauge defined in the gauge file. As described earlier, depth is more meaningful 1337 for onshore gauges, and stage is more appropriate for offshore gauges. 1339 1338 1340 1339 As an example output, 1341 1340 Figure \ref{fig:reef} shows the time series for the quantity stage for the 1342 1341 Elford Reef location for each scenario (the elevation at this location is negative, 1343 there by showing stage). Note the large negative stage value when the slide was1342 therefore stage is the most appropriate to use). Note the large negative stage value when the slide was 1344 1343 introduced. This is due to the double gaussian form of the initial surface 1345 1344 displacement of the slide. By contrast, the time series for depth is shown for the onshore location of the Cairns 1346 Airport for each scenario isFigure \ref{fig:airportboth}.1345 Airport in Figure \ref{fig:airportboth}. 1347 1346 1348 1347 \begin{figure}[hbt] 1349 \centerline{\includegraphics[scale=0.5]{graphics/ gaugeElfordReefboth.png}}1348 \centerline{\includegraphics[scale=0.5]{graphics/stage_gauge_Elford_Reef.png}} 1350 1349 \caption{Time series information of the quantity stage for the Elford Reef location for the 1351 1350 fixed wave and slide scenario.} … … 1354 1353 1355 1354 \begin{figure}[hbt] 1356 \centerline{\includegraphics[scale=0.5]{graphics/ gaugeCairnsAirportboth.png}}1355 \centerline{\includegraphics[scale=0.5]{graphics/depth_gauge_Cairns_Airport.png}} 1357 1356 \caption{Time series information of the quantity depth for the Cairns Airport 1358 1357 location for the slide and fixed wave scenario.} … … 4108 4107 1) Create csv files from the sww file using \code{anuga.abstract_2d_finite_volumes.util sww2csv_gauges} 4109 4108 and then use \code{anuga.abstract_2d_finite_volumes.util csv2timeseries_graphs} to 4110 create the plots. This code is newer, has unit tests and might be easier to use. Read docstrings for more information. 4109 create the plots. This code is newer, has unit tests and might be easier to use. Read doc strings for more information and 4110 review section 4.7 of this manual. 4111 4111 4112 4112 Or 4113 4113 4114 4114 2) Use \code{anuga.abstract_2d_finite_volumes.util sww2timeseries} to do the whole thing 4115 however this doesn't have a much control on the file name and plots. Plus there is no unit test yet.4115 however this doesn't have a much control on the file name and plots. Plus there is no unit tests yet. 4116 4116 4117 4117 Read the doc string for more information.
Note: See TracChangeset
for help on using the changeset viewer.