source: development/momentum_sink/project.py @ 2298

Last change on this file since 2298 was 2298, checked in by duncan, 18 years ago

momentum sink example

File size: 922 bytes
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2"""
3
4
5from os import sep
6from os import environ
7from os.path import expanduser
8import sys
9
10#Making assumptions about the location of scenario data
11# Assumes the INUNDATIONHOME environ variable exists
12
13scenario_dir_name = 'momentum_sink_2005'
14basename = 'buildings'
15
16if sys.platform == 'win32':
17    home = environ["INUNDATIONHOME"]     #Sandpit's parent dir
18else:   
19    home = expanduser('~')
20
21
22#Derive subdirectories and filenames
23meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
24outputdir = home+sep+scenario_dir_name+sep+'output'+sep
25
26meshname = meshdir + basename + '.tsh'
27outputname = outputdir + basename  + '.sww' #Used by post processing
28
29#-------------------------------------------------------------
30if __name__ == "__main__":
31    print "mesh_elevname",mesh_elevname
32    update_names(999)
33    print "mesh_elevname",mesh_elevname
Note: See TracBrowser for help on using the repository browser.