Ignore:
Timestamp:
Oct 9, 2009, 5:17:27 PM (15 years ago)
Author:
monica
Message:

mandurah tsunami file setup - input elevation and polygons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/wa/mandurah_2009/build_elevation.py

    r7545 r7546  
    6464        geospatial_data[filename] = G_grid.clip(project.bounding_polygon)
    6565
    66 # Create Geospatial data from TXT files
     66#Create Geospatial data from TXT files
    6767if not project.point_filenames == []:
    6868    for filename in project.point_filenames:
     
    7979print 'Add geospatial objects' # except', project.offshore_name5
    8080G = None
     81G1 = None
     82G2 = None
    8183for key in geospatial_data:
    82     #if key == project.point_filenames[4] or key == project.ascii_filenames[1]:
    83     #    # Skip these files for now
    84     #    continue
     84   if key == 'm_peel_1m':
     85        G1 = geospatial_data[key].clip(project.clip_box)
     86
     87   if key == 'ph10mex_clipped':
     88        G2 = geospatial_data[key].clip_outside(project.clip_box)
     89
     90    G += geospatial_data[key]
     91G = G + G1 + G2
    8592   
    86     G += geospatial_data[key]
    87        
    88 #print 'Clip combined geospatial data'
    89 ##G_clip = G.clip_outside(project.poly_aoi1)
    90 ##G_all = G_clip + geospatial_data[project.point_filenames[4]]
    91 #G_clipped = G_all.clip(project.poly_all)
    92 #G_clip = G.clip(project.bounding_polygon)
    93 
    94 
    9593print 'Export combined DEM file'
    9694G.export_points_file(project.combined_elevation + '.pts')
     
    9896# Use for comparision in ARC
    9997G.export_points_file(project.combined_elevation + '.txt')
    100 
Note: See TracChangeset for help on using the changeset viewer.