source: production/gippsland_2005/project.py @ 2058

Last change on this file since 2058 was 2058, checked in by duncan, 19 years ago

creating a mesh and points file.

File size: 1.8 KB
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
12scenario_dir_name = 'gippsland_storm_surge_scenario_2005'
13
14basename = 'test'
15
16boundary_basename = 'csiro_bondary'
17
18if sys.platform == 'win32':
19    home = environ["INUNDATIONHOME"]     #Sandpit's parent dir
20else:   
21    home = expanduser('~')
22
23
24#Derive subdirectories and filenames
25meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
26datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
27outputdir = home+sep+scenario_dir_name+sep+'output'+sep
28boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
29bath_dir = boundarydir + 'bathymetry_expanded'
30elevation_dir =  boundarydir + 'elev_expanded'
31ucur_dir =  boundarydir + 'ucur_expanded'
32vcur_dir =  boundarydir + 'vcur_expanded'
33
34meshname = meshdir + basename
35demname = datadir + basename
36boundaryname = boundarydir + boundary_basename
37outputname = outputdir + basename  #Used by post processing
38
39gauge_filename = 'all_bld_ind.csv'
40
41tide = 0.0
42
43#Georeferencing
44from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees
45
46#Origin of existing dem (FIXME: Temporary measure)
47#mesh_origin = (50, 421544.35127423, 7677669.5257159)  #250m
48#mesh_origin = (50, 420468.31429902, 7677669.5257159)  #100m
49
50
51#south = degminsec2decimal_degrees(-20,45,0)
52#north = degminsec2decimal_degrees(-20,15,0)
53#west = degminsec2decimal_degrees(116,30,0)
54#east = degminsec2decimal_degrees(117,0,0)
55
56north = -37.75
57south = -38.0 
58west = 147.0
59east = 148.0
60
61p0 = [north, west]
62p1 = [north, east]
63p2 = [south, east]
64p3 = [south, west]
65
66   
67polygon = [p0, p1, p2, p3]
68refzone = 50
69
Note: See TracBrowser for help on using the repository browser.