Changeset 6982 for anuga_work/production/australia_ph2/carnarvon
- Timestamp:
- May 6, 2009, 12:06:04 PM (16 years ago)
- 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 55 55 convert_dem_from_ascii2netcdf(absolute_filename, 56 56 basename_out=absolute_filename, 57 use_cache= True,57 use_cache=False, 58 58 verbose=True) 59 dem2pts(absolute_filename, use_cache= True, verbose=True)59 dem2pts(absolute_filename, use_cache=False, verbose=True) 60 60 61 61 geospatial_data[filename] = Geospatial_data(file_name=absolute_filename+'.pts', … … 86 86 ##G_all = G_clip + geospatial_data[project.point_filenames[4]] 87 87 #G_clipped = G_all.clip(project.poly_all) 88 G_clip = G.clip(project.bounding_polygon)88 #G_clip = G.clip(project.bounding_polygon) 89 89 90 90 91 91 print 'Export combined DEM file' 92 G _clip.export_points_file(project.combined_elevation + '.pts')92 G.export_points_file(project.combined_elevation + '.pts') 93 93 print 'Do txt version too' 94 94 # Use for comparision in ARC 95 G _clip.export_points_file(project.combined_elevation + '.txt')95 G.export_points_file(project.combined_elevation + '.txt') 96 96 -
anuga_work/production/australia_ph2/carnarvon/project.py
r6971 r6982 32 32 event_number = int(sys.argv[1]) 33 33 else: 34 event_number = 27285# the event number or the mux file name34 event_number = 68754 # the event number or the mux file name 35 35 36 36 event_number_list = [27285, 68754, 70881] # To piggy back multiple events … … 78 78 # Used in build_elevation.py 79 79 # Format for ascii grids, as produced in ArcGIS + a projection file 80 ascii_grid_filenames = ['grid 250m_simple'] # 250m grid 200580 ascii_grid_filenames = ['grid_250m_simple'] # 250m grid 2005 81 81 82 82 # Format for points is x,y,elevation (with header) … … 132 132 # Landward bounding points 133 133 # Format easting,northing (no header) 134 landward_boundary_filename = 'landward_boundary_simple .csv'134 landward_boundary_filename = 'landward_boundary_simple2.csv' 135 135 136 136 # MUX input filename. … … 145 145 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 146 146 # If nothing is specified, local cache will be used. 147 cachedir = '.python_cache_phII'147 #cachedir = '.python_cache_phII' 148 148 149 149 … … 173 173 # Output filename for elevation 174 174 # this is a combination of all the data generated in build_elevation.py 175 combined_elevation_basename = scenario_name + '_combined_elevation '175 combined_elevation_basename = scenario_name + '_combined_elevation_simple' 176 176 177 177 #------------------------------------------------------------------------------- … … 191 191 # Create absolute pathname for cache directory 192 192 # 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 caching196 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) 197 197 198 198 # check various directories/files that must exist … … 219 219 220 220 # The absolute pathname of the all elevation, generated in build_elevation.py 221 combined_elevation = join(topographies_folder, combined_elevation_basename) +'_simple'221 combined_elevation = join(topographies_folder, combined_elevation_basename) 222 222 223 223 # The absolute pathname of the mesh, generated in run_model.py
Note: See TracChangeset
for help on using the changeset viewer.