Ignore:
Timestamp:
Feb 8, 2005, 2:55:56 PM (20 years ago)
Author:
ole
Message:

Work towards spatio-temporal boundary
Also changed naming from 'z' to 'elevation' in data manager (kept 'z' for backwards compatibility, though)

File:
1 edited

Legend:

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

    r848 r849  
    229229            fid.createVariable('x', self.precision, ('number_of_points',))
    230230            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            #################################
    232236       
    233237            fid.createVariable('volumes', Int, ('number_of_volumes',
     
    272276        x = fid.variables['x']
    273277        y = fid.variables['y']
    274         z = fid.variables['z']
     278        z = fid.variables['elevation']
    275279       
    276280        volumes = fid.variables['volumes']
     
    286290        y[:] = Y.astype(self.precision)
    287291        z[:] = Z.astype(self.precision)
     292       
     293        #FIXME: Backwards compatibility
     294        z = fid.variables['z']
     295        z[:] = Z.astype(self.precision)
     296        ################################
    288297
    289298        volumes[:] = V.astype(volumes.typecode())
     
    403412            fid.createVariable('x', self.precision, ('number_of_points',))
    404413            fid.createVariable('y', self.precision, ('number_of_points',))
    405             #fid.createVariable('z', self.precision, ('number_of_points',))
     414
    406415       
    407416            fid.createVariable('volumes', Int, ('number_of_volumes',
     
    648657    x = fid.variables['x']
    649658    y = fid.variables['y']
    650     z = fid.variables['z']       
     659    z = fid.variables['elevation']       
    651660    time = fid.variables['time']
    652661    stage = fid.variables['stage']
Note: See TracChangeset for help on using the changeset viewer.