- Timestamp:
- Jan 19, 2009, 6:49:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r6189 r6192 392 392 393 393 if boundary_polygon is not None: 394 # removessts points that do not lie on boundary394 # Remove sts points that do not lie on boundary 395 395 # FIXME(Ole): Why don't we just remove such points from the list of points and associated data? 396 396 # I am actually convinced we can get rid of neighbour_gauge_id altogether as the sts file is produced using the ordering file. … … 404 404 for i in range(len(boundary_polygon)): 405 405 for j in range(len(x)): 406 if num.allclose(vertex_coordinates[j],boundary_polygon[i],1e-4): 406 if num.allclose(vertex_coordinates[j], 407 boundary_polygon[i], 1e-4): 407 408 #FIXME: 408 409 #currently gauges lat and long is stored as float and … … 475 476 if boundary_polygon is not None: 476 477 #removes sts points that do not lie on boundary 477 quantities[name] = num.take(quantities[name], gauge_id,1)478 quantities[name] = num.take(quantities[name], gauge_id, 1) 478 479 479 480 # Close sww, tms or sts netcdf file … … 488 489 #vertex coordinates is position of urs gauges 489 490 491 if verbose: 492 print 'Call interpolation function' 490 493 # Return Interpolation_function instance as well as 491 494 # starttime for use to possible modify that of domain
Note: See TracChangeset
for help on using the changeset viewer.