Changeset 7084
- Timestamp:
- May 26, 2009, 11:19:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/hobart_2009/get_runup.py
r7082 r7084 27 27 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 28 28 29 30 # polygons is a dictionary of polygon data indexed by 'id' 31 # values is a dictionary of polygon names indexed by 'id' 29 32 polygons, values = csv2polygons(project.images) 30 33 print 'Creating %d highest runup' % len(polygons) 31 34 35 # create a dictionary {<polygon_name>: <polygon_data>, ...} 32 36 area_dictionary = {} 33 37 for id in polygons: 34 38 area_dictionary[values[id]] = polygons[id] 35 39 40 # for each time directory ... 36 41 for time_dir in time_dirs: 37 42 print 'time_dir ',time_dir … … 42 47 s = 'area,q,x,y\n' 43 48 output_file.write(s) 44 45 49 50 # iterate over polygon names 46 51 for which_area in values.itervalues(): 47 52 print 'which_area = %s' % which_area
Note: See TracChangeset
for help on using the changeset viewer.