source: anuga_work/development/landslide_4/project.py @ 5572

Last change on this file since 5572 was 5572, checked in by bridgette, 15 years ago

update script for bridgettes use

File size: 2.8 KB
Line 
1# -*- coding: cp1252 -*-
2"""Common filenames and locations for topographic data, meshes and outputs.
3"""
4
5from os import sep, environ, getenv, getcwd
6from os.path import expanduser
7import sys
8from time import localtime, strftime, gmtime
9from anuga.utilities.polygon import read_polygon, plot_polygons, is_inside_polygon, number_mesh_triangles
10from anuga.utilities.system_tools import get_user_name, get_host_name
11from anuga.shallow_water.data_manager import urs2sts,create_sts_boundary
12from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon
13
14# file and system info
15#---------------------------------
16#codename = 'project.py'
17
18home = getenv('INUNDATIONHOME') + sep +'data'+sep #Sandpit's parent diruser = get_user_name()
19muxhome = getenv('MUXHOME')
20user = get_user_name()
21host = get_host_name()
22
23# INUNDATIONHOME is the inundation directory, not the data directory.
24
25#time stuff
26time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
27gtime = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir
28build_time = time+'_build'
29run_time = time+'_run'
30print 'gtime: ', gtime
31
32#Making assumptions about the location of scenario data
33state = 'anuga_validation'
34scenario = 'benchmark_problem_4'
35sww_name = 'slide'
36
37alpha = 0.1
38friction=0.01
39starttime=0
40finaltime=500
41remainder_res = 1.
42export_cellsize=25
43
44dir_comment='_'+'finaltime'+str(finaltime)+'_'+str(user)
45
46anuga_dir = home+state+sep+scenario+sep+'anuga'+sep
47
48meshes_dir = anuga_dir+'meshes'+sep
49meshes_dir_name = meshes_dir + sww_name
50
51polygons_dir = anuga_dir+'polygons'+sep
52
53#output locations
54output_dir = anuga_dir+'outputs'+sep
55output_run_time_dir = anuga_dir+'outputs'+sep+run_time+dir_comment+sep
56output_run_time_dir_name = output_run_time_dir + sww_name  #Used by post processing
57
58#gauges
59gauge_name = 'gauge_location.csv'
60gauges_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'gauges'+sep
61gauges_dir_name = gauges_dir + gauge_name
62
63
64###############################
65# Interior region definitions
66###############################
67
68#Initial bounding polygon for data clipping
69#poly_all = read_polygon(polygons_dir+'poly_all.csv')
70#res_poly_all = 100000
71
72   
73###################################################################
74# Clipping regions for export to asc and regions for clipping data
75###################################################################
76
77
78#Geordie Bay extract ascii grid
79xminGeordie = 358000
80xmaxGeordie = 362000
81yminGeordie = 6458500
82ymaxGeordie = 6461000
83
84#Sorrento extract ascii grid
85xminSorrento = 379000
86xmaxSorrento = 382500
87yminSorrento = 6477000
88ymaxSorrento = 6480000
89
90#Fremantle extract ascii grid
91xminFremantle = 376000
92xmaxFremantle = 388000
93yminFremantle = 6449000
94ymaxFremantle = 6461000
95
96#Rockingham extract ascii grid
97xminRockingham = 373500
98xmaxRockingham = 385500
99yminRockingham = 6424000
100ymaxRockingham = 6433000
101
Note: See TracBrowser for help on using the repository browser.