Changeset 3036


Ignore:
Timestamp:
May 31, 2006, 5:52:29 PM (18 years ago)
Author:
sexton
Message:

small update to sww2timeseries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/util.py

    r2990 r3036  
    735735        if line11[i].strip('\n').strip(' ') == 'Northing': north_index = i
    736736        if line11[i].strip('\n').strip(' ') == 'Name': name_index = i
     737        if line11[i].strip('\n').strip(' ') == 'Elevation': elev_index = i
    737738   
    738739    for line in lines[1:]:
    739740        fields = line.split(',')
    740         gauges.append([float(fields[east_index]), float(fields[north_index])])
     741        gauges.append([float(fields[east_index]), float(fields[north_index]), float(fields[elev_index])])
    741742        loc = fields[name_index]
    742743        gaugelocation.append(loc.strip('\n'))
     
    981982            fid.write(s)
    982983            c += 1
    983             if c % 10 == 0: fid.write('\\clearpage \n')
     984            if c % 25 == 0: fid.write('\\clearpage \n')
    984985
    985986           
Note: See TracChangeset for help on using the changeset viewer.