Changeset 8143 for trunk/anuga_core/source/anuga/file/sts.py
- Timestamp:
- Mar 10, 2011, 9:10:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file/sts.py
r7859 r8143 17 17 EXTREMA = ':extrema' 18 18 19 ##20 # @brief Instantiate this STS writer class.21 19 def __init__(self): 22 20 pass 23 21 24 ##25 # @brief Write a header to the underlying data file.26 # @param outfile Handle to open file to write.27 # @param times A list of the time slice times *or* a start time.28 # @param number_of_points The number of URS gauge sites.29 # @param description Description string to write into the STS file.30 # @param sts_precision Format of data to write (netcdf constant ONLY).31 # @param verbose True if this function is to be verbose.32 # @note If 'times' is a list, the info will be made relative.33 22 def store_header(self, 34 23 outfile, … … 38 27 sts_precision=netcdf_float32, 39 28 verbose=False): 40 """ 41 outfile - the name of the file that will be written 42 times - A list of the time slice times OR a start time 43 Note, if a list is given the info will be made relative. 44 number_of_points - the number of urs gauges sites 29 """Write a header to the underlying data file. 30 31 outfile handle to open file to write 32 times list of the time slice times *or* a start time 33 number_of_points the number of URS gauge sites 34 description description string to write into the STS file 35 sts_precision format of data to write (netcdf constant ONLY) 36 verbose True if this function is to be verbose 37 38 If 'times' is a list, the info will be made relative. 45 39 """ 46 40 … … 96 90 self.write_dynamic_quantities(outfile, Write_sts.sts_quantities, times) 97 91 98 ##99 # @brief100 # @param outfile101 # @param points_utm102 # @param elevation103 # @param zone104 # @param new_origin105 # @param points_georeference106 # @param verbose True if this function is to be verbose.107 92 def store_points(self, 108 93 outfile, … … 188 173 outfile.variables[q + Write_sts.RANGE][1] = max(elevation) 189 174 190 ##191 # @brief Store quantity data in the underlying file.192 # @param outfile193 # @param sts_precision194 # @param slice_index195 # @param time196 # @param verboseTrue if this function is to be verbose.197 # @param **quant Extra keyword args.198 175 def store_quantities(self, outfile, sts_precision=num.float32, 199 176 slice_index=None, time=None, … … 275 252 276 253 277 ##278 # @brief Create a list of points defining a boundary from an STS file.279 # @param stsname Stem of path to the STS file to read.280 # @return A list of boundary points.281 254 def create_sts_boundary(sts_filename): 282 255 """Create a list of points defining a boundary from an STS file.
Note: See TracChangeset
for help on using the changeset viewer.