- Timestamp:
- Feb 5, 2009, 2:52:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/standardised_version/build_busselton.py
r6276 r6279 30 30 # output to file 31 31 #------------------------------------------------------------------------------ 32 copy_code_files(project.output_build _time_dir,__file__,32 copy_code_files(project.output_build,__file__, 33 33 os.path.dirname(project.__file__)+os.sep+\ 34 34 project.__name__+'.py' ) 35 start_screen_catcher(project.output_build _time_dir)35 start_screen_catcher(project.output_build) 36 36 37 37 … … 44 44 #------------------------------------------------------------------------------ 45 45 46 print 'project. poly_all', project.poly_all47 print 'project.combined_ dir_name', project.combined_dir_name46 print 'project.bounding_polygon', project.bounding_polygon 47 print 'project.combined_elevation_basename', project.combined_elevation_basename 48 48 49 49 # Create Geospatial data from ASCII files 50 50 geospatial_data = {} 51 51 for filename in project.ascii_grid_filenames: 52 absolute_filename = project.topographies_ dir+ filename52 absolute_filename = project.topographies_folder + os.sep + filename 53 53 convert_dem_from_ascii2netcdf(absolute_filename, 54 54 basename_out=absolute_filename, … … 62 62 # Create Geospatial data from TXT files 63 63 for filename in project.point_filenames: 64 absolute_filename = project.topographies_ dir+ filename64 absolute_filename = project.topographies_folder + os.sep + filename 65 65 geospatial_data[filename] = Geospatial_data(file_name=absolute_filename, 66 66 verbose=True) … … 71 71 #------------------------------------------------------------------------------- 72 72 73 print 'Add geospatial objects except', project.offshore_name5 74 G = None 75 for key in geospatial_data: 76 if key != project.offshore_name5: 77 G += geospatial_data[key] 73 print 'Add geospatial objects' # except', project.offshore_name5 74 G = geospatial_data 75 ##None 76 ##for key in geospatial_data: 77 ## if key != project.offshore_name5: 78 ## G += geospatial_data[key] 78 79 79 80 print 'Clip combined geospatial data' 80 G_clip = G.clip_outside(project.poly_aoi1) 81 G_all = G_clip + geospatial_data[project.offshore_name5] # G_off5 82 G_clipped = G_all.clip(project.poly_all) 81 ##G_clip = G.clip_outside(project.poly_aoi1) 82 ##G_all = G_clip + geospatial_data[project.offshore_name5] # G_off5 83 #G_clipped = G_all.clip(project.poly_all) 84 G_clip = G.clip(project.bounding_polygon) 85 83 86 84 87 print 'Export combined DEM file' 85 G_clip ped.export_points_file(project.combined_dir_name + '.pts')88 G_clip.export_points_file(project.combined_dir_name + '.pts') 86 89 print 'Do txt version too' 87 90 # Use for comparision in ARC 88 G_clip ped.export_points_file(project.combined_dir_name + '.txt')91 G_clip.export_points_file(project.combined_dir_name + '.txt') 89 92
Note: See TracChangeset
for help on using the changeset viewer.