- Timestamp:
- Nov 17, 2012, 6:48:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/test_sww2dem.py
r7866 r8630 1296 1296 1297 1297 def test_sww2ers_simple(self): 1298 """Test that sww information can be converted correctly to asc/prj1299 format readable by e.g. ArcView1298 """Test that sww information can be converted correctly to ers 1299 format 1300 1300 """ 1301 1301 … … 1373 1373 grid = read_ermapper_data(self.domain.get_name() + '_elevation') 1374 1374 1375 #FIXME (Ole): Why is this the desired reference grid for -x-y? 1376 ref_grid = [NODATA_value, NODATA_value, NODATA_value, NODATA_value, NODATA_value, 1377 -1, -1.25, -1.5, -1.75, -2.0, 1375 1376 ref_grid = [-1, -1.25, -1.5, -1.75, -2.0, 1378 1377 -0.75, -1.0, -1.25, -1.5, -1.75, 1379 1378 -0.5, -0.75, -1.0, -1.25, -1.5, 1380 -0.25, -0.5, -0.75, -1.0, -1.25] 1381 1382 1383 #print grid 1379 -0.25, -0.5, -0.75, -1.0, -1.25, 1380 -0.0, -0.25, -0.5, -0.75, -1.0] 1381 1382 1383 #print grid.reshape((5,5)) 1384 1384 assert num.allclose(grid, ref_grid) 1385 1385
Note: See TracChangeset
for help on using the changeset viewer.