Changeset 2782


Ignore:
Timestamp:
Apr 28, 2006, 4:55:46 PM (19 years ago)
Author:
howard
Message:

Continued adding material on file formats and conversions to Ch 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r2780 r2782  
    162162
    163163\chapter{Getting Started}
     164\label{ch:getstarted}
    164165
    165166This section is designed to assist the reader to get started with
     
    14731474\end{center}
    14741475
     1476The above table shows the file extensions used to identify the
     1477formats of files. However, typically, in referring to a format we
     1478capitalise the extension and omit the initial full stop---thus, we
     1479refer, for example, to `SWW files' or `PRJ files'.
     1480
    14751481\bigskip
    14761482
     
    15131519importance for \anuga.
    15141520
    1515 An SWW file is used for storing \anuga output.
     1521An SWW file is used for storing \anuga output and therefore pertains
     1522to a set of points and a set of times at which a model is evaluated.
     1523It contains, in addition to dimension information, the following
     1524variables:
     1525
     1526\begin{itemize}
     1527    \item \code{x} and \code{y}: coordinates of the points, represented as Numeric arrays
     1528    \item \code{elevation}, a Numeric array storing bed-elevations
     1529    \item \code{volumes}, a list specifying the points at the vertices of each of the
     1530    triangles
     1531    \item \code{time}, a Numeric array containing times for model
     1532    evaluation
     1533\end{itemize}
     1534
    15161535
    15171536The contents of an SWW file may be viewed using the visualisation
     
    15251544Class Definition Language (CDL). The following is an excerpt from a
    15261545CDL representation of the output file \file{bedslope.sww} generated
    1527 from running the simple example \filename{bedslopephysical.py}.
     1546from running the simple example \file{bedslopephysical.py} of
     1547Chapter \ref{ch:getstarted}.
    15281548
    15291549\verbatiminput{examples/bedslopeexcerpt.cdl}
    15301550
    1531 The data stored in an SWW file pertains to a specific set of points
    1532 and timesteps and comprises the following:
    1533 
    1534 \begin{enumerate}
    1535     \item Dimension information, stored as a number of constants.
    1536     \item Variables \code{x} and \code{y}, storing coordinates of
    1537     the points, represented as Numeric arrays.
    1538     \item A variable \code{elevation}, storing bed-elevations at the
    1539     points, also as a Numeric array.
    1540     \item A variable \code{volumes}
    1541     \item A variable \code{time},
    1542 \end{enumerate}
    1543 
     1551A TMS file is used to store time series...
    15441552
    15451553
    15461554\subsection{Meshfile Formats}
    15471555
    1548 A meshfile is a file that has a specific format suited to data used
    1549 to specify a mesh suitable for use with \anuga. A meshfile can have
    1550 one of two formats: it can be either a TSH file, which is an ASCII
    1551 file, or an MSH file, which is a NetCDF file.
     1556A meshfile is a file that has a specific format suited to specifying
     1557mesh data for \anuga. A meshfile can have one of two formats: it can
     1558be either a TSH file, which is an ASCII file, or an MSH file, which
     1559is a NetCDF file.
    15521560
    15531561A meshfile describes the outline of the mesh---the vertices and line
     
    15591567In addition, a meshfile may contain `holes' and/or `regions'. A hole
    15601568or region is defined by specifying a point and a number of segments
    1561 that enclose the point. A hole represents an area where no mesh is
     1569that enclose that point. A hole represents an area where no mesh is
    15621570to be created, while a region is a labelled area used for defining
    15631571properties of a mesh, such as friction values.
     
    15691577\subsection{Formats for Storing Arbitrary Points and Attributes}
    15701578
     1579An XYA file is used to store data representing arbitrary numerical
     1580attributes associated with a set of points.
     1581
     1582The format for a .xya file is:
     1583\begin{verbatim}
     1584            1st line:     [attribute names]
     1585            other lines:  x y [attributes]
     1586
     1587            for example:
     1588            elevation, friction
     1589            0.6, 0.7, 4.9, 0.3
     1590            1.9, 2.8, 5, 0.3
     1591            2.7, 2.4, 5.2, 0.3
     1592
     1593        The first two columns are always implicitly assumed to be x, y coordinates.
     1594        Use the same delimiter for the attribute names and the data
     1595
     1596        An xya file can optionally end with
     1597            #geo reference
     1598            56
     1599            466600.0
     1600            8644444.0
     1601
     1602        When the 1st # is the zone,
     1603        2nd # the xllcorner and
     1604        3rd # the yllcorner
     1605\end{verbatim}
    15711606
    15721607\subsection{ArcView Formats}
Note: See TracChangeset for help on using the changeset viewer.