Changeset 4165 for anuga_core/source/anuga/fit_interpolate
- Timestamp:
- Jan 10, 2007, 4:50:53 PM (18 years ago)
- Location:
- anuga_core/source/anuga/fit_interpolate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/fit.py
r4138 r4165 500 500 501 501 502 def fit_to_mesh_file(mesh_file, point_file, mesh_output_file,502 def obsolete_fit_to_mesh_file(mesh_file, point_file, mesh_output_file, 503 503 alpha=DEFAULT_ALPHA, verbose= False, 504 504 display_errors = True): … … 516 516 517 517 """ 518 #OBSOLETE 519 #Problems with using blocking and knowing the attribute title.. 520 518 521 519 522 # Question … … 553 556 # load in the .pts file 554 557 try: 555 point_dict = import_points_file(point_file, verbose=verbose) 558 #point_dict = import_points_file(point_file, verbose=verbose) 559 560 geospatial = Geospatial_data(point_file) 561 point_coordinates = geospatial.get_data_points(absolute=False) 556 562 except IOError,e: 557 563 if display_errors: … … 559 565 raise IOError #Re-raise exception 560 566 561 point_coordinates = point_dict['pointlist'] 562 title_list,point_attributes = concatinate_attributelist(point_dict['attributelist']) 563 564 if point_dict.has_key('geo_reference') and not point_dict['geo_reference'] is None: 565 data_origin = point_dict['geo_reference'].get_origin() 566 else: 567 data_origin = (56, 0, 0) #FIXME(DSG-DSG) 567 #point_coordinates = point_dict['pointlist'] 568 #get_all_attributes 569 #title_list,point_attributes = concatinate_attributelist(point_dict['attributelist']) 570 title_list,point_attributes = concatinate_attributelist( \ 571 geospatial.get_all_attributes()) 572 568 573 569 574 if mesh_dict.has_key('geo_reference') and not mesh_dict['geo_reference'] is None: … … 576 581 f = fit_to_mesh(vertex_coordinates, 577 582 triangles, 578 point_coordinates, 579 point_attributes, 583 point_file, 580 584 alpha = alpha, 581 585 verbose = verbose, -
anuga_core/source/anuga/fit_interpolate/test_fit.py
r4144 r4165 271 271 272 272 f = fit_to_mesh(vertices, triangles,fileName, 273 alpha=0.0, max_read_lines=2)#, verbose=True) 273 alpha=0.0, max_read_lines=2) 274 #use_cache=True, verbose=True) 274 275 answer = linear_function(vertices) 275 276 #print "f\n",f … … 604 605 605 606 606 def test_fit_to_mesh_file(self):607 def obsolete_test_fit_to_mesh_file(self): 607 608 from load_mesh.loadASCII import import_mesh_file, \ 608 609 export_mesh_file … … 656 657 657 658 658 def test_fit_to_mesh_file3(self):659 def obsolete_test_fit_to_mesh_file3(self): 659 660 from load_mesh.loadASCII import import_mesh_file, \ 660 661 export_mesh_file … … 708 709 os.remove(mesh_output_file) 709 710 710 def test_fit_to_mesh_file4(self):711 def obsolete_test_fit_to_mesh_file4(self): 711 712 from load_mesh.loadASCII import import_mesh_file, \ 712 713 export_mesh_file … … 762 763 os.remove(mesh_output_file) 763 764 764 def test_fit_to_mesh_fileII(self):765 def obsolete_test_fit_to_mesh_fileII(self): 765 766 from load_mesh.loadASCII import import_mesh_file, \ 766 767 export_mesh_file … … 813 814 os.remove(point_file) 814 815 815 def test_fit_to_mesh_file_errors(self):816 def obsolete_test_fit_to_mesh_file_errors(self): 816 817 from load_mesh.loadASCII import import_mesh_file, export_mesh_file 817 818 import tempfile … … 851 852 os.remove(point_file) 852 853 853 def test_fit_to_mesh_file_errorsII(self):854 def obsolete_test_fit_to_mesh_file_errorsII(self): 854 855 from load_mesh.loadASCII import import_mesh_file, export_mesh_file 855 856 import tempfile … … 881 882 os.remove(point_file) 882 883 883 def test_fit_to_mesh_file_errorsIII(self):884 def obsolete_test_fit_to_mesh_file_errorsIII(self): 884 885 from load_mesh.loadASCII import import_mesh_file, export_mesh_file 885 886 import tempfile
Note: See TracChangeset
for help on using the changeset viewer.