Changeset 4856 for anuga_work/production/onslow_2006/export_results.py
- Timestamp:
- Nov 27, 2007, 4:18:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/onslow_2006/export_results.py
r4581 r4856 1 import project , os1 import project_grad, os 2 2 import sys 3 3 … … 11 11 #time_dir = '' # HAT 1 in Pt Hedland 10000 yr 12 12 #time_dir = '' # MSL 1 in Pt Hedland 10000 yr 13 #time_dir = '20070 530_082920_run_final_1.5_onslow_nbartzis' # HAT 1 in Onslow 10000 yr13 #time_dir = '20070608_060316_run_final_1.5_onslow_nbartzis' # HAT 1 in Onslow 10000 yr 14 14 #time_dir = '20070531_002753_run_final_0.0_onslow_nbartzis' # MSL 1 in Onslow 10000 yr 15 time_dir = '20070608_062811_run_final_1.5_exmouth_nbartzis' # HAT 1 in Exmouth 10000 yr15 #time_dir = '20070608_062811_run_final_1.5_exmouth_nbartzis' # HAT 1 in Exmouth 10000 yr 16 16 #time_dir = '20070605_234905_run_final_0.0_exmouth_nbartzis' # MSL 1 in Exmouth 10000 yr 17 17 #time_dir = '20060704_063005' # 2006 simulation HAT Mw9 18 #time_dir = '20070619_042140_run_final_1.5_exmouth_nbartzis' # exmouth HAT longer time 19 #time_dir = '20070904_235118_run_final_1.5_jsexton_exmouth_original' # revised model original data 20 #time_dir = '20070905_052311_run_final_1.5_jsexton_exmouth_revised' # revised model original + survey data 21 time_dir = '20070906_061418_run_final_1.5_jsexton_exmouth_original' # refined again 22 #time_dir = '20070907_055936_run_final_1.5_jsexton_exmouth_revised' # refined again 18 23 cellsize = 25 19 24 #cellsize = 150 20 25 timestep = None 21 directory = project.outputdir 22 #name = directory + time_dir + sep + project.scenario_name 23 name = directory+time_dir+sep+project.scenario_name 26 directory = project_grad.output_dir 27 #name = directory + time_dir + sep + project_grad.scenario_name 28 name = directory+time_dir+sep+project_grad.scenario_name 29 #name = directory+time_dir+sep+'onslow_time_35760_0' 24 30 #name = directory+time_dir+sep+'source' 25 31 26 32 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 27 33 28 elevgrid = directory+time_dir+sep+'onslow_elevation_town'34 #elevgrid = directory+time_dir+sep+'onslow_elevation_town' 29 35 30 convert_dem_from_ascii2netcdf(elevgrid, use_cache=True, verbose=True)36 #convert_dem_from_ascii2netcdf(elevgrid, use_cache=True, verbose=True) 31 37 32 dem2pts(elevgrid,run_up_elev=True,run_up_loc=True)38 #dem2pts(elevgrid,run_up_elev=True,run_up_loc=True) 33 39 34 """35 40 is_parallel = False 36 41 #is_parallel = True … … 40 45 #var = [2,3,4] # depth and speed 41 46 #var = [2] # depth 42 var = [ 0]47 var = [4] 43 48 44 49 for which_var in var: … … 48 53 49 54 if which_var == 1: # Absolute Momentum 50 outname = name + '_momentum _i1'55 outname = name + '_momentum' 51 56 quantityname = '(xmomentum**2 + ymomentum**2)**0.5' 52 57 … … 73 78 timestep = timestep, 74 79 cellsize = cellsize, 75 easting_min = project .e_min_area,76 easting_max = project .e_max_area,77 northing_min = project .n_min_area,78 northing_max = project .n_max_area,80 easting_min = project_grad.e_min_area, 81 easting_max = project_grad.e_max_area, 82 northing_min = project_grad.n_min_area, 83 northing_max = project_grad.n_max_area, 79 84 reduction = max, 80 85 verbose = True, … … 86 91 timestep = timestep, 87 92 cellsize = cellsize, 88 easting_min = project .e_min_area,89 easting_max = project .e_max_area,90 northing_min = project .n_min_area,91 northing_max = project .n_max_area,93 easting_min = project_grad.e_min_area, 94 easting_max = project_grad.e_max_area, 95 northing_min = project_grad.n_min_area, 96 northing_max = project_grad.n_max_area, 92 97 reduction = max, 93 98 verbose = True, 94 99 format = 'asc') 95 100 96 """
Note: See TracChangeset
for help on using the changeset viewer.