Changeset 5627 for anuga_core/source/anuga/shallow_water/data_manager.py
- Timestamp:
- Aug 7, 2008, 4:46:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r5612 r5627 1670 1670 reduction = None, 1671 1671 cellsize = 10, 1672 number_of_decimal_places = None, 1672 1673 NODATA_value = -9999, 1673 1674 easting_min = None, … … 1727 1728 reduction, 1728 1729 cellsize, 1730 number_of_decimal_places, 1729 1731 NODATA_value, 1730 1732 easting_min, … … 1824 1826 reduction = None, 1825 1827 cellsize = 10, 1828 number_of_decimal_places = None, 1826 1829 NODATA_value = -9999, 1827 1830 easting_min = None, … … 1904 1907 if quantity_formula.has_key(quantity): 1905 1908 quantity = quantity_formula[quantity] 1909 1910 if number_of_decimal_places is None: 1911 number_of_decimal_places = 9 1906 1912 1907 1913 swwfile = basename_in + '.sww' … … 2181 2187 2182 2188 slice = grid_values[base_index:base_index+ncols] 2183 s = array2string(slice, max_line_width=sys.maxint) 2189 #s = array2string(slice, max_line_width=sys.maxint) 2190 s = array2string(slice, max_line_width=sys.maxint, precision=number_of_decimal_places) 2184 2191 ascid.write(s[1:-1] + '\n') 2185 2186 2192 2187 2193 #print … … 2213 2219 reduction = reduction, 2214 2220 cellsize = cellsize, 2221 number_of_decimal_places = number_of_decimal_places, 2215 2222 verbose = verbose, 2216 2223 origin = origin, … … 2233 2240 reduction = reduction, 2234 2241 cellsize = cellsize, 2242 number_of_decimal_places = number_of_decimal_places, 2235 2243 verbose = verbose, 2236 2244 origin = origin,
Note: See TracChangeset
for help on using the changeset viewer.