- Timestamp:
- Nov 30, 2008, 10:43:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r6013 r6035 2074 2074 def sww2csv_gauges(sww_file, 2075 2075 gauge_file, 2076 out_name= None,2076 out_name='gauge_', 2077 2077 quantities = ['stage', 'depth', 'elevation', 2078 2078 'xmomentum', 'ymomentum'], … … 2090 2090 sww_file: path to any sww file 2091 2091 2092 points_file: Assumes that it follows this format2092 gauge_file: Assumes that it follows this format 2093 2093 name, easting, northing, elevation 2094 2094 point1, 100.3, 50.2, 10.0 … … 2110 2110 They will all have a header 2111 2111 2112 Usage: gauges_sww2csv(sww_file='test1.sww',2112 Usage: sww2csv_gauges(sww_file='test1.sww', 2113 2113 quantities = ['stage', 'elevation','depth','bearing'], 2114 2114 gauge_file='gauge.txt') … … 2122 2122 2123 2123 This is currently quite specific. 2124 If it need to be more general, chagne things.2124 If it needs to be more general, change things. 2125 2125 2126 2126 This is really returning speed, not velocity. … … 2139 2139 assert type(gauge_file) == type(''),\ 2140 2140 'Gauge filename must be a string' 2141 2141 2142 assert type(out_name) == type(''),\ 2142 2143 'Output filename prefix must be a string' … … 2215 2216 verbose=verbose, 2216 2217 use_cache=use_cache) 2217 2218 if out_name is None: 2219 gauge_file='gauge_' 2220 else: 2221 gauge_file = out_name 2218 2219 gauge_file = out_name 2222 2220 2223 2221 heading = [quantity for quantity in quantities]
Note: See TracChangeset
for help on using the changeset viewer.