Ignore:
Timestamp:
Oct 11, 2005, 1:52:46 PM (19 years ago)
Author:
duncan
Message:

checking in least squares changes, ticket 8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_data_manager.py

    r1875 r1891  
    25142514        os.remove(root + '_100.dem')
    25152515
     2516    def xxxtestz_sww2ers_real(self):
     2517        """Test that sww information can be converted correctly to asc/prj
     2518        format readable by e.g. ArcView
     2519        """
     2520
     2521        import time, os
     2522        from Numeric import array, zeros, allclose, Float, concatenate
     2523        from Scientific.IO.NetCDF import NetCDFFile
     2524
     2525        # the memory optimised least squares
     2526        #  cellsize = 20,   # this one seems to hang
     2527        #  cellsize = 200000, # Ran 1 test in 269.703s
     2528                                #Ran 1 test in 267.344s
     2529        #  cellsize = 20000,  # Ran 1 test in 460.922s
     2530        #  cellsize = 2000   #Ran 1 test in 5340.250s
     2531        #  cellsize = 200   #Ran 1 test in
     2532
     2533        # not optimised
     2534        # seems to hang
     2535        #  cellsize = 2000   # Ran 1 test in 5334.563s
     2536        #Export to ascii/prj files
     2537        sww2dem('karratha_100m',
     2538                quantity = 'depth',
     2539                cellsize = 200000,
     2540                verbose = True)
     2541
    25162542
    25172543
     
    25202546if __name__ == "__main__":
    25212547    suite = unittest.makeSuite(Test_Data_Manager,'test')
     2548    #suite = unittest.makeSuite(Test_Data_Manager,'xxxtest')
    25222549    #suite = unittest.makeSuite(Test_Data_Manager,'test_sww2dem_boundingbox')   
    25232550    #suite = unittest.makeSuite(Test_Data_Manager,'test_dem2pts_bounding_box')
Note: See TracChangeset for help on using the changeset viewer.