Changeset 5245 for anuga_work/production/west_tas_2008/run_west_tas_smf.py
- Timestamp:
- Apr 28, 2008, 8:00:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.