Changeset 5627
- Timestamp:
- Aug 7, 2008, 4:46:38 PM (16 years ago)
- Location:
- anuga_core/source/anuga/shallow_water
- Files:
-
- 2 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, -
anuga_core/source/anuga/shallow_water/test_data_manager.py
r5622 r5627 1281 1281 quantity = 'elevation', 1282 1282 cellsize = cellsize, 1283 number_of_decimal_places = 9, 1283 1284 verbose = self.verbose, 1284 1285 format = 'asc') … … 1369 1370 quantity = 'depth', 1370 1371 cellsize = cellsize, 1372 number_of_decimal_places = 9, 1371 1373 verbose = self.verbose, 1372 1374 format = 'asc') … … 2003 2005 quantity = 'elevation', 2004 2006 cellsize = cellsize, 2007 number_of_decimal_places = 9, 2005 2008 verbose = self.verbose, 2006 2009 format = 'asc') … … 2189 2192 quantity = 'elevation', 2190 2193 cellsize = cellsize, 2194 number_of_decimal_places = 9, 2191 2195 easting_min = 308530, 2192 2196 easting_max = 308570, … … 2336 2340 quantity = 'stage', 2337 2341 cellsize = cellsize, 2342 number_of_decimal_places = 9, 2338 2343 reduction = min, 2339 2344 format = 'asc', … … 2449 2454 quantity = 'stage - elevation', 2450 2455 cellsize = cellsize, 2456 number_of_decimal_places = 9, 2451 2457 reduction = min, 2452 2458 format = 'asc', … … 2600 2606 quantity = 'elevation', 2601 2607 cellsize = cellsize, 2608 number_of_decimal_places = 9, 2602 2609 verbose = self.verbose, 2603 2610 format = 'asc') … … 2707 2714 quantity = 'elevation', 2708 2715 cellsize = cellsize, 2716 number_of_decimal_places = 9, 2709 2717 NODATA_value = NODATA_value, 2710 2718 verbose = self.verbose, … … 4148 4156 quantity = 'depth', 4149 4157 cellsize = 200000, 4158 number_of_decimal_places = 9, 4150 4159 verbose = True) 4151 4160
Note: See TracChangeset
for help on using the changeset viewer.