Changeset 4945


Ignore:
Timestamp:
Jan 16, 2008, 4:06:41 PM (17 years ago)
Author:
nick
Message:

update cairns scenario with new graphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_user_manual.tex

    r4914 r4945  
    13251325Header information has been included to identify the location in terms of eastings and
    13261326northings, 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.
     1327This 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
     1329can then be used in \code{csv2timeseries_graphs} to create the timeseries plot for each desired
     1330quantity. \code{csv2timeseries_graphs} relies on \code{pylab} to be install which is not part
     1331of the standard \code{anuga} release, however it can be downloaded and installed from \code{http://matplotlib.sourceforge.net/}
    13301332
    13311333\verbatiminput{demos/cairns/GetTimeseries.py}
    13321334
    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.
     1335Here, the time series for the quantities stage, depth and speed will be generated for
     1336each gauge defined in the gauge file. As described earlier, depth is more meaningful
     1337for onshore gauges, and stage is more appropriate for offshore gauges.
    13391338
    13401339As an example output,
    13411340Figure \ref{fig:reef} shows the time series for the quantity stage for the
    13421341Elford Reef location for each scenario (the elevation at this location is negative,
    1343 thereby showing stage). Note the large negative stage value when the slide was
     1342therefore stage is the most appropriate to use). Note the large negative stage value when the slide was
    13441343introduced. This is due to the double gaussian form of the initial surface
    13451344displacement of the slide. By contrast, the time series for depth is shown for the onshore location of the Cairns
    1346 Airport for each scenario is Figure \ref{fig:airportboth}.
     1345Airport in Figure \ref{fig:airportboth}.
    13471346
    13481347\begin{figure}[hbt]
    1349 \centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefboth.png}}
     1348\centerline{\includegraphics[scale=0.5]{graphics/stage_gauge_Elford_Reef.png}}
    13501349\caption{Time series information of the quantity stage for the Elford Reef location for the
    13511350fixed wave and slide scenario.}
     
    13541353
    13551354\begin{figure}[hbt]
    1356 \centerline{\includegraphics[scale=0.5]{graphics/gaugeCairnsAirportboth.png}}
     1355\centerline{\includegraphics[scale=0.5]{graphics/depth_gauge_Cairns_Airport.png}}
    13571356\caption{Time series information of the quantity depth for the Cairns Airport
    13581357location for the slide and fixed wave scenario.}
     
    410841071) Create csv files from the sww file using \code{anuga.abstract_2d_finite_volumes.util sww2csv_gauges}
    41094108and 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.
     4109create the plots. This code is newer, has unit tests and might be easier to use. Read doc strings for more information and
     4110review section 4.7 of this manual.
    41114111
    41124112Or
    41134113
    411441142) 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.
     4115however this doesn't have a much control on the file name and plots. Plus there is no unit tests yet.
    41164116
    41174117Read the doc string for more information.
Note: See TracChangeset for help on using the changeset viewer.