Changeset 2556 for production/onslow_2006/run_onslow.py
- Timestamp:
- Mar 17, 2006, 3:38:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/run_onslow.py
r2554 r2556 31 31 from smf import slump_tsunami # Function for submarine mudslide 32 32 33 from shutil import copy 34 from os import mkdir, access, F_OK 33 35 34 36 #------------------------------------------------------------------------------ … … 48 50 49 51 source_dir = project.boundarydir 52 53 #if dir doesn't exists then makes dir 54 if access(project.outputdir,F_OK) == 0 : 55 mkdir (project.outputdir) 56 # creates copy of code in output dir 57 copy (project.codedirname, project.outputdir + project.codename) 58 copy (project.codedir + 'run_onslow.py', project.outputdir + 'run_onlsow.py') 59 print "copied to"+ project.outputdir + project.codename + 'and run_onlsow.py' 50 60 51 61 # coarse data … … 65 75 66 76 # combining the coarse and fine data 67 combine_rectangular_points_files(project.coarsedemname + '.pts', 77 # NOTE MUST HAVE FINE FIRST! 78 combine_rectangular_points_files( 68 79 project.onshore_dem_name + '.pts', 80 project.coarsedemname + '.pts', 69 81 project.combineddemname + '.pts') 70 82 71 83 72 #------------------------------------------------------------------------------ 84 85 #------------------------------------------------------------------------------- 73 86 # Create the triangular mesh based on overall clipping polygon with a tagged 74 87 # boundary and interior regions defined in project.py along with … … 164 177 source_dir + project.boundary_basename), 165 178 {'verbose': True, 179 # note didn't work with the below 166 180 # 'minlat': south - 1, 167 181 # 'maxlat': north + 1,
Note: See TracChangeset
for help on using the changeset viewer.