OpenZGY/Python API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Member Functions | List of all members
openzgy.impl.file.LocalFile Class Reference
Inheritance diagram for openzgy.impl.file.LocalFile:
openzgy.impl.file.FileADT openzgy.impl.file.LocalFileLinux openzgy.impl.file.LocalFileOther

Public Member Functions

def __init__ (self, filename, mode, iocontext)
 
def xx_eof (self)
 
def xx_close (self)
 
- Public Member Functions inherited from openzgy.impl.file.FileADT
def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 
def xx_read (self, offset, size, *usagehint=UsageHint.Unknown)
 
def xx_write (self, data, offset, *usagehint=UsageHint.Unknown)
 
def xx_readv (self, requests, *parallel_ok=False, immutable_ok=False, transient_ok=False, usagehint=UsageHint.Unknown)
 
def threadsafe (self)
 
def xx_iscloud (self)
 

Constructor & Destructor Documentation

◆ __init__()

def openzgy.impl.file.LocalFile.__init__ (   self,
  filename,
  mode,
  iocontext 
)
Open a file in the specified mode, which must be "rb" or "w+b".
Caller should use a "with" block to ensure the file gets closed.
The iocontext is an optional data structure that the user may
specify when a reader is created. It might be used to hold
user credentials etc. needed to access the low level file.
TODO-Low: support "r+b" (update) at some point in the future.

Reimplemented from openzgy.impl.file.FileADT.

Member Function Documentation

◆ xx_close()

def openzgy.impl.file.LocalFile.xx_close (   self)
Close a previously opened file.
No action if the file is already closed.

Reimplemented from openzgy.impl.file.FileADT.


The documentation for this class was generated from the following file: