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

Last change on this file since 5241 was 5241, checked in by sexton, 16 years ago

determining envelope of points for boxing day validation example

File size: 2.0 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# location of polygons developed by John Jakeman April 2008
48home = getenv('INUNDATIONHOME') + sep +'data'+sep
49anuga_dir = home+'anuga_validation'+sep+'boxing_day_sceanario'+sep+'anuga'+sep
50poly_dir = anuga_dir+'outputs'+sep+'john'+sep
51gauges_dir = anuga_dir+'gauges'+sep
52# interior polygons
53#poly_island1 = read_polygon('island1.csv')
54#poly_north_island = read_polygon('north_island.csv')
55#poly_50m_contour = read_polygon('phuket_50m_contour_small.csv')
56
57# bounding polygon
58poly_all = read_polygon(poly_dir + 'extent.csv')#'domain.csv')
59
60gauge_filename = 'gauges.csv'
Note: See TracBrowser for help on using the repository browser.