Changeset 1104
- Timestamp:
- Mar 17, 2005, 7:25:53 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r1097 r1104 86 86 concatinate_attributelist 87 87 88 # load in the .tsh file89 #FIXME (Ole): mesh_origin should be extracted here90 88 mesh_dict = mesh_file_to_mesh_dictionary(mesh_file) 91 89 vertex_coordinates = mesh_dict['vertices'] … … 104 102 105 103 # load in the .pts file 106 #FIXME (Ole): data_origin should be extracted here107 104 try: 108 105 point_dict = load_points_file(point_file, … … 117 114 title_list,point_attributes = concatinate_attributelist(point_dict['attributelist']) 118 115 119 if point_dict.has_key('geo_reference') and not point_dict['geo_reference'] is None:116 if point_dict.has_key('geo_reference') and not point_dict['geo_reference'] is None: 120 117 data_origin = point_dict['geo_reference'].get_origin() 121 118 else: 122 119 data_origin = (56, 0, 0) #FIXME(DSG-DSG) 123 120 124 if mesh_dict.has_key('geo_reference') and not mesh_dict['geo_reference'] is None:121 if mesh_dict.has_key('geo_reference') and not mesh_dict['geo_reference'] is None: 125 122 mesh_origin = mesh_dict['geo_reference'].get_origin() 126 123 else: -
inundation/ga/storm_surge/pyvolution/util.py
r1102 r1104 1134 1134 #Input checks 1135 1135 try: 1136 points = array(points).astype(Float) 1136 #FIXME: This is where it can die due to lack of memeory 1137 #Maybe comment out and test for Numeric type 1138 points = array(points).astype(Float) 1137 1139 except: 1138 1140 msg = 'Points could not be converted to Numeric array' 1139 raise msg 1140 1141 raise msg 1142 1143 #if verbose: print 'Checking input to separate_points_by_polygon 2' 1141 1144 try: 1142 polygon = array(polygon).astype(Float) 1145 #FIXME: SAme thing 1146 polygon = array(polygon).astype(Float) 1143 1147 except: 1144 1148 msg = 'Polygon could not be converted to Numeric array' 1145 1149 raise msg 1146 1150 1151 if verbose: print 'check' 1152 1147 1153 assert len(polygon.shape) == 2,\ 1148 1154 'Polygon array must be a 2d array of vertices' -
inundation/ga/storm_surge/pyvolution/wiki/issues.txt
r779 r1104 2 2 OPEN ISSUES: 3 3 ------------ 4 Issue: finaltime should be renamed 'duration' 5 6 4 7 Issue (least_squares): The current is-a-point-in-a-triangle algorithm 5 8 is slow if a point is outside of the mesh. It will check each
Note: See TracChangeset
for help on using the changeset viewer.