Changeset 1142


Ignore:
Timestamp:
Mar 24, 2005, 3:25:34 PM (20 years ago)
Author:
ole
Message:

updated xll/yll corner in sww2asc

File:
1 edited

Legend:

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

    r1141 r1142  
    11511151    prjid.close()
    11521152
    1153     #Create grid
     1153    #Create grid and update xll/yll corner
    11541154    if verbose: print 'Creating grid'
    11551155    ncols = int((xmax-xmin)/cellsize)+1
    11561156    nrows = int((ymax-ymin)/cellsize)+1
     1157
     1158    xllcorner = xmin+xllcorner
     1159    yllcorner = ymin+yllcorner   
     1160
    11571161
    11581162    from Numeric import zeros, Float
     
    11691173            grid_points[k,0] = xg
    11701174            grid_points[k,1] = yg
     1175           
    11711176
    11721177    #Interpolate
     
    11741179    from least_squares import Interpolation
    11751180    from util import inside_polygon
     1181
     1182    #FIXME: This should be done with precrop = True, otherwsie it'll
     1183    #take forever. With expand_search  set to False, some grid points might
     1184    #miss out....
    11761185   
    11771186    interp = Interpolation(vertex_points, volumes, grid_points, alpha=0.0,
    1178                            precrop = False, verbose = verbose)
     1187                           precrop = False, expand_search = False,
     1188                           verbose = verbose)
    11791189
    11801190    #Interpolate using quantity values
Note: See TracChangeset for help on using the changeset viewer.