Changeset 9357
- Timestamp:
- Oct 29, 2014, 9:49:45 AM (11 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/inlet.py
r9009 r9357 254 254 """ 255 255 256 assert volume >= 0.0 257 256 258 areas = self.get_areas() 257 259 stages = self.get_stages() … … 266 268 summed_volume = num.zeros_like(areas) 267 269 summed_volume[1:] = num.cumsum(summed_areas[:-1]*num.diff(stages[stages_order])) 268 269 270 assert volume >= 0.0271 272 270 273 271 index = num.nonzero(summed_volume<=volume)[0][-1] -
trunk/anuga_core/validation_tests/analytical_exact/deep_wave/run_wave.py
r9352 r9357 121 121 #------------------------------------------------------------------------------ 122 122 123 for t in domain.evolve(yieldstep = 1 e1, finaltime = 2e4):123 for t in domain.evolve(yieldstep = 10, finaltime = 2e4): 124 124 domain.write_time() 125 125 if interactive_visualisation: -
trunk/anuga_core/validation_tests/analytical_exact/subcritical_over_bump/produce_results.py
r9230 r9357 4 4 args = anuga.get_args() 5 5 6 produce_report('numerical_su percritical.py', args=args)6 produce_report('numerical_subcritical.py', args=args) 7 7 8 8 -
trunk/anuga_core/validation_tests/case_studies/towradgi/Compare_results_with_fieldObs.py
r9265 r9357 5 5 """ 6 6 import scipy 7 import matplotlib 8 matplotlib.use('Agg') 7 9 from matplotlib import pyplot as pyplot 8 10 from anuga.utilities import plot_utils as util 11 import gdal 9 12 10 13 … … 61 64 print 'Making tifs' 62 65 util.Make_Geotif(swwdir+swwname, 63 ['depth','velocity','depthIntegratedVelocity','elevation' ],'max',66 ['depth','velocity','depthIntegratedVelocity','elevation', 'friction'],'max', 64 67 CellSize=CellSize,EPSG_CODE=32756,output_dir=tif_outdir) 65 68 print 'Made tifs' … … 70 73 # Plot depth raster with discrepency between model and data 71 74 depthFile=tif_outdir+'/Towradgi_historic_flood_depth_max.tif' 72 myDepth=scipy.misc.imread(depthFile) 75 #myDepth=scipy.misc.imread(depthFile) 76 raster = gdal.Open(depthFile) 77 myDepth = scipy.array(raster.ReadAsArray()) 78 79 73 80 X=scipy.arange(p.xllcorner, p.xllcorner+myDepth.shape[1]*CellSize, CellSize) 74 81 Y=scipy.arange(p.yllcorner, p.yllcorner+myDepth.shape[0]*CellSize, CellSize)
Note: See TracChangeset
for help on using the changeset viewer.