source: anuga_work/production/hobart_2009/For_DVD/get_timeseries.py @ 7324

Last change on this file since 7324 was 7324, checked in by kristy, 14 years ago

Updating script to look better!

File size: 1.1 KB
Line 
1"""
2Generate time series of nominated "gauges".
3Input: sww file from run_model.py
4       gauges project.gauge_filename
5Output: csv files stage,speed,depth,elevation over time (sec)
6Stored in the 'outputs_folder' folder for respective .sww file
7
8Note:
9Will run through all .sww files in order of time within each output folder
10"""
11
12from os import sep, rename, listdir, system
13from os.path import join
14from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges,csv2timeseries_graphs
15import project
16
17directory = project.output_folder
18#Folders that contain the sww files of interest found in anuga/outputs
19time_dir1 = '20090619_165107_run_final_0_58260_None_kvanputt'
20time_dir2 = '20090619_165136_run_final_0.8_58260_None_kvanputt'
21
22time_dirs = [time_dir1, time_dir2]
23
24print 'time directories', time_dirs
25
26for time_dir in time_dirs:
27    name = join(directory,time_dir,project.scenario_name)
28    gauge = project.gauges
29    sww2csv_gauges(name+'.sww',gauge,
30                   quantities = ['stage','speed','depth','elevation'],
31                   verbose=True)
32 
33
Note: See TracBrowser for help on using the repository browser.