Line | |
---|
1 | """ |
---|
2 | Generate images of "gauges" for production run |
---|
3 | |
---|
4 | Inputs: |
---|
5 | |
---|
6 | production dirs: dictionary of production directories with a |
---|
7 | association to that simulation run, eg high tide, |
---|
8 | low tide and MSL. |
---|
9 | |
---|
10 | Outputs: |
---|
11 | |
---|
12 | * figures used for report stored in the report_figure directory |
---|
13 | |
---|
14 | """ |
---|
15 | from os import getcwd, sep, altsep, mkdir, access, F_OK |
---|
16 | import project |
---|
17 | from anuga.shallow_water.data_manager import get_timeseries |
---|
18 | |
---|
19 | # Create report directory |
---|
20 | reportdir = getcwd()+sep+'report'+sep |
---|
21 | if access(reportdir,F_OK) == 0: |
---|
22 | mkdir (reportdir) |
---|
23 | |
---|
24 | |
---|
25 | production_dirs = { 'dsg': 'URS boundary normal' } |
---|
26 | plot_quantity = ['stage', 'momentum'] |
---|
27 | get_timeseries(production_dirs, project.output_dir, project.scenario_name, |
---|
28 | project.gauges_dir_name, plot_quantity) |
---|
Note: See
TracBrowser
for help on using the repository browser.