Changeset 653 for inundation/ga/storm_surge/pyvolution/general_mesh.py
- Timestamp:
- Dec 1, 2004, 6:09:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/general_mesh.py
r549 r653 230 230 231 231 232 def get_extent(self): 233 """Return min and max of all x and y coordinates 234 """ 235 236 237 C = self.get_vertex_coordinates() 238 X = C[:,0:6:2].copy() 239 Y = C[:,1:6:2].copy() 240 241 xmin = min(X.flat) 242 xmax = max(X.flat) 243 ymin = min(Y.flat) 244 ymax = max(Y.flat) 245 246 return xmin, xmax, ymin, ymax 247 248 249 250
Note: See TracChangeset
for help on using the changeset viewer.