Changeset 2054
- Timestamp:
- Nov 24, 2005, 10:12:00 AM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/data_manager.py
r2053 r2054 1694 1694 header['ydimension'] = str(cellsize) 1695 1695 header['value'] = '"' + quantity + '"' 1696 header['celltype'] = 'IEEE8ByteReal'1696 #header['celltype'] = 'IEEE8ByteReal' #FIXME: Breaks unit test 1697 1697 1698 1698 -
inundation/pyvolution/ermapper_grids.py
r2053 r2054 89 89 def write_ermapper_header(ofile, header = {}): 90 90 91 #header = create_default_header(header)91 header = create_default_header(header) 92 92 # Determine if the dataset is in lats/longs or eastings/northings and set header parameters 93 93 # accordingly … … 166 166 167 167 168 if isinstance(data_format, basestring): 169 #celltype_map is defined at top of code 170 if celltype_map.has_key(data_format): 171 data_format = celltype_map[data_format] 172 else: 173 msg = 'Format %s is not yet defined by celltype_map' %data_format 174 raise msg 168 try: 169 data_format = celltype_map[data_format] 170 except: 171 pass 172 173 174 #if isinstance(data_format, basestring): 175 # #celltype_map is defined at top of code 176 # if celltype_map.has_key(data_format): 177 # data_format = celltype_map[data_format] 178 # else: 179 # msg = 'Format %s is not yet defined by celltype_map' %data_format 180 # raise msg 175 181 176 182 -
inundation/pyvolution/test_data_manager.py
r2038 r2054 1769 1769 -0.25, -0.5, -0.75, -1.0, -1.25] 1770 1770 1771 1771 1772 1772 assert allclose(grid, ref_grid) 1773 1773
Note: See TracChangeset
for help on using the changeset viewer.