Changeset 1891 for inundation/pyvolution/test_data_manager.py
- Timestamp:
- Oct 11, 2005, 1:52:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/test_data_manager.py
r1875 r1891 2514 2514 os.remove(root + '_100.dem') 2515 2515 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 2516 2542 2517 2543 … … 2520 2546 if __name__ == "__main__": 2521 2547 suite = unittest.makeSuite(Test_Data_Manager,'test') 2548 #suite = unittest.makeSuite(Test_Data_Manager,'xxxtest') 2522 2549 #suite = unittest.makeSuite(Test_Data_Manager,'test_sww2dem_boundingbox') 2523 2550 #suite = unittest.makeSuite(Test_Data_Manager,'test_dem2pts_bounding_box')
Note: See TracChangeset
for help on using the changeset viewer.