- Timestamp:
- Mar 4, 2009, 8:26:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/coordinate_transforms/geo_reference.py
r6428 r6441 8 8 9 9 import types, sys 10 import copy 11 10 12 from anuga.utilities.numerical_tools import ensure_numeric 11 13 from anuga.utilities.anuga_exceptions import ANUGAError, TitleError, \ … … 240 242 # @return The changed points. 241 243 # @note If 'points' is a list then a changed list is returned. 242 # @note The input points data is changed.243 244 def change_points_geo_ref(self, points, points_geo_ref=None): 244 245 """Change the geo reference of a list or numeric array of points to … … 250 251 is_list = isinstance(points, list) 251 252 252 points = ensure_numeric( points, num.float)253 points = ensure_numeric(copy.copy(points), num.float) 253 254 254 255 # sanity checks … … 308 309 is_list = isinstance(points, list) 309 310 310 # convert to numeric array 311 points = ensure_numeric( points, num.float)311 # convert to numeric array, force a copy 312 points = ensure_numeric(copy.copy(points), num.float) 312 313 313 314 # sanity checks … … 328 329 points[:,0] += self.xllcorner 329 330 points[:,1] += self.yllcorner 330 #self.is_absolute = True331 331 332 332 # if we got a list, return a list
Note: See TracChangeset
for help on using the changeset viewer.