Changeset 2573
- Timestamp:
- Mar 22, 2006, 2:05:01 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/fit_interpolate/benchmark_least_squares.py
r2563 r2573 172 172 173 173 for point in range(num_of_points): 174 points.append([random() *100, random()*100])174 points.append([random(), random()]) 175 175 point_atts.append(10.0) 176 176 -
inundation/fit_interpolate/interpolate.py
r2564 r2573 30 30 from coordinate_transforms.geo_reference import Geo_reference 31 31 from pyvolution.quad import build_quadtree 32 from utilities.numerical_tools import ensure_numeric, mean 32 from utilities.numerical_tools import ensure_numeric, mean, INF 33 33 from utilities.polygon import inside_polygon 34 34 … … 83 83 # The functionality of boundary_polygon is needed for that 84 84 85 #FIXME - geo ref does not have to go into mesh.86 # Change the point co-ords to conform to the87 # mesh co-ords early in the code88 89 85 #FIXME: geo_ref can also be a geo_ref object 90 86 #FIXME: move this to interpolate_block 87 88 #Note: not so keen to use geospacial to represent the mesh, 89 # since the data structure is 90 # points, geo-ref and triangles, rather than just points and geo-ref 91 # this info will usually be coming from a domain instance. 91 92 if mesh_origin is None: 92 93 geo = None … … 97 98 98 99 self.mesh.check_integrity() 99 100 100 self.root = build_quadtree(self.mesh, 101 101 max_points_per_cell = max_vertices_per_cell) 102 #print "self.root",self.root.show() 102 103 103 104 -
inundation/utilities/numerical_tools.py
r2533 r2573 12 12 print 'Could not find scipy - using Numeric' 13 13 from Numeric import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate 14 14 15 # Getting an infinate number to use when using Numeric 16 INF = (array([1])/0.)[0] 15 17 16 18 def angle(v):
Note: See TracChangeset
for help on using the changeset viewer.