source: anuga_work/development/boxingday_2007/project.py @ 4297

Last change on this file since 4297 was 4297, checked in by jakeman, 18 years ago

Commmit new boxingday_2007 folder

File size: 1.6 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2"""
3
4from os import sep, environ, getenv, getcwd
5from os.path import expanduser
6import sys
7from time import localtime, strftime, gmtime
8from anuga.utilities.polygon import read_polygon, plot_polygons, \
9                                    polygon_area, is_inside_polygon
10from anuga.coordinate_transforms.redfearn import convert_from_latlon_to_utm
11from time import localtime, strftime
12
13###############################
14# Domain definitions
15###############################
16
17# Bathymetry and topography filenames
18bathymetry = 'phuket_utm47'
19
20# bounding polygon for study area
21bounding_polygon_latlon = read_polygon('phuket_boundary.csv')
22# only works for zone 47
23south = 1000
24east = -1000
25west = 1000
26north = -1000
27for points in bounding_polygon_latlon:
28    south = min(points[1],south)
29    north = max(points[1],north)
30    east = max(points[0],east)
31    west = min(points[0],west)
32
33print "south, north, east, west", south, north, east, west
34
35time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
36#combined_dir_name = 'phuket_bathymetry'+time
37combined_dir_name = 'phuket_bathymetry'
38meshname = 'phuket_mesh'+time
39mesh_elevname = 'phuket_mesh'+time+'_elev'
40bathymetry_points = 'bathymetry_points'+time
41boundary_most_in = 'out'
42boundary_most_out = 'most_boundary_condition'
43###############################
44# Interior region definitions
45###############################
46
47# interior polygons
48poly_island1 = read_polygon('island1.csv')
49poly_north_island = read_polygon('north_island.csv')
50poly_50m_contour = read_polygon('phuket_50m_contour_small.csv')
51
52gauge_filename = 'gauges.csv'
Note: See TracBrowser for help on using the repository browser.