Ignore:
Timestamp:
Feb 5, 2009, 2:52:42 PM (16 years ago)
Author:
kristy
Message:

Updated standardised, not tested yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/standardised_version/build_busselton.py

    r6276 r6279  
    3030# output to file
    3131#------------------------------------------------------------------------------
    32 copy_code_files(project.output_build_time_dir,__file__,
     32copy_code_files(project.output_build,__file__,
    3333                os.path.dirname(project.__file__)+os.sep+\
    3434                project.__name__+'.py' )
    35 start_screen_catcher(project.output_build_time_dir)
     35start_screen_catcher(project.output_build)
    3636
    3737
     
    4444#------------------------------------------------------------------------------
    4545
    46 print 'project.poly_all', project.poly_all
    47 print 'project.combined_dir_name', project.combined_dir_name
     46print 'project.bounding_polygon', project.bounding_polygon
     47print 'project.combined_elevation_basename', project.combined_elevation_basename
    4848
    4949# Create Geospatial data from ASCII files
    5050geospatial_data = {}
    5151for filename in project.ascii_grid_filenames:
    52     absolute_filename = project.topographies_dir + filename
     52    absolute_filename = project.topographies_folder + os.sep + filename
    5353    convert_dem_from_ascii2netcdf(absolute_filename,
    5454                                  basename_out=absolute_filename,
     
    6262# Create Geospatial data from TXT files
    6363for filename in project.point_filenames:
    64     absolute_filename = project.topographies_dir + filename
     64    absolute_filename = project.topographies_folder  + os.sep + filename
    6565    geospatial_data[filename] = Geospatial_data(file_name=absolute_filename,
    6666                                                verbose=True)
     
    7171#-------------------------------------------------------------------------------
    7272
    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]
     73print 'Add geospatial objects' # except', project.offshore_name5
     74G = geospatial_data
     75##None
     76##for key in geospatial_data:
     77##    if key != project.offshore_name5:
     78##        G += geospatial_data[key]
    7879       
    7980print '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)
     84G_clip = G.clip(project.bounding_polygon)
     85
    8386
    8487print 'Export combined DEM file'
    85 G_clipped.export_points_file(project.combined_dir_name + '.pts')
     88G_clip.export_points_file(project.combined_dir_name + '.pts')
    8689print 'Do txt version too'
    8790# Use for comparision in ARC
    88 G_clipped.export_points_file(project.combined_dir_name + '.txt')
     91G_clip.export_points_file(project.combined_dir_name + '.txt')
    8992
Note: See TracChangeset for help on using the changeset viewer.