Changeset 2505


Ignore:
Timestamp:
Mar 9, 2006, 11:27:05 AM (18 years ago)
Author:
sexton
Message:

adding some diagnostics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/data_manager.py

    r2500 r2505  
    11971197
    11981198    dem_elevation_r = reshape(dem_elevation, (nrows, ncols))
     1199    totalnopoints = nrows*ncols
    11991200
    12001201    # calculating number of NODATA_values for each row
    12011202    nn = 0
    12021203    no_counts = []
     1204    print 'I think NODATA_values is:    ', NODATA_value
    12031205    for i in range(nrows):
    12041206        v = [dem_elevation_r[i,:]]
     
    12071209        no_counts.append(this_count)
    12081210
    1209     if verbose and nn > 0: print 'There are %d NODATA_values in the elevation' %nn
     1211    if verbose and nn > 0:
     1212        print 'There are %d values in the elevation', %totalnopoints
     1213        print 'There are %d NODATA_values in the elevation' %nn
    12101214   
    12111215    # dimension definitions
     
    12141218   
    12151219    nopoints = nrows_in_bounding_box*ncols_in_bounding_box-nn
     1220    #nopoints = nrows_in_bounding_box*ncols_in_bounding_box
    12161221    outfile.createDimension('number_of_points', nopoints)
    12171222    outfile.createDimension('number_of_dimensions', 2) #This is 2d data
     
    12391244        else:
    12401245            newcols = ncols_in_bounding_box
    1241 
     1246       
    12421247        telev = zeros(newcols, Float)
    12431248        tpoints = zeros((newcols, 2), Float)
Note: See TracChangeset for help on using the changeset viewer.