Changeset 9193


Ignore:
Timestamp:
Jun 18, 2014, 9:13:28 PM (11 years ago)
Author:
steve
Message:

Test Linear interpolation instead of nearest neighbours

Location:
trunk/anuga_core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/demos/cairns/export_results_to_qgis.py

    r9190 r9193  
    6363Make_Geotif(swwFile=name+'.sww',
    6464             output_quantities=['stage', 'depth', 'velocity', 'elevation'],
    65              myTimeStep='max', CellSize=50.0,
     65             myTimeStep='max', CellSize=200.0,
    6666             lower_left=None, upper_right=None,
    6767             EPSG_CODE=32355,
     
    7575Make_Geotif(swwFile=name+'.sww',
    7676             output_quantities=['stage'],
    77              myTimeStep=0, CellSize=50.0,
     77             myTimeStep=0, CellSize=200.0,
    7878             lower_left=None, upper_right=None,
    7979             EPSG_CODE=32355,
  • trunk/anuga_core/source/anuga/utilities/plot_utils.py

    r9192 r9193  
    939939    swwXY=scipy.array([swwX[:],swwY[:]]).transpose()
    940940    # Get index of nearest point
    941     index_qFun=scipy.interpolate.NearestNDInterpolator(swwXY,scipy.arange(len(swwX),dtype='int64').transpose())
     941    #index_qFun=scipy.interpolate.NearestNDInterpolator(swwXY,scipy.arange(len(swwX),dtype='int64').transpose())
     942    index_qFun=scipy.interpolate.LinearNDInterpolator(swwXY,scipy.arange(len(swwX),dtype='int64').transpose())
     943
    942944    gridXY_array=scipy.array([scipy.concatenate(gridX),scipy.concatenate(gridY)]).transpose()
    943945    gridqInd=index_qFun(gridXY_array)
Note: See TracChangeset for help on using the changeset viewer.