Ignore:
Timestamp:
Apr 6, 2005, 4:32:58 PM (20 years ago)
Author:
prow
Message:

fixed smoothed sww2domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/data_manager.py

    r1178 r1201  
    18921892        geo_reference = None
    18931893       
    1894     if verbose: print '    interpolating quantities'
     1894    if verbose: print '    getting quantities'
    18951895    for quantity in fid.variables.keys():
    18961896        dimensions = fid.variables[quantity].dimensions
     
    19191919    volumes=volumes.tolist()
    19201920    #FIXME:should this be in mesh?(peter row)
    1921     unique,coordinates,volumes,boundary=weed(coordinates,volumes,boundary)
     1921    if fid.smoothing == 'Yes': unique = False
     1922    else: unique = True
     1923    if unique:
     1924        coordinates,volumes,boundary=weed(coordinates,volumes,boundary)
     1925
    19221926
    19231927    domain = Domain(coordinates, volumes, boundary)
     
    19371941            pass #quantity has no missing_value number
    19381942        X = fid.variables[quantity][:]
    1939         if verbose:
     1943        if very_verbose:
    19401944            print '       ',quantity
    19411945            print '        NaN =',NaN
     
    19621966            pass #quantity has no missing_value number
    19631967        X = interpolated_quantities[quantity]
    1964         if verbose:
     1968        if very_verbose:
    19651969            print '       ',quantity
    19661970            print '        NaN =',NaN
     
    20772081        boundary = new_boundary               
    20782082
    2079     return unique,coordinates,volumes,boundary
     2083    return coordinates,volumes,boundary
    20802084       
    20812085       
Note: See TracChangeset for help on using the changeset viewer.