Ignore:
Timestamp:
Nov 17, 2012, 6:48:37 PM (11 years ago)
Author:
steve
Message:

Starting to wrap in Yuyangs code for sww2dem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/test_sww2dem.py

    r7866 r8630  
    12961296
    12971297    def test_sww2ers_simple(self):
    1298         """Test that sww information can be converted correctly to asc/prj
    1299         format readable by e.g. ArcView
     1298        """Test that sww information can be converted correctly to ers
     1299        format
    13001300        """
    13011301
     
    13731373        grid = read_ermapper_data(self.domain.get_name() + '_elevation')
    13741374
    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,
    13781377                    -0.75, -1.0,  -1.25, -1.5,  -1.75,
    13791378                    -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))
    13841384        assert num.allclose(grid, ref_grid)
    13851385
Note: See TracChangeset for help on using the changeset viewer.