Ignore:
Timestamp:
May 6, 2009, 12:06:04 PM (16 years ago)
Author:
kristy
Message:
 
Location:
anuga_work/production/australia_ph2/carnarvon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/carnarvon/build_elevation.py

    r6412 r6982  
    5555        convert_dem_from_ascii2netcdf(absolute_filename,
    5656                                      basename_out=absolute_filename,
    57                                       use_cache=True,
     57                                      use_cache=False,
    5858                                      verbose=True)
    59         dem2pts(absolute_filename, use_cache=True, verbose=True)
     59        dem2pts(absolute_filename, use_cache=False, verbose=True)
    6060
    6161        geospatial_data[filename] = Geospatial_data(file_name=absolute_filename+'.pts',
     
    8686##G_all = G_clip + geospatial_data[project.point_filenames[4]]
    8787#G_clipped = G_all.clip(project.poly_all)
    88 G_clip = G.clip(project.bounding_polygon)
     88#G_clip = G.clip(project.bounding_polygon)
    8989
    9090
    9191print 'Export combined DEM file'
    92 G_clip.export_points_file(project.combined_elevation + '.pts')
     92G.export_points_file(project.combined_elevation + '.pts')
    9393print 'Do txt version too'
    9494# Use for comparision in ARC
    95 G_clip.export_points_file(project.combined_elevation + '.txt')
     95G.export_points_file(project.combined_elevation + '.txt')
    9696
  • anuga_work/production/australia_ph2/carnarvon/project.py

    r6971 r6982  
    3232    event_number = int(sys.argv[1])
    3333else:   
    34     event_number = 27285    # the event number or the mux file name
     34    event_number = 68754    # the event number or the mux file name
    3535
    3636event_number_list = [27285, 68754, 70881] # To piggy back multiple events
     
    7878# Used in build_elevation.py
    7979# Format for ascii grids, as produced in ArcGIS + a projection file
    80 ascii_grid_filenames = ['grid250m_simple'] # 250m grid 2005
     80ascii_grid_filenames = ['grid_250m_simple'] # 250m grid 2005
    8181
    8282# Format for points is x,y,elevation (with header)
     
    132132# Landward bounding points
    133133# Format easting,northing (no header)
    134 landward_boundary_filename = 'landward_boundary_simple.csv'
     134landward_boundary_filename = 'landward_boundary_simple2.csv'
    135135
    136136# MUX input filename.
     
    145145# Whatever is specified here will be relative to INUNDATION_HOME/.cache
    146146# If nothing is specified, local cache will be used.
    147 cachedir = '.python_cache_phII'
     147#cachedir = '.python_cache_phII'
    148148
    149149
     
    173173# Output filename for elevation
    174174# this is a combination of all the data generated in build_elevation.py
    175 combined_elevation_basename = scenario_name + '_combined_elevation'
     175combined_elevation_basename = scenario_name + '_combined_elevation_simple'
    176176
    177177#-------------------------------------------------------------------------------
     
    191191# Create absolute pathname for cache directory
    192192# and change caching to use it
    193 if 'cachedir' in dir():
    194     cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir)
    195     from anuga.caching import caching
    196     caching.set_option('cachedir', cachedir)
     193##if 'cachedir' in dir():
     194##    cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir)
     195##    from anuga.caching import caching
     196##    caching.set_option('cachedir', cachedir)
    197197   
    198198# check various directories/files that must exist
     
    219219
    220220# The absolute pathname of the all elevation, generated in build_elevation.py
    221 combined_elevation = join(topographies_folder, combined_elevation_basename)+'_simple'
     221combined_elevation = join(topographies_folder, combined_elevation_basename)
    222222
    223223# The absolute pathname of the mesh, generated in run_model.py
Note: See TracChangeset for help on using the changeset viewer.