- Timestamp:
- Sep 17, 2014, 4:28:53 PM (11 years ago)
- Location:
- trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2
- Files:
-
- 8 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/project.py
r9336 r9337 19 19 import numpy 20 20 from anuga.utilities import spatialInputUtil as su 21 import anuga22 21 from anuga_parallel import myid, barrier, send, receive, numprocs 23 22 … … 45 44 # 46 45 47 finaltime = 0.05 * 3600.046 finaltime = 10. # 0.05 * 3600.0 48 47 49 48 # Model time between output file timesteps in seconds … … 243 242 244 243 if pt_areas is not None: 245 region_point_areas = su.read region_point_areas(244 region_point_areas = su.readRegionPointAreas( 246 245 pt_areas, 247 246 convert_length_to_area=True) … … 336 335 337 336 def setup_directory_structure(): 338 """ 339 Make output directories, send important data to files 337 """Make output directories, send important data to files 338 339 This has no arguments, and returns nothing, but has lots of important side 340 effects 340 341 """ 341 342 … … 378 379 379 380 def sav_lines(lines, filename='check.txt'): 381 """quick convenience function 382 """ 380 383 new_a = numpy.array(lines) 381 384 numpy.savetxt(filename, new_a) -
trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/raster_outputs.py
r9336 r9337 145 145 the rasters to 146 146 - proj4string defining the coordinate system 147 - my TimeStep -- option from util.Make_Geotif147 - my_time_step -- option from util.Make_Geotif 148 148 use 'max' to plot the maxima 149 149 use [0, 5, 10] to plot the … … 210 210 tmp_arr, 211 211 output_quantities=[quant + '_MAX'], 212 cell_size=cell_size,212 CellSize=cell_size, 213 213 proj4string=proj4string, 214 214 verbose=True, … … 221 221 util.Make_Geotif( 222 222 sww_file, 223 my _time_step=[0],223 myTimeStep=[0], 224 224 output_quantities=['elevation', 'friction'], 225 cell_size=cell_size,225 CellSize=cell_size, 226 226 proj4string=proj4string, 227 227 verbose=True, … … 232 232 util.Make_Geotif( 233 233 sww_file, 234 my _time_step=my_time_step,234 myTimeStep=my_time_step, 235 235 output_quantities=[ 236 236 'depth', … … 241 241 'friction', 242 242 ], 243 cell_size=cell_size,243 CellSize=cell_size, 244 244 proj4string=proj4string, 245 245 verbose=True, … … 263 263 elevation_raster, 264 264 raster_extent, 265 cell_size,265 CellSize, 266 266 clip_polygon, 267 267 clip_polygon_layer, -
trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/setup_initial_conditions.py
r9336 r9337 120 120 # The 'saddle 10m' dataset 121 121 122 sf = '../anuga/topographies/patong_10m_small_grid_for_anuga_sub_Project.txt' 122 sf =\ 123 '../anuga/topographies/patong_10m_small_grid_for_anuga_sub_Project.txt' 123 124 elevation_saddle_10m = \ 124 125 numpy.genfromtxt(sf, delimiter=',', skip_header=1)
Note: See TracChangeset
for help on using the changeset viewer.