Changeset 5616
- Timestamp:
- Aug 6, 2008, 9:36:38 AM (16 years ago)
- Location:
- anuga_work/development/Hinwood_2008
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/Hinwood_2008/calc_norm.py
r5595 r5616 38 38 return band_condition 39 39 40 def auto_rrms(outputdir_tag, scenarios, quantity ):40 def auto_rrms(outputdir_tag, scenarios, quantity, y_location_tag=':0.0'): 41 41 """ 42 42 Given a bunch of scenarios that have CSV guage files, calc the … … 56 56 for gauge_x in run_data['gauge_x']: 57 57 gauge_x = str(gauge_x) 58 location_sims.append(gauge_x + ':0.0')58 location_sims.append(gauge_x + y_location_tag) 59 59 location_exps.append(gauge_x) 60 60 … … 236 236 sim['rmsd'] = sim['err']/sqrt(sim['amount']) 237 237 settings[outputdir_tag] = sim 238 print "settings", settings238 #print "settings", settings 239 239 240 240 aux = [(settings[k]['rmsd'], k) for k in settings.keys()] … … 273 273 274 274 outputdir_tags = [] 275 #outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_H") 276 outputdir_tags.append("_nolmts_wdth_0.1_z_0.0_ys_0.01_mta_0.01_G") 277 #outputdir_tag = "_good_tri_area_0.01_D" 278 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G") 275 279 outputdir_tags.append("_lmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G") 280 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.05_mta_1e-05_G") 281 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.001_G") 282 outputdir_tags.append("_nolmts_wdth_0.01_z_0.012_ys_0.01_mta_1e-05_G") 283 outputdir_tags = [] # _no_velocity_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G 276 284 outputdir_tags.append("_nolmts_wdth_0.1_z_0.0_ys_0.01_mta_0.01_G") 277 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.001_G") 278 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G") 279 outputdir_tags.append("_nolmts_wdth_0.01_z_0.012_ys_0.01_mta_1e-05_G") 280 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.05_mta_1e-05_G") 281 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.05_mta_1e-05_G") 282 outputdir_tags = [] # _no_velocity_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G 283 outputdir_tags.append("_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G") 284 outputdir_tags.append("_no_velocity_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G") 285 outputdir_tag = "_good_lmts_wdth_1.0_z_0.012_ys_0.01_mta_0.001_F" 285 286 #outputdir_tag = "_good_lmts_wdth_1.0_z_0.012_ys_0.01_mta_0.001_H" 286 287 #outputdir_tag = "_test_limiterC" 287 288 #scenarios = [scenarios[0]] # !!!!!!!!!!!!!!!!!!!!!! 288 289 #scenarios = scenarios[4:] # !!!!!!!!!!!!!!!!!!!!!! 289 290 #for outputdir_tag in outputdir_tags: 290 # auto_rrms(outputdir_tag, scenarios, "stage")291 # auto_rrms(outputdir_tag, scenarios, "stage", y_location_tag=':0.0') 291 292 292 293 #scenarios = [scenarios[0]] # !!!!!!!!!!!!!!!!!!!!!! 293 #auto_plot_rrms_sensor_settings(outputdir_tags, scenarios, "stage")294 compare_different_settings(outputdir_tags, scenarios, "stage")294 auto_plot_rrms_sensor_settings(outputdir_tags, scenarios, "stage") 295 #compare_different_settings(outputdir_tags, scenarios, "stage") -
anuga_work/development/Hinwood_2008/plot.py
r5595 r5616 61 61 62 62 def Hinwood_files_locations(run_data, outputdir_tag, plot_type, 63 quantity = "depth"): 63 quantity = "depth", 64 y_location_tag=':0.0'): 64 65 """ 65 66 run_data is a dictionary of data describing a Hinwood experiment … … 83 84 for gauge_x in run_data['gauge_x']: 84 85 gauge_x = str(gauge_x) 85 location_sims.append(gauge_x + ':0.0')86 location_sims.append(gauge_x + y_location_tag) 86 87 location_exps.append(gauge_x) 87 88 save_as_list.append(pro_instance.plots_dir + sep + \ … … 90 91 return file_exp, file_sim, location_sims, location_exps, outputdir_name, \ 91 92 save_as_list 92 def plot(scenarios, outputdir_tag, quantity = "stage",is_interactive=False): 93 94 def plot(scenarios, outputdir_tag, quantity = "stage",is_interactive=False, 95 y_location_tag=':0.0'): 93 96 plot_type = ".pdf" 94 97 … … 96 99 97 100 temp = Hinwood_files_locations(run_data, outputdir_tag, 98 plot_type, quantity) 101 plot_type, quantity, 102 y_location_tag=y_location_tag) 99 103 100 104 file_exp, file_sim, location_sims, location_exps, outputdir_name, \ 101 105 save_as_list = temp 106 print "file_exp",file_exp 102 107 print "run_data['scenario_id']", run_data['scenario_id'] 103 108 #location_sims = [location_sims[0]] … … 135 140 from scenarios import scenarios 136 141 outputdir_tag = "_good_tri_area_0.01_limiterE" 137 outputdir_tag = "_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_G" 142 outputdir_tag = "" 143 outputdir_tag = "_nolmts_wdth_0.1_z_0.012_ys_0.01_mta_0.01_H" 144 outputdir_tag = "_good_tri_area_0.01_D" 138 145 #outputdir_tag = "_nolmts_wdth_0.01_z_0.012_ys_0.01_mta_1e-05_G" 139 146 #outputdir_tag = "_test_C" 140 147 #scenarios = scenarios[1:] 141 #scenarios = [scenarios[ 0]]148 #scenarios = [scenarios[4]] 142 149 is_interactive = False 143 150 #is_interactive = True 144 plot(scenarios, outputdir_tag,is_interactive=is_interactive) 151 plot(scenarios, outputdir_tag,is_interactive=is_interactive, 152 y_location_tag=':0.5') 145 153 -
anuga_work/development/Hinwood_2008/run_dam.py
r5594 r5616 309 309 # 8 is 0.00001 yieldstep = 0.05 310 310 311 #run_type = 1312 run_type = 4311 run_type = 1 312 #run_type = 4 313 313 #for run_data in [scenarios[5]]: 314 #scenarios = scenarios[ 2:]314 #scenarios = scenarios[3:] 315 315 #scenarios = [scenarios[0]] 316 316 width = 1.0 … … 325 325 use_limits=False, 326 326 friction=0.012, 327 end_tag='_ G')327 end_tag='_H') 328 328 #gauges_for_slope(pro_instance.outputdir,[run_data])
Note: See TracChangeset
for help on using the changeset viewer.