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 |
---|
2 | from pyvolution.util import sww2timeseries |
---|
3 | import project |
---|
4 | from os import sep |
---|
5 | from shutil import copy |
---|
6 | |
---|
7 | # define directory location of sww and gauge data |
---|
8 | timestampdir = 'Slump_tests'+sep+'t30_10km_longtime_k1'#'No_IC' |
---|
9 | file_loc = project.outputdir + timestampdir + sep #project.outputtimedir |
---|
10 | #swwfile = file_loc + 'slump_poly_ingo_test'+'.sww' #file_loc+project.outputname+'.sww' |
---|
11 | swwfile = file_loc + 'slump_k1'+'.sww' #file_loc+project.outputname+'.sww' |
---|
12 | gauge_filename = project.gauge_filename |
---|
13 | label_id = timestampdir |
---|
14 | |
---|
15 | # False to generate latex output, True otherwise |
---|
16 | title_on = False |
---|
17 | |
---|
18 | # generate figures - see sww2timeseries for documentation |
---|
19 | texname = 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 | |
---|
29 | print 'finished plotting time series' |
---|
30 | |
---|
31 | # if generating latex output, copy latex file to scenario report directory |
---|
32 | # and linked to appropriate milestone |
---|
33 | report_dir = '..'+sep+'scenario_reports'+sep+'report_end_FY06' |
---|
34 | if title_on == False: copy (texname, report_dir + sep + texname) |
---|
35 | |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.