Changeset 4933


Ignore:
Timestamp:
Jan 14, 2008, 4:17:42 PM (17 years ago)
Author:
nick
Message:

updated GetTimeseries?.py to use new sww2csv and csv2timeseries_graphs

File:
1 edited

Legend:

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

    r4921 r4933  
    1818from os import sep
    1919import project
    20 from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges
     20from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges,csv2timeseries_graphs
    2121
    2222sww2csv_gauges('slide'+sep+'slidesource.sww',
    2323                project.gauge_filename,
    24                 quantities = ['stage','speed'],
     24                quantities = ['stage','speed','depth','elevation'],
    2525                verbose=True)
    2626               
    2727sww2csv_gauges('fixed_wave'+sep+'fixed_wavesource.sww',
    2828               project.gauge_filename,
    29                quantities = ['stage', 'speed'],
     29               quantities = ['stage', 'speed','depth','elevation'],
    3030               verbose=True)
    3131
     32try:
     33    import pylab
     34    csv2timeseries_graphs(directories_dic={'slide'+sep:['Slide',0, 0],
     35                                           'fixed_wave'+sep:['Fixed Wave',0,0]},
     36                            output_dir='fixed_wave'+sep,
     37                            base_name='gauge_',
     38                            plot_numbers='',
     39                            quantities=['stage','speed','depth'],
     40                            extra_plot_name='',
     41                            assess_all_csv_files=True,                           
     42                            create_latex=False,
     43                            verbose=True)
     44except ImportError:
     45    #ANUGA don't need pylab to work so the system doesn't
     46    #rely on pylab being installed
     47    print 'must have pylab install to generate plots'
     48   
    3249
Note: See TracChangeset for help on using the changeset viewer.