Changeset 4921


Ignore:
Timestamp:
Jan 9, 2008, 2:41:09 PM (16 years ago)
Author:
nick
Message:

updated to use newer sww2csv functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/demos/cairns/GetTimeseries.py

    r4869 r4921  
    1616"""
    1717
    18 from os import getcwd, sep, altsep, mkdir, access, F_OK
     18from os import sep
    1919import project
    20 from anuga.abstract_2d_finite_volumes.util import sww2timeseries
     20from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges
    2121
    22 # nominate directory location of sww file with associated attribute
    23 production_dirs = {'slide': 'Slide',
    24                    'fixed_wave': 'Fixed Wave'}
     22sww2csv_gauges('slide'+sep+'slidesource.sww',
     23                project.gauge_filename,
     24                quantities = ['stage','speed'],
     25                verbose=True)
     26               
     27sww2csv_gauges('fixed_wave'+sep+'fixed_wavesource.sww',
     28               project.gauge_filename,
     29               quantities = ['stage', 'speed'],
     30               verbose=True)
    2531
    26 # Generate figures
    27 swwfiles = {}
    28 for label_id in production_dirs.keys():
    29     file_loc = label_id + sep
    30     swwfile = file_loc + label_id + 'source.sww'
    31     swwfiles[swwfile] = label_id
    3232
    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.