- Timestamp:
- Jan 5, 2007, 2:14:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py
r4129 r4130 17 17 from Numeric import array, zeros, Float, less, concatenate, NewAxis,\ 18 18 argmax, allclose, take, reshape 19 19 20 from anuga.utilities.numerical_tools import ensure_numeric, is_scalar 20 21 from anuga.geospatial_data.geospatial_data import Geospatial_data 22 from anuga.fit_interpolate.fit import fit_to_mesh 21 23 22 24 class Quantity: … … 655 657 656 658 657 from anuga.fit_interpolate.fit import fit_to_mesh658 659 from anuga.coordinate_transforms.geo_reference import Geo_reference 659 660 … … 727 728 """ 728 729 729 from load_mesh.loadASCII import import_points_file730 from anuga.geospatial_data.geospatial_data import\731 points_dictionary2geospatial_data732 733 730 from types import StringType 734 731 msg = 'Filename must be a text string' 735 732 assert type(filename) == StringType, msg 736 733 737 geospatial_data = Geospatial_data(filename) 734 735 if location != 'vertices': 736 msg = 'set_values_from_points is only defined for '+\ 737 'location=\'vertices\'' 738 raise ms 739 740 coordinates = self.domain.get_nodes(absolute=True) 741 triangles = self.domain.triangles #FIXME 742 738 743 739 self.set_values_from_geospatial_data(geospatial_data, 740 alpha, 741 location, indices, 742 verbose = verbose, 743 use_cache = use_cache) 744 # FIXME handle attribute name 745 vertex_attributes = fit_to_mesh(coordinates, triangles,filename, 746 alpha=alpha) #, max_read_lines=max_read_lines) 747 748 #Call underlying method using array values 749 self.set_values_from_array(vertex_attributes, 750 location, indices, verbose) 751 752 #geospatial_data = Geospatial_data(filename) 753 754 #self.set_values_from_geospatial_data(geospatial_data, 755 # alpha, 756 # location, indices, 757 # verbose = verbose, 758 # use_cache = use_cache) 744 759 745 760
Note: See TracChangeset
for help on using the changeset viewer.