Changeset 5551 for anuga_work/production/perth/build_boundary.py
- Timestamp:
- Jul 22, 2008, 1:39:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/build_boundary.py
r5468 r5551 21 21 suffix='-z.grd' 22 22 23 urs_filenames=[] 24 for i in range(49): 25 if i<10: 26 urs_filenames.append(prefix+'0'+str(i)+suffix) 27 else: 28 urs_filenames.append(prefix+str(i)+suffix) 29 print urs_filenames 23 24 25 26 urs_filenames={} 27 for filename in os.listdir(dir): 28 basename = filename[:-7] 29 30 urs_filenames[basename] = True 31 32 33 # Make list of basenames 34 urs_filenames = [os.path.join(dir, basename) for basename in urs_filenames.keys()] 35 36 # Reduce this list slightly 37 urs_filenames = urs_filenames[:30] 38 for name in urs_filenames: 39 print name 30 40 31 41 weights=10.4544*ones(len(urs_filenames),Float) 32 42 33 43 base_name=project.scenario_name 34 order_filename=os.path.join(project.boundaries_dir, 'boundary_ordering.txt')44 order_filename=os.path.join(project.boundaries_dir, 'boundary_ordering.txt') 35 45 46 print 'reading', order_filename 36 47 # Create ordered sts file 37 48 print 'creating sts file' … … 40 51 weights=weights, 41 52 mean_stage=project.tide, 42 verbose= False)53 verbose=True) 43 54 44 55 # Read in boundary from ordered sts file
Note: See TracChangeset
for help on using the changeset viewer.