source: anuga_work/production/wollongong_2006/project_kembla.py @ 4856

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

rename plot_polygons_points to original name of plot_polygons

File size: 1.2 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, polygon_area, is_inside_polygon
10
11#Making assumptions about the location of scenario data
12
13dem_name = 'kembla'
14basename = 'source'
15meshname = 'mesh_' + basename
16combined_dem_name = 'kembla_elevation'
17
18###############################
19# Domain definitions
20###############################
21
22# bounding polygon for study area
23polyAll = read_polygon('kembla_domain.csv')
24
25###############################
26# Interior region definitions
27###############################
28
29# areaA digitized polygons
30poly_bay = read_polygon('bay.csv')
31
32print 'Area of bay polygon', polygon_area(poly_bay)/1000000.0
33
34###################################################################
35# Clipping regions for export to asc and regions for clipping data
36###################################################################
37
38# exporting asc grid
39eastingmin = 305500
40eastingmax = 309500
41northingmin = 6181500
42northingmax = 6185500
Note: See TracBrowser for help on using the repository browser.