Changeset 3188 for production/onslow_2006/MOST_timeseries.py
- Timestamp:
- Jun 20, 2006, 5:59:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/MOST_timeseries.py
r3159 r3188 4 4 Inputs: 5 5 6 output dirs: dictionary of output directories with a 7 association to simulation, eg 50m boundary, 100m boundary 8 6 production dirs: dictionary of output directories with a 7 association to simulation, eg 50m boundary, 100m boundary 8 9 gauge_map: graphical output from make_gauges.py 10 9 11 Outputs: 10 12 … … 22 24 23 25 # User defined inputs 24 production_dirs = {'SU-AU_clip': 'MOST'} 26 production_dirs = {'20060515_001733': '100m boundary', 27 #'20060530_102753': '50m boundary'}#, 28 'MOST': 'MOST'} 25 29 26 30 gauge_map = 'boundarycomparison.png' 27 plot_quantity = ['stage', 'speed']28 31 29 32 # Create sections and graphs for each designated production directory … … 32 35 for label_id in production_dirs.keys(): 33 36 34 file_loc = project.boundarydir 35 swwfile = file_loc + project.boundary_basename + '.sww' 37 file_loc = project.outputdir + label_id + sep 38 swwfile = file_loc + project.basename + '.sww' 39 if label_id == 'MOST': 40 swwfile = project.boundarydir + project.boundary_basename + '.sww' 36 41 swwfiles[swwfile] = label_id 42 43 print 'swwfiles', swwfiles 37 44 38 45 texname, vec = sww2timeseries(swwfiles, … … 40 47 production_dirs, 41 48 report = True, 42 reportname = 'latexoutput_MOST_input', 43 plot_quantity = plot_quantity, 49 reportname = 'latexoutput_MOST_ANUGA_comparison', 50 plot_quantity = ['stage', 'speed'], 51 surface = False, 44 52 time_min = None, 45 53 time_max = None, … … 49 57 latex_output.append(texname) 50 58 59 from shutil import copy, move 60 copy ('report' + sep + texname + '.tex', project.comparereportdir + sep + texname + '.tex') 51 61 52 62 # Start report generation 53 reportdir = getcwd()+sep+'report'+sep 54 if access(reportdir,F_OK) == 0: 55 mkdir (reportdir) 56 input_name = reportdir + sep + 'MOST_input_onslow.tex' 63 input_name = project.comparereportdir + sep + 'comparison_onslow.tex' 57 64 fid = open(input_name, 'w') 65 66 s = '\\begin{figure}[hbt] \n \centerline{ \includegraphics[width=150mm, height=100mm]{../report_figures/%s}}' %gauge_map 67 fid.write(s) 68 69 s = """ 70 \caption{Point locations used to compare MOST and ANUGA for Onslow region.} 71 \label{fig:comparisonpoints} 72 \end{figure} 73 """ 74 fid.write(s) 75 76 s = '\input{%s} \n \clearpage \n \n' %latex_output[0] 77 fid.write(s) 78 58 79 59 80 # Generate latex output for location points … … 81 102 #s = '\\end{tabular} \n \end{center} \n \end{table} \n \n' 82 103 #fid.write(s) 83 84 s = '\\begin{figure}[hbt] \n \centerline{ \includegraphics[width=150mm, height=100mm]{../report_figures/%s}}' %gauge_map85 fid.write(s)86 87 s = """88 \caption{Point locations used for MOST input for Onslow region.}89 \label{fig:boundarypoints}90 \end{figure}91 """92 fid.write(s)93 94 s = '\input{%s} \n \clearpage \n \n' %latex_output[0]95 fid.write(s)
Note: See TracChangeset
for help on using the changeset viewer.