Changeset 2067 for inundation/wiki


Ignore:
Timestamp:
Nov 24, 2005, 4:44:21 PM (19 years ago)
Author:
duncan
Message:

added code example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/wiki/least_squares_redesign.txt

    r2048 r2067  
    125125setting precrop to True means these points are not returned.  Using a
    126126precrop of true and expand search true grinds the system to a halt.)
     127___________________
     128Here’s the snippet (from data_manager.py) that will identify points outside the mesh, in case you can use it for the interpolate methodology:
     129 
     130    P = interp.mesh.get_boundary_polygon()
     131    outside_indices = outside_polygon(grid_points, P, closed=True)
     132    for i in outside_indices:
     133        grid_values[i] = NODATA_value       
     134Cheers, O
     135__________________
    127136
    128137*To reduce the time spent building matrix A.
Note: See TracChangeset for help on using the changeset viewer.