Ignore:
Timestamp:
Mar 9, 2006, 11:48:48 AM (19 years ago)
Author:
sexton
Message:

additional test for dem2pts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_data_manager.py

    r2492 r2507  
    798798                z = x+2*y
    799799                #if j == 4: z = NODATA_value
    800                 if i == 1 and j == 2: z = NODATA_value
    801                 if i == 2 and j == 4: z = NODATA_value
    802                 if i == 3 and j == 3: z = NODATA_value
    803                 if i == 5 and j == 1: z = NODATA_value
     800                #if i == 1 and j == 2: z = NODATA_value
     801                #if i == 2 and j == 4: z = NODATA_value
     802                #if i == 3 and j == 3: z = NODATA_value
     803                #if i == 5 and j == 1: z = NODATA_value
     804                if i == 0 and j == 0: z = NODATA_value
     805                if i == 0 and j == 1: z = NODATA_value
     806                if i == 0 and j == 2: z = NODATA_value
    804807               
    805808                if z <> NODATA_value:
     
    848851
    849852        #Check values
    850 
     853        #print 'points', points[:]
    851854        assert len(points) == len(new_ref_pts), 'length of returned points not correct'
    852855        assert allclose(points, new_ref_pts), 'points do not align'
    853856
     857        #print 'elevation', elevation[:]
    854858        assert len(elevation) == len(new_ref_elev), 'length of returned elevation not correct'
    855859        assert allclose(elevation, new_ref_elev), 'elevations do not align'
Note: See TracChangeset for help on using the changeset viewer.