Ignore:
Timestamp:
Mar 22, 2006, 5:28:24 PM (17 years ago)
Author:
duncan
Message:

changing interpolate to use geospatial_data objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/fit_interpolate/interpolate.py

    r2573 r2577  
    3232from utilities.numerical_tools import ensure_numeric, mean, INF
    3333from utilities.polygon import inside_polygon
     34from geospatial_data.geospatial_data import Geospatial_data
    3435
    3536from search_functions import search_tree_of_vertices
     
    188189          point_coordinates: Interpolate mesh data to these positions.
    189190              List of coordinate pairs [x, y] of
    190               data points (or an nx2 Numeric array)
     191              data points or an nx2 Numeric array or a Geospatial_data object
     192             
    191193              If point_coordinates is absent, the points inputted last time
    192194              this method was called are used, if possible.
     
    198200        """
    199201        #print "point_coordinates interpolate.interpolate",point_coordinates
    200         # Can I interpolate, based on previous point_coordinates?
     202        # Can I interpolate, based on previous point_coordinates?
     203        if isinstance(point_coordinates,Geospatial_data):
     204            point_coordinates = point_coordinates.get_data_points( \
     205                absolute = True)
     206       
    201207        if point_coordinates is None:
    202208            if self._A_can_be_reused is True and \
Note: See TracChangeset for help on using the changeset viewer.