Changeset 5245 for anuga_work/production/west_tas_2008
- Timestamp:
- Apr 28, 2008, 8:00:14 AM (17 years ago)
- Location:
- anuga_work/production/west_tas_2008
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/west_tas_2008/convert2eastnorth.py
r4968 r5245 31 31 #filename = project_smf.polygondir + 'domain.txt' 32 32 #filename = project_smf.polygondir + 'local.txt' 33 filename = project_smf.polygondir + 'region.txt' 33 #filename = project_smf.polygondir + 'region.txt' 34 #filename = project_smf.datadir + 'Sorell_Basin_150m_DD_Interp.txt' 35 #filename = project_smf.datadir + 'S_Tasman_Rise_150m_DD_Interp.txt' 36 filename = project_smf.polygondir + 'origin.txt' 34 37 #filename_out = project_smf.polygondir + 'domain.csv' 35 38 #filename_out = project_smf.polygondir + 'local.csv' 36 filename_out = project_smf.polygondir + 'region.csv' 39 #filename_out = project_smf.polygondir + 'region.csv' 40 #filename_out = project_smf.datadir + 'Sorell_Basin_150m_EN_Interp.txt' 41 #filename_out = project_smf.datadir + 'S_Tasman_Rise_150m_EN_Interp.txt' 42 filename_out = project_smf.polygondir + 'origin_EN.csv' 37 43 alter_file(filename,filename_out) -
anuga_work/production/west_tas_2008/project_smf.py
r4968 r5245 24 24 state = 'tasmania' 25 25 scenario_dir_name = 'smf_scenario_2008' 26 ''' 27 # onshore data provided by NSW LPI, Krishna merged with existing 28 # PMD data to make 100m DEM 29 on_offshore_name100 = 'bathyland100' 26 27 # onshore data sourced from 250m grid 28 onshore_name250 = 'bathyland250' 29 30 # coastline from GA 31 coast_line_name = 'aus_cst' 30 32 31 33 # survey data 32 offshore_name1 = ' surveyAreaA'33 offshore_name2 = ' surveyAreaB'34 offshore_name3 = ' surveyAreaC'34 offshore_name1 = 'S_Tasman_Rise_150m_EN_Interp' 35 offshore_name2 = 'Sorell_Basin_150m_EN_Interp' 36 offshore_name3 = 'West_Tas_EastNorth_z' 35 37 36 # AHO data37 offshore_name4 = '1000003611export'38 offshore_name5 = '1000003613export'39 offshore_name6 = '1000003614export'40 offshore_name7 = '1000003627export'41 offshore_name8 = '1000003628export'42 offshore_name9 = 'AHDexport'43 '''44 38 #swollen/ all data output 45 39 basename = 'source' … … 61 55 codedirname = codedir + 'project_smf.py' 62 56 meshname = outputtimedir + 'mesh_' + basename 63 ''' 57 64 58 # Necessary if using point datasets, rather than grid 65 on _offshore100_dem_name = datadir + on_offshore_name10059 onshore_250_dem_name = datadir + onshore_name250 66 60 offshore_dem_name1 = datadir + offshore_name1 67 61 offshore_dem_name2 = datadir + offshore_name2 68 62 offshore_dem_name3 = datadir + offshore_name3 63 coast_line = datadir + coast_line_name 69 64 70 65 combined_dem_name = datadir + 'west_tas_combined_elevation' 71 ''' 66 72 67 ############################### 73 68 # Domain definitions … … 94 89 ################################################################### 95 90 96 97 91 # exporting asc grid 98 92 eastingmin = 333000 … … 107 101 108 102 # historical slides 109 #slide_origin = [,]103 slide_origin = [338270.5407, 5217273.89] 110 104 111 105 depth = 1750.0 -
anuga_work/production/west_tas_2008/run_west_tas_smf.py
r4968 r5245 54 54 55 55 # filenames 56 on _offshore25_dem_name = project_smf.on_offshore25_dem_name56 onshore_250_dem_name = project_smf.onshore_250_dem_name 57 57 meshname = project_smf.meshname+'.msh' 58 58 59 59 # creates DEM from asc data 60 convert_dem_from_ascii2netcdf(on _offshore25_dem_name, use_cache=True, verbose=True)60 convert_dem_from_ascii2netcdf(onshore_250_dem_name, use_cache=True, verbose=True) 61 61 62 62 #creates pts file for onshore DEM 63 dem2pts(on_offshore25_dem_name, 64 easting_min=project_smf.eastingmin25, 65 easting_max=project_smf.eastingmax25, 66 northing_min=project_smf.northingmin25, 67 northing_max= project_smf.northingmax25, 68 use_cache=True, verbose=True) 63 dem2pts(onshore_250_dem_name, use_cache=True, verbose=True) 69 64 70 65 print 'create offshore' 71 G1 = Geospatial_data(file_name = project_smf.offshore_dem_name1 + '. xya')+\72 Geospatial_data(file_name = project_smf.offshore_dem_name2 + '. xya')+\73 Geospatial_data(file_name = project_smf.offshore_dem_name3 + '. xya')66 G1 = Geospatial_data(file_name = project_smf.offshore_dem_name1 + '.txt')+\ 67 Geospatial_data(file_name = project_smf.offshore_dem_name2 + '.txt')+\ 68 Geospatial_data(file_name = project_smf.offshore_dem_name3 + '.txt') 74 69 75 70 print 'create onshore' 76 G2 = Geospatial_data(file_name = project_smf.on_offshore25_dem_name + '.pts') 71 G2 = Geospatial_data(file_name = project_smf.onshore_250_dem_name + '.pts') 72 73 print 'create coastline' 74 G3 = Geospatial_data(file_name = project_smf.coast_line + '.txt') 77 75 78 76 print 'add' 79 G = G1 + G277 G = G1.clip(Geospatial_data(project_smf.polyAll)) + G2 + G3 80 78 81 79 print 'export points'
Note: See TracChangeset
for help on using the changeset viewer.