Changeset 6414
- Timestamp:
- Feb 25, 2009, 11:41:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/standardised_version/build_elevation.py
r6376 r6414 59 59 dem2pts(absolute_filename, use_cache=True, verbose=True) 60 60 61 geospatial_data[filename]= Geospatial_data(file_name=absolute_filename+'.pts',61 G_grid = Geospatial_data(file_name=absolute_filename+'.pts', 62 62 verbose=True) 63 print 'Clip geospatial object' 64 geospatial_data[filename] = G_grid.clip(project.bounding_polygon) 63 65 64 66 # Create Geospatial data from TXT files … … 66 68 for filename in project.point_filenames: 67 69 absolute_filename = join(project.topographies_folder, filename) 68 geospatial_data[filename]= Geospatial_data(file_name=absolute_filename,70 G_points = Geospatial_data(file_name=absolute_filename, 69 71 verbose=True) 72 print 'Clip geospatial object' 73 geospatial_data[filename] = G_points.clip(project.bounding_polygon) 70 74 71 75 #------------------------------------------------------------------------------- … … 82 86 G += geospatial_data[key] 83 87 84 print 'Clip combined geospatial data'88 #print 'Clip combined geospatial data' 85 89 ##G_clip = G.clip_outside(project.poly_aoi1) 86 90 ##G_all = G_clip + geospatial_data[project.point_filenames[4]] 87 91 #G_clipped = G_all.clip(project.poly_all) 88 G_clip = G.clip(project.bounding_polygon)92 #G_clip = G.clip(project.bounding_polygon) 89 93 90 94 91 95 print 'Export combined DEM file' 92 G _clip.export_points_file(project.combined_elevation + '.pts')96 G.export_points_file(project.combined_elevation + '.pts') 93 97 print 'Do txt version too' 94 98 # Use for comparision in ARC 95 G _clip.export_points_file(project.combined_elevation + '.txt')99 G.export_points_file(project.combined_elevation + '.txt') 96 100
Note: See TracChangeset
for help on using the changeset viewer.