Changeset 3944 for anuga_core/documentation/user_manual/examples/project.py
- Timestamp:
- Nov 8, 2006, 5:16:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/examples/project.py
r3869 r3944 45 45 # demo poly 46 46 j0 = [385000, 6280000] 47 j1 = [360000, 627 2500]48 j2 = [335000, 627 2500]47 j1 = [360000, 6273000] 48 j2 = [335000, 6273000] 49 49 j3 = [330000, 6265000] 50 50 j31 = [325000, 6260000] 51 51 j4 = [316000, 6260000] 52 j5 = [316000, 624 7000]53 j6 = [350000, 624 7000]52 j5 = [316000, 6246750] 53 j6 = [350000, 6246750] 54 54 j7 = [385000, 6238000] 55 55 56 56 demopoly = [j0, j1, j2, j3, j31, j4, j5, j6, j7] 57 57 58 from utilities.polygon import read_polygon 59 polygonptsfile4 = polygondir + 'poly1' 60 polygonptsfile0 = polygondir + 'poly2' 61 polygonptsfile1 = polygondir + 'poly3' 62 polygonptsfile2 = polygondir + 'poly4' 63 polygonptsfile3 = polygondir + 'poly5' 64 northern_polygon = read_polygon(polygonptsfile0 + '.csv') 65 manly_polygon = read_polygon(polygonptsfile1 + '.csv') 66 harbour_polygon = read_polygon(polygonptsfile2 + '.csv') 67 southern_polygon = read_polygon(polygonptsfile3 + '.csv') 68 top_polygon = read_polygon(polygonptsfile4 + '.csv') 58 from anuga.utilities.polygon import read_polygon, plot_polygons 59 #polygonptsfile4 = polygondir + 'poly1' 60 #polygonptsfile0 = polygondir + 'poly2' 61 #polygonptsfile1 = polygondir + 'poly3' 62 #polygonptsfile2 = polygondir + 'poly4' 63 #polygonptsfile3 = polygondir + 'poly5' 64 #northern_polygon = read_polygon(polygonptsfile0 + '.csv') 65 #manly_polygon = read_polygon(polygonptsfile1 + '.csv') 66 #harbour_polygon = read_polygon(polygonptsfile2 + '.csv') 67 #southern_polygon = read_polygon(polygonptsfile3 + '.csv') 68 #top_polygon = read_polygon(polygonptsfile4 + '.csv') 69 coastal_polygon = read_polygon(polygondir+'coastal'+'.csv') 70 shallow_polygon = read_polygon(polygondir+'shallow'+'.csv') 71 72 #plot_polygons([demopoly,northern_polygon,manly_polygon,harbour_polygon,southern_polygon,top_polygon],'model_setup',verbose=False) 73 plot_polygons([demopoly,coastal_polygon,shallow_polygon],'new_model_setup',verbose=False) 69 74 70 75 slump_origin = [372500.0, 6255000.0] #Absolute UTM
Note: See TracChangeset
for help on using the changeset viewer.