source: anuga_work/production/onslow_2006/run_timeseries.py @ 4354

Last change on this file since 4354 was 3514, checked in by duncan, 18 years ago

Hi all,
I'm doing a change in the anuga structure, moving the code to

\anuga_core\source\anuga

After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/

This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.

If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.

Cheers
Duncan

File size: 983 bytes
Line 
1""" Script for generating figures, see sww2timeseries for documentation"""
2
3from anuga.pyvolution.util import sww2timeseries
4import project
5from os import sep
6
7# define directory location of sww and gauge data
8production_dirs = {'20060426_004129': '1.5 AHD',
9                   '20060426_004237': '-1.5 AHD',
10                   '20060515_001733': '0 AHD'}
11
12for label_id in production_dirs.keys():
13   
14    file_loc = project.outputdir + label_id + sep
15    swwfile = file_loc + project.basename + '.sww'
16    swwfiles[swwfile] = label_id
17   
18# generate figures - see sww2timeseries for documentation
19sww2timeseries(swwfiles,
20               project.gauge_filename,
21               production_dirs,
22               report = False,
23               plot_quantity = ['stage', 'speed'],
24               time_min = None,
25               time_max = None,
26               title_on = False,
27               verbose = True)
28
29print 'finished plotting time series'
30
31
32
33
34
Note: See TracBrowser for help on using the repository browser.