source: anuga_work/development/convergence_okushiri_2008/project_truescale.py @ 5396

Last change on this file since 5396 was 5396, checked in by Leharne, 16 years ago

Updating output directory in project and run scripts to automatically include run time, user and mesh resolution. Still in progress.

File size: 2.1 KB
Line 
1"""Common filenames for truescale Okushiri Island validation
2Formats are given as ANUGA native netCDF where applicable.
3
4"""
5from os import sep, environ, getenv, getcwd, umask
6from os.path import expanduser, basename, join
7from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon, number_mesh_triangles
8import sys
9from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees
10from time import localtime, strftime, gmtime
11from anuga.utilities.system_tools import get_user_name, get_host_name
12
13codename = 'project_grad.py' # FIXME can be obtained automatically as __file__
14
15home = join(getenv('INUNDATIONHOME'), 'data', 'anuga_validation',
16            'convergence_okushiri_2008')# Location of Data   
17user = get_user_name()
18host = get_host_name()
19#needed when running using mpirun, mpirun doesn't inherit umask from .bashrc
20umask(002)
21
22#time stuff
23time = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir
24run_time = time+'_run'
25
26#Set anuga directories
27anuga_dir = join(home, 'anuga')
28
29dir_comment='_'+setup+'_'+str(tide)+'_'+\
30             str(user)+'_'+boundary_event+'_'+which_data
31
32mesh_dir = join(anuga_dir, 'meshes')
33mesh_name = join(mesh_dir, 'okushiri_truescale')
34
35polygons_dir = join(anuga_dir, 'polygons') # Created with ArcGIS (csv files)
36tide_dir = join(anuga_dir, 'tide_data')
37
38#output locations
39output_dir = join(anuga_dir, 'outputs')+sep
40output_run_time_dir = output_dir +run_time+dir_comment+sep
41output_run_time_dir_name = output_run_time_dir + scenario_name  #Used by post processing
42
43#gauges
44gauges_dir = join(anuga_dir,'gauges')
45gauge_name = 'gauge_location_onslow.csv'
46gauges_dir_name = gauges_dir + gauge_name
47
48# Given boundary wave
49boundary_filename = 'okushiri_truescale_input.tms'
50
51# Observed timeseries
52validation_filename = 'okushiri_output_truescale_ch5-7-9.txt'
53
54# Digital Elevation Model
55bathymetry_filename = 'okushiri_truescale_bathymetry.pts'
56
57# Triangular mesh
58mesh_filename = 'okushiri_truescale.msh'
59
60# Model output
61output_filename = 'okushiri_truescale.sww'
62
63
64
Note: See TracBrowser for help on using the repository browser.