|
|
def | __init__ (self, f, metadata, *compressed=False) |
| |
| def | readConstantValue (self, start, size, lod=0, as_float=True, *verbose=None) |
| |
| def | readToExistingBuffer (self, result, start, lod, as_float, *verbose=None) |
| |
Read or write bulk data. The meta data needs to have been read
already. The user-callable API will forward its read requests here.
◆ readConstantValue()
| def openzgy.impl.bulk.ZgyInternalBulk.readConstantValue |
( |
|
self, |
|
|
|
start, |
|
|
|
size, |
|
|
|
lod = 0, |
|
|
|
as_float = True, |
|
|
* |
verbose = None |
|
) |
| |
Check to see if the specified region is known to have all
samples set to the same value. A return value that is not None
signifies that a regular read would return all samples set to
that value. A return value of None means we don't know. This
method is only intended as a hint to improve performance.
◆ readToExistingBuffer()
| def openzgy.impl.bulk.ZgyInternalBulk.readToExistingBuffer |
( |
|
self, |
|
|
|
result, |
|
|
|
start, |
|
|
|
lod, |
|
|
|
as_float, |
|
|
* |
verbose = None |
|
) |
| |
Read bulk data starting at "start" in index space and store the
result in the provided 3d numpy array. Start should be in the range
(0,0,0) to Size-1. The count of samples to read is implied by the
size of the provided result array that is passed in. The valid data
types for the result array are float32 (in which case samples stored
as int8 or int16 will be scaled) or the files's storage value type
(in which case there is no scaling). It is valid to pass a count
that includes the padding area between the survey and the end
of the current brick, but not past that point.
The documentation for this class was generated from the following file: