Changeset 1005
- Timestamp:
- Mar 4, 2005, 4:31:16 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py
r1002 r1005 21 21 dic['pointlist'] = [[1.0,2.0],[3.0,5.0]] 22 22 dic['attributelist']['elevation'] = [[7.0,5.0] 23 24 23 25 24 … … 57 56 from os.path import splitext 58 57 59 60 58 61 59 import exceptions … … 1002 1000 dic['attributelist']['elevation'] = [[7.0,5.0] 1003 1001 """ 1002 #FIXME: This format has issues. There can't be an attribute called points 1003 1004 1004 1005 1005 from Scientific.IO.NetCDF import NetCDFFile … … 1017 1017 except IOError, e: 1018 1018 fid.close() 1019 msg = 'Could not open file %s ' %ofile 1020 #FIXME (Ole): Why this error message. Shouldn't it be something like 1021 #msg = 'Expected keyword "points" but couldn't fin it' 1022 #? 1023 #Also the original error e, could be added and raised again 1019 msg = 'Expected keyword "points" but could not find it' 1020 #FIXME (Ole): Also the original error e, 1021 #could be added and raised again 1022 # (DSG) The original error e is useful for fixing bugs 1023 # This is an issue with a file that has been caught, 1024 # not a bug. 1024 1025 raise IOError, msg 1025 1026 attributes = {} … … 1029 1030 point_atts['attributelist'] = attributes 1030 1031 fid.close() 1032 1031 1033 #print "point_atts",point_atts 1032 1034 return point_atts … … 1037 1039 WARNING: This function mangles the point_atts data structure 1038 1040 """ 1041 #FIXME: This format has issues. There can't be an attribute called points 1039 1042 1040 1043 from Scientific.IO.NetCDF import NetCDFFile
Note: See TracChangeset
for help on using the changeset viewer.