Changeset 1875 for inundation/pyvolution/test_data_manager.py
- Timestamp:
- Oct 6, 2005, 2:38:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/test_data_manager.py
r1867 r1875 965 965 verbose = False, 966 966 format = 'asc') 967 #dem2pts(root, easting_min=2010.0, easting_max=2110.0,968 # northing_min=3035.0, northing_max=3125.5)969 970 967 971 968 … … 1056 1053 1057 1054 1058 #FIXME: TODO 1059 def xtest_sww2dem_boundingbox(self): 1055 def test_sww2dem_boundingbox(self): 1060 1056 """Test that sww information can be converted correctly to asc/prj 1061 1057 format readable by e.g. ArcView. … … 1158 1154 format = 'asc') 1159 1155 1160 1156 fid.close() 1157 1158 1161 1159 #Check prj (meta data) 1162 1160 prjid = open(prjfile) … … 1236 1234 1237 1235 1238 fid.close()1239 1236 1240 1237 #Cleanup … … 1593 1590 os.remove(sww.filename) 1594 1591 1595 1596 def xxxtestz_sww2ers_real(self):1597 """Test that sww information can be converted correctly to asc/prj1598 format readable by e.g. ArcView1599 """1600 1601 import time, os1602 from Numeric import array, zeros, allclose, Float, concatenate1603 from Scientific.IO.NetCDF import NetCDFFile1604 1605 1606 1607 1608 #Export to ascii/prj files1609 sww2ers('karratha_100m.sww',1610 quantity = 'depth',1611 cellsize = 5,1612 verbose = False)1613 1592 1614 1593 … … 2541 2520 if __name__ == "__main__": 2542 2521 suite = unittest.makeSuite(Test_Data_Manager,'test') 2522 #suite = unittest.makeSuite(Test_Data_Manager,'test_sww2dem_boundingbox') 2543 2523 #suite = unittest.makeSuite(Test_Data_Manager,'test_dem2pts_bounding_box') 2544 2524 #suite = unittest.makeSuite(Test_Data_Manager,'test_decimate_dem')
Note: See TracChangeset
for help on using the changeset viewer.