Changeset 2782
- Timestamp:
- Apr 28, 2006, 4:55:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2780 r2782 162 162 163 163 \chapter{Getting Started} 164 \label{ch:getstarted} 164 165 165 166 This section is designed to assist the reader to get started with … … 1473 1474 \end{center} 1474 1475 1476 The above table shows the file extensions used to identify the 1477 formats of files. However, typically, in referring to a format we 1478 capitalise the extension and omit the initial full stop---thus, we 1479 refer, for example, to `SWW files' or `PRJ files'. 1480 1475 1481 \bigskip 1476 1482 … … 1513 1519 importance for \anuga. 1514 1520 1515 An SWW file is used for storing \anuga output. 1521 An SWW file is used for storing \anuga output and therefore pertains 1522 to a set of points and a set of times at which a model is evaluated. 1523 It contains, in addition to dimension information, the following 1524 variables: 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 1516 1535 1517 1536 The contents of an SWW file may be viewed using the visualisation … … 1525 1544 Class Definition Language (CDL). The following is an excerpt from a 1526 1545 CDL representation of the output file \file{bedslope.sww} generated 1527 from running the simple example \filename{bedslopephysical.py}. 1546 from running the simple example \file{bedslopephysical.py} of 1547 Chapter \ref{ch:getstarted}. 1528 1548 1529 1549 \verbatiminput{examples/bedslopeexcerpt.cdl} 1530 1550 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 1551 A TMS file is used to store time series... 1544 1552 1545 1553 1546 1554 \subsection{Meshfile Formats} 1547 1555 1548 A meshfile is a file that has a specific format suited to data used1549 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, whichis a NetCDF file.1556 A meshfile is a file that has a specific format suited to specifying 1557 mesh data for \anuga. A meshfile can have one of two formats: it can 1558 be either a TSH file, which is an ASCII file, or an MSH file, which 1559 is a NetCDF file. 1552 1560 1553 1561 A meshfile describes the outline of the mesh---the vertices and line … … 1559 1567 In addition, a meshfile may contain `holes' and/or `regions'. A hole 1560 1568 or region is defined by specifying a point and a number of segments 1561 that enclose th epoint. A hole represents an area where no mesh is1569 that enclose that point. A hole represents an area where no mesh is 1562 1570 to be created, while a region is a labelled area used for defining 1563 1571 properties of a mesh, such as friction values. … … 1569 1577 \subsection{Formats for Storing Arbitrary Points and Attributes} 1570 1578 1579 An XYA file is used to store data representing arbitrary numerical 1580 attributes associated with a set of points. 1581 1582 The 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} 1571 1606 1572 1607 \subsection{ArcView Formats}
Note: See TracChangeset
for help on using the changeset viewer.