Ignore:
Timestamp:
May 26, 2009, 11:19:06 AM (15 years ago)
Author:
kristy
Message:

with comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/hobart_2009/get_runup.py

    r7082 r7084  
    2727time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
    2828
     29
     30# polygons is a dictionary of polygon data indexed by 'id'
     31# values is a dictionary of polygon names indexed by 'id'
    2932polygons, values = csv2polygons(project.images)
    3033print 'Creating %d highest runup' % len(polygons)
    3134
     35# create a dictionary {<polygon_name>: <polygon_data>, ...}
    3236area_dictionary = {}
    3337for id in polygons:
    3438    area_dictionary[values[id]] = polygons[id]
    3539
     40# for each time directory ...
    3641for time_dir in time_dirs:
    3742    print 'time_dir ',time_dir
     
    4247    s = 'area,q,x,y\n'
    4348    output_file.write(s)
    44      
    4549
     50    # iterate over polygon names
    4651    for which_area in values.itervalues():
    4752        print 'which_area = %s' % which_area
Note: See TracChangeset for help on using the changeset viewer.