source: production/sydney_2006/run_timeseries.py @ 3171

Last change on this file since 3171 was 2795, checked in by sexton, 19 years ago

(1) inclusion of sww2timeseries which generates time series figures from sww file and which can output latex file if requested. (2) Script using sww2timeseries for sydney scenario

File size: 1.4 KB
Line 
1#from get_timeseries_test import sww2timeseries
2from pyvolution.util import sww2timeseries
3import project
4from os import sep
5from shutil import copy
6
7# define directory location of sww and gauge data
8timestampdir = 'Slump_tests'+sep+'t30_10km_longtime_k1'#'No_IC'
9file_loc = project.outputdir + timestampdir + sep #project.outputtimedir
10#swwfile = file_loc + 'slump_poly_ingo_test'+'.sww' #file_loc+project.outputname+'.sww'
11swwfile = file_loc + 'slump_k1'+'.sww' #file_loc+project.outputname+'.sww'
12gauge_filename = project.gauge_filename
13label_id = timestampdir
14
15# False to generate latex output, True otherwise
16title_on = False
17
18# generate figures - see sww2timeseries for documentation
19texname = sww2timeseries(swwfile,
20                         gauge_filename,
21                         file_loc,
22                         label_id,
23                         plot_quantity = ['stage', 'velocity', 'bearing'],
24                         time_min = None,
25                         time_max = None,
26                         title_on = title_on,   
27                         verbose = True)
28
29print 'finished plotting time series'
30
31# if generating latex output, copy latex file to scenario report directory
32# and linked to appropriate milestone
33report_dir = '..'+sep+'scenario_reports'+sep+'report_end_FY06'
34if title_on == False: copy (texname, report_dir + sep + texname)
35
36
37
Note: See TracBrowser for help on using the repository browser.