- Timestamp:
- Dec 7, 2007, 11:01:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r4876 r4878 1504 1504 verbose=False): 1505 1505 1506 """ 1507 WARNING!! NO UNIT TESTS... could make some as to test filename..but have 1506 """ WARNING!! NO UNIT TESTS... could make some as to test filename..but have 1508 1507 spend ages on this already... 1508 1509 1509 1510 1510 Read in csv files that have the right header information and … … 1556 1556 OUTPUTS: None, it saves the plots to 1557 1557 <output_dir><base_name><plot_number><extra_plot_name>.png 1558 1559 Usage: csv2timeseries_graphs({'J:'+sep+'anuga_validation'+sep:['new',20,-.1], 1560 'J:'+sep+'conical_island'+sep:['test',0,0]}, 1561 output_dir='', 1562 plot_numbers=['1','3'], 1563 quantities=['stage','depth','bearing'], 1564 base_name='gauge_b', 1565 assess_all_csv_files=True, 1566 verbose=True) 1567 This will produce one plot for each quantity (therefore 3) in the current directory, 1568 each plot will have 2 lines on them. The first plot named 'new' will have the time 1569 offseted by 20secs and the stage height adjusted by -0.1m 1570 1558 1571 1559 1572 """ 1560 import pylab# import plot, xlabel, ylabel, savefig, \ 1561 #ion, hold, axis, close, figure, legend 1573 import pylab# 1562 1574 from os import sep 1563 1575 from anuga.shallow_water.data_manager import \ … … 2282 2294 They will all have a header 2283 2295 2296 Usage: gauges_sww2csv(sww_file='test1.sww', 2297 quantities = ['stage', 'elevation','depth','bearing'], 2298 gauge_file='gauge.txt') 2299 2284 2300 Interpolate the quantities at a given set of locations, given 2285 2301 an sww file. … … 2293 2309 2294 2310 This is really returning speed, not velocity. 2311 2312 2295 2313 """ 2296 2314 from csv import reader,writer
Note: See TracChangeset
for help on using the changeset viewer.