HDF5Storage Python Object#

Full name: geomodelgrids.create.io.hdf5.HDF5Storage

HDF5 file for storing gridded model.

Data Members#

  • filename (str) Name of HDF5 file.

Methods#

HDF5Storage(filename)#

Constructor.

  • filename[in] *(str) Name for HDF5 file.

save_domain(domain)#

Write domain attributes to HDF5 file.

  • domain[in] (Model) Model domain.

create_surface(surface)#

Create surface in HDF5 file.

  • surface[in] (Surface) Model surface.

save_surface_metadata(surface)#

Write surface metadata to HDF5 file.

  • surface[in] (Surface) Model surface

save_surface(surface, elevation, batch=None)#

Write surface to HDF5 file.

  • surface (Surface) Model surface.

  • elevation (numpy.array) Elevation of surface.

  • batch (BatchGenerator2D) Current batch of surface points.

load_surface(surface, batch=None)#

Load surface from HDF5 file.

  • surface (Surface) Model surface.

  • batch (BatchGenerator2D) Current batch of surface points.

  • returns numpy.array with elevation of surface.

create_block(block)#

Create block in HDF5 file.

  • block (Block) Block in model.

save_block_metadata(block)#

Write block metadata to HDF5 file.

  • block[in] (Block) Block associated with gridded data.

save_block(block, data, batch=None)#

Write block data to HDF5 file.

  • block (Block) Block in model.

  • data (numpy.array) [Nx, Ny, Nz, Nv] Array of gridded data.

  • batch (BatchGenerator3D) Current batch of block points.