Changeset 3910


Ignore:
Timestamp:
Nov 2, 2006, 9:44:59 AM (16 years ago)
Author:
sexton
Message:

better fix to sww2timeseries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r3909 r3910  
    769769    elev_index = len(line11)+1
    770770    for i in range(len(line11)):
    771         if line11[i].strip('\n').strip(' ').title() == 'Easting': east_index = i
    772         if line11[i].strip('\n').strip(' ').title() == 'Northing': north_index = i
    773         if line11[i].strip('\n').strip(' ').title() == 'Name': name_index = i
    774         if line11[i].strip('\n').strip(' ').title() == 'Elevation': elev_index = i
     771        if line11[i].strip('\n').strip(' ').lower() == 'easting': east_index = i
     772        if line11[i].strip('\n').strip(' ').lower() == 'northing': north_index = i
     773        if line11[i].strip('\n').strip(' ').lower() == 'name': name_index = i
     774        if line11[i].strip('\n').strip(' ').lower() == 'elevation': elev_index = i
    775775
    776776    for line in lines[1:]:
     
    793793                    'ymomentum', 'speed', 'bearing', 'elevation']
    794794
     795    for i,j in enumerate(quantity):
     796        quantity[i] = quantity[i].lower()
    795797    p = list(set(quantity).difference(set(all_quantity)))
    796798    if len(p) <> 0:
Note: See TracChangeset for help on using the changeset viewer.