Changeset 1145 for inundation/ga/storm_surge/pyvolution/data_manager.py
- Timestamp:
- Mar 24, 2005, 4:48:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/data_manager.py
r1144 r1145 1068 1068 1069 1069 """ 1070 from Numeric import array, Float, concatenate, NewAxis, zeros 1070 from Numeric import array, Float, concatenate, NewAxis, zeros,\ 1071 sometrue 1072 1071 1073 1072 1074 #FIXME: Should be variable … … 1209 1211 #Get bounding polygon from mesh 1210 1212 P = interp.mesh.get_boundary_polygon() 1211 1212 #print grid_points1213 #print grid_values1214 1215 1213 inside_indices = inside_polygon(grid_points, P) 1216 1214 … … 1222 1220 index = (nrows-i-1)*ncols+j 1223 1221 1224 #if inside_polygon(grid_points[index], P): 1225 if index in inside_indices: 1222 if sometrue(inside_indices == index): 1226 1223 ascid.write('%f ' %grid_values[index]) 1227 1224 else:
Note: See TracChangeset
for help on using the changeset viewer.