Changeset 4921
- Timestamp:
- Jan 9, 2008, 2:41:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/demos/cairns/GetTimeseries.py
r4869 r4921 16 16 """ 17 17 18 from os import getcwd, sep, altsep, mkdir, access, F_OK18 from os import sep 19 19 import project 20 from anuga.abstract_2d_finite_volumes.util import sww2 timeseries20 from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges 21 21 22 # nominate directory location of sww file with associated attribute 23 production_dirs = {'slide': 'Slide', 24 'fixed_wave': 'Fixed Wave'} 22 sww2csv_gauges('slide'+sep+'slidesource.sww', 23 project.gauge_filename, 24 quantities = ['stage','speed'], 25 verbose=True) 26 27 sww2csv_gauges('fixed_wave'+sep+'fixed_wavesource.sww', 28 project.gauge_filename, 29 quantities = ['stage', 'speed'], 30 verbose=True) 25 31 26 # Generate figures27 swwfiles = {}28 for label_id in production_dirs.keys():29 file_loc = label_id + sep30 swwfile = file_loc + label_id + 'source.sww'31 swwfiles[swwfile] = label_id32 32 33 texname, elev_output = sww2timeseries(swwfiles,34 project.gauge_filename,35 production_dirs,36 report = False,37 reportname = '',38 plot_quantity = ['stage', 'speed'],39 generate_fig = False,40 surface = False,41 time_min = None,42 time_max = None,43 title_on = True,44 verbose = True)
Note: See TracChangeset
for help on using the changeset viewer.