Ignore:
Timestamp:
Oct 6, 2005, 2:38:17 PM (19 years ago)
Author:
ole
Message:

Bounding box for sww2dem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_data_manager.py

    r1867 r1875  
    965965                verbose = False,
    966966                format = 'asc')
    967         #dem2pts(root, easting_min=2010.0, easting_max=2110.0,
    968         #        northing_min=3035.0, northing_max=3125.5)
    969        
    970967       
    971968               
     
    10561053
    10571054
    1058     #FIXME: TODO
    1059     def xtest_sww2dem_boundingbox(self):
     1055    def test_sww2dem_boundingbox(self):
    10601056        """Test that sww information can be converted correctly to asc/prj
    10611057        format readable by e.g. ArcView.
     
    11581154                format = 'asc')
    11591155       
    1160                
     1156        fid.close()
     1157
     1158       
    11611159        #Check prj (meta data)
    11621160        prjid = open(prjfile)
     
    12361234       
    12371235
    1238         fid.close()
    12391236
    12401237        #Cleanup
     
    15931590        os.remove(sww.filename)
    15941591
    1595 
    1596     def xxxtestz_sww2ers_real(self):
    1597         """Test that sww information can be converted correctly to asc/prj
    1598         format readable by e.g. ArcView
    1599         """
    1600 
    1601         import time, os
    1602         from Numeric import array, zeros, allclose, Float, concatenate
    1603         from Scientific.IO.NetCDF import NetCDFFile
    1604 
    1605 
    1606 
    1607 
    1608         #Export to ascii/prj files
    1609         sww2ers('karratha_100m.sww',
    1610                 quantity = 'depth',
    1611                 cellsize = 5,
    1612                 verbose = False)
    16131592
    16141593
     
    25412520if __name__ == "__main__":
    25422521    suite = unittest.makeSuite(Test_Data_Manager,'test')
     2522    #suite = unittest.makeSuite(Test_Data_Manager,'test_sww2dem_boundingbox')   
    25432523    #suite = unittest.makeSuite(Test_Data_Manager,'test_dem2pts_bounding_box')
    25442524    #suite = unittest.makeSuite(Test_Data_Manager,'test_decimate_dem')
Note: See TracChangeset for help on using the changeset viewer.