Changeset 5555
- Timestamp:
- Jul 22, 2008, 4:16:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r5508 r5555 2075 2075 specified interpolation points from a NetCDF file (\code{filename}) 2076 2076 and returns 2077 a callable object. \code{filename} could be a \code{sww} file.2077 a callable object. \code{filename} could be a \code{sww} or \code{sts} file. 2078 2078 Returns interpolated values based on the input 2079 2079 file using the underlying \code{interpolation\_function}. … … 2087 2087 for points at which values are sought. 2088 2088 2089 \code{boundary_polygon} is a list of coordinates specifying the vertices of the boundary. This must be the same polygon as used when calling \code{create_mesh_from_regions}. This argument can only be used when reading boundary data from the STS format. 2090 2089 2091 The model time stored within the file function can be accessed using 2090 2092 the method \code{f.get\_time()} … … 2093 2095 The underlying algorithm used is as follows:\\ 2094 2096 Given a time series (i.e.\ a series of values associated with 2095 different times), whose values are either just numbers ora set of2097 different times), whose values are either just numbers, a set of 2096 2098 numbers defined at the vertices of a triangular mesh (such as those 2097 stored in SWW files), \code{Interpolation\_function} is used to 2099 stored in SWW files) or a set of 2100 numbers defined at a number of points on the boundary (such as those 2101 stored in STS files), \code{Interpolation\_function} is used to 2098 2102 create a callable object that interpolates a value for an arbitrary 2099 2103 time \code{t} within the model limits and possibly a point \code{(x, … … 2107 2111 \code{quantities}. The optional arguments \code{vertex\_coordinates} 2108 2112 and \code{triangles} represent the spatial mesh associated with the 2109 quantity arrays. If omitted the function created by2110 \code{Interpolation\_function} will be a function of \code{t} only.2113 quantity arrays. If omitted the function must be created using an STS file 2114 or a TMS file. 2111 2115 2112 2116 Since, in practice, values need to be computed at specified points, … … 2245 2249 Module: \module{abstract\_2d\_finite\_volumes.generic\_boundary\_conditions} 2246 2250 2247 This method may be used if the user wishes to apply a SWW file or2248 a time series file to a boundary segment or segments.2251 This method may be used if the user wishes to apply a SWW file, STS file or 2252 a time series file (TMS) to a boundary segment or segments. 2249 2253 The boundary values are obtained from a file and interpolated to the 2250 2254 appropriate segments for each conserved quantity. … … 2844 2848 \hline\hline 2845 2849 2846 \code{.sww} & NetCDF format for storing model output 2850 \code{.sww} & NetCDF format for storing model output with mesh information 2847 2851 \code{f(t,x,y)}\\ 2852 2853 \code{.sts} & NetCDF format for storing model ouput \code{f(t,x,y)} without any mesh information\\ 2848 2854 2849 2855 \code{.tms} & NetCDF format for storing time series \code{f(t)}\\ … … 2920 2926 \bigskip 2921 2927 2922 \subsection{SWW and TMS Formats}2928 \subsection{SWW, STS and TMS Formats} 2923 2929 \label{sec:sww format} 2924 2930 2925 The SWW and TMS formats are bothNetCDF formats, and are of key2931 The SWW, STS and TMS formats are all NetCDF formats, and are of key 2926 2932 importance for \anuga. 2927 2933 … … 2960 2966 for functions such as \function{file\_boundary} and 2961 2967 \function{file\_function}, described in Chapter \ref{ch:interface}. 2968 2969 An STS file is used for storing a set of points and and associated set of times. 2970 It contains, in addition to dimension information, the following 2971 variables: 2972 \begin{itemize} 2973 \item \code{x} and \code{y}: coordinates of the points, represented as Numeric arrays 2974 \item \code{elevation}, a Numeric array storing bed-elevations 2975 % Refer here to the example to be provided in describing the simple example 2976 \item \code{time}, a Numeric array containing times for model 2977 evaluation 2978 \end{itemize} 2979 The only difference between the STS format and the SWW format is the former does not contain a list specifying the points at the vertices of each of the triangles (\code{volumes}). Consequenlty information (arrays) stored within an STS file such as \code{elevation} can be accessed in exactly the same way as it would be extraced from an SWW file. 2962 2980 2963 2981 A TMS file is used to store time series data that is independent of … … 3091 3109 Takes DEM data (a NetCDF file representation of data from a regular Digital 3092 3110 Elevation Model) and converts it to PTS format. 3111 \end{funcdesc} 3112 3113 \begin{funcdesc}{urs2sts}{basename_in, basename_out=None, 3114 weights=None, verbose=False, 3115 origin=None,mean_stage=0.0, 3116 zscale=1.0, ordering_filename=None} 3117 Module: \module{shallow\_water.data\_manager} 3118 3119 Takes urs data in (timeseries data in mux2 format) and converts it to STS format. 3093 3120 \end{funcdesc} 3094 3121 … … 4345 4372 G2 = Geospatial_data(file_name = 25m_dem_name + '.pts') 4346 4373 G = G1 + G2 4347 G.export_points_file(combined_dem_name + .pts)4374 G.export_points_file(combined_dem_name + ᅵ.ptsᅵ) 4348 4375 \end{verbatim}} 4349 4376 this is the basic way of combining data sets, however, the user will need to
Note: See TracChangeset
for help on using the changeset viewer.