Changeset 595


Ignore:
Timestamp:
Nov 19, 2004, 10:08:52 AM (20 years ago)
Author:
duncan
Message:

loads space delimited .xya files as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/least_squares.py

    r571 r595  
    2121#FIXME (Ole): Currently datapoints outside the triangular mesh are ignored.
    2222#             Is there a clean way of including them?
     23
    2324
    2425
     
    7172   
    7273    # load in the .xya file
    73     point_dict = load_xya_file(point_file)
     74    try:
     75        point_dict = load_xya_file(point_file)
     76    except SyntaxError,e:
     77        point_dict = load_xya_file(point_file,delimiter = ' ')
    7478    point_coordinates = point_dict['pointlist']
    7579    point_attributes = point_dict['pointattributelist']
Note: See TracChangeset for help on using the changeset viewer.