Changeset 849 for inundation/ga/storm_surge/pyvolution/data_manager.py
- Timestamp:
- Feb 8, 2005, 2:55:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/data_manager.py
r848 r849 229 229 fid.createVariable('x', self.precision, ('number_of_points',)) 230 230 fid.createVariable('y', self.precision, ('number_of_points',)) 231 fid.createVariable('z', self.precision, ('number_of_points',)) 231 fid.createVariable('elevation', self.precision, ('number_of_points',)) 232 233 #FIXME: Backwards compatibility 234 fid.createVariable('z', self.precision, ('number_of_points',)) 235 ################################# 232 236 233 237 fid.createVariable('volumes', Int, ('number_of_volumes', … … 272 276 x = fid.variables['x'] 273 277 y = fid.variables['y'] 274 z = fid.variables[' z']278 z = fid.variables['elevation'] 275 279 276 280 volumes = fid.variables['volumes'] … … 286 290 y[:] = Y.astype(self.precision) 287 291 z[:] = Z.astype(self.precision) 292 293 #FIXME: Backwards compatibility 294 z = fid.variables['z'] 295 z[:] = Z.astype(self.precision) 296 ################################ 288 297 289 298 volumes[:] = V.astype(volumes.typecode()) … … 403 412 fid.createVariable('x', self.precision, ('number_of_points',)) 404 413 fid.createVariable('y', self.precision, ('number_of_points',)) 405 #fid.createVariable('z', self.precision, ('number_of_points',)) 414 406 415 407 416 fid.createVariable('volumes', Int, ('number_of_volumes', … … 648 657 x = fid.variables['x'] 649 658 y = fid.variables['y'] 650 z = fid.variables[' z']659 z = fid.variables['elevation'] 651 660 time = fid.variables['time'] 652 661 stage = fid.variables['stage']
Note: See TracChangeset
for help on using the changeset viewer.