Changeset 8144
- Timestamp:
- Mar 10, 2011, 9:17:38 PM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/file
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file/mux.py
r7766 r8144 18 18 NORTH_VELOCITY_MUX2_LABEL = '-n-mux2' 19 19 20 ##21 # @brief22 # @param filenames List of mux2 format input filenames.23 # @param weights Weights associated with each source file.24 # @param permutation The gauge numbers for which data is extracted.25 # @param verbose True if this function is to be verbose.26 # @return (times, latitudes, longitudes, elevation, quantity, starttime)27 20 def read_mux2_py(filenames, 28 21 weights=None, -
trunk/anuga_core/source/anuga/file/sww.py
r8109 r8144 27 27 import numpy as num 28 28 29 ##30 # @brief Generic class for storing output to e.g. visualisation or checkpointing31 29 class Data_format: 32 30 """Generic interface to data formats 33 31 """ 34 32 35 ##36 # @brief Instantiate this instance.37 # @param domain38 # @param extension39 # @param mode The mode of the underlying file.40 33 def __init__(self, domain, extension, mode=netcdf_mode_w): 41 34 assert mode[0] in ['r', 'w', 'a'], \ … … 71 64 """ 72 65 73 ##74 # @brief Instantiate this instance.75 # @param domain ??76 # @param mode Mode of the underlying data file.77 # @param max_size ??78 # @param recursion ??79 # @note Prepare the underlying data file if mode starts with 'w'.80 66 def __init__(self, domain, 81 67 mode=netcdf_mode_w, max_size=2000000000, recursion=False): … … 167 153 fid.close() 168 154 169 ##170 # @brief Store connectivity data into the underlying data file.171 155 def store_connectivity(self): 172 156 """Store information about nodes, triangles and static quantities … … 213 197 fid.close() 214 198 215 ##216 # @brief Store time and time dependent quantities217 # to the underlying data file.218 199 def store_timestep(self): 219 200 """Store time and time dependent quantities … … 376 357 377 358 378 ##379 # @brief Class to open an sww file so that domain can be populated with quantity values380 359 class Read_sww: 381 360 … … 809 788 outfile.variables[q + Write_sww.RANGE][1] = q_values_max 810 789 811 ##812 # @brief Print the quantities in the underlying file.813 # @param outfile UNUSED.814 790 def verbose_quantities(self, outfile): 815 791 log.critical('------------------------------------------------') … … 1128 1104 1129 1105 1130 ##1131 # @brief Interpolate a quantity wrt time.1132 # @param saved_quantity The quantity to interpolate.1133 # @param time_interp (index, ratio)1134 # @return A vector of interpolated values.1135 1106 def interpolated_quantity(saved_quantity, time_interp): 1136 '''Given an index and ratio, interpolate quantity with respect to time.''' 1107 """Interpolate a quantity with respect to time. 1108 1109 saved_quantity the quantity to interpolate 1110 time_interp (index, ratio) 1111 1112 Returns a vector of interpolated values. 1113 """ 1137 1114 1138 1115 index, ratio = time_interp
Note: See TracChangeset
for help on using the changeset viewer.