[4860] | 1 | # -*- coding: cp1252 -*- |
---|
| 2 | """Common filenames and locations for topographic data, meshes and outputs. |
---|
| 3 | """ |
---|
| 4 | |
---|
| 5 | from os import sep, environ, getenv, getcwd |
---|
| 6 | from os.path import expanduser |
---|
| 7 | import sys |
---|
| 8 | from time import localtime, strftime, gmtime |
---|
| 9 | from anuga.utilities.polygon import read_polygon, plot_polygons, \ |
---|
| 10 | polygon_area, is_inside_polygon |
---|
| 11 | |
---|
| 12 | ############################### |
---|
| 13 | # Domain definitions |
---|
| 14 | ############################### |
---|
| 15 | |
---|
| 16 | # bounding polygon for study area |
---|
| 17 | bounding_polygon = read_polygon('extent.csv') |
---|
| 18 | |
---|
| 19 | print 'Area of bounding polygon', polygon_area(bounding_polygon)/1000000.0 |
---|
| 20 | |
---|
| 21 | ############################### |
---|
| 22 | # Interior region definitions |
---|
| 23 | ############################### |
---|
| 24 | |
---|
| 25 | # interior polygons |
---|
| 26 | poly_cairns = read_polygon('cairns.csv') |
---|
| 27 | poly_island0 = read_polygon('islands.csv') |
---|
| 28 | poly_island1 = read_polygon('islands1.csv') |
---|
| 29 | poly_island2 = read_polygon('islands2.csv') |
---|
| 30 | poly_island3 = read_polygon('islands3.csv') |
---|
| 31 | poly_shallow = read_polygon('shallow.csv') |
---|
| 32 | |
---|
| 33 | #plot_polygons([bounding_polygon,poly_cairns,poly_island0,poly_island1,\ |
---|
| 34 | # poly_island2,poly_island3,poly_shallow],\ |
---|
| 35 | # 'boundingpoly',verbose=False) |
---|
| 36 | |
---|
| 37 | ################################################################### |
---|
| 38 | # Clipping regions for export to asc and regions for clipping data |
---|
| 39 | ################################################################### |
---|
| 40 | |
---|
| 41 | # exporting asc grid |
---|
| 42 | eastingmin = 363000 |
---|
| 43 | eastingmax = 418000 |
---|
| 44 | northingmin = 8026600 |
---|
| 45 | northingmax = 8145700 |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | slide_origin = [451871, 8128376] # move onto the continental shelf, depth = 500 |
---|
| 49 | slide_depth = 500. |
---|
| 50 | |
---|
| 51 | gauge_filename = 'gauges.csv' |
---|