I/O
|
Overloaded function. |
|
Overloaded function. |
|
Create new array, filled with values read using GDAL |
|
Overloaded function. |
- lue.framework.read_array(*args, **kwargs)
Overloaded function.
read_array(array_pathname: str, *, partition_shape: Optional[tuple] = None) -> object
Create new array, filled with values read from dataset
- param str array_pathname:
Pathname to array in dataset
- param tuple partition_shape:
Shape of the array partitions. When not passed in, a default shape will be used which might not result in the best performance and scalability.
- rtype:
PartitionedArray specialization
The pathname must be formatted as: <dataset pathname>/<phenomenon name>/<property-set name>/<property name>
It is assumed that the array does not vary through time. Otherwise, use the overload that accepts a time step index.
read_array(array_pathname: str, center_cell: tuple, subset_shape: tuple, *, partition_shape: Optional[tuple] = None) -> object
Create new array, filled with values read from dataset
- param str array_pathname:
Pathname to array in dataset
- param tuple center_cell:
Indices of center cell of array subset
- param tuple subset_shape:
Shape of array subset
- param tuple partition_shape:
Shape of the array partitions. When not passed in, a default shape will be used which might not result in the best performance and scalability.
- rtype:
PartitionedArray specialization
The pathname must be formatted as: <dataset pathname>/<phenomenon name>/<property-set name>/<property name>
It is assumed that the array does not vary through time. Otherwise, use the overload that accepts a time step index.
read_array(array_pathname: str, time_step_idx: int, *, partition_shape: Optional[tuple] = None) -> object
Create new array, filled with values read from dataset
- param str array_pathname:
Pathname to array in dataset
- param int time_step_idx:
Index of the time step to read [0, nr_time_steps)
- param tuple partition_shape:
Shape of the array partitions. When not passed in, a default shape will be used which might not result in the best performance and scalability.
- rtype:
PartitionedArray specialization
The pathname must be formatted as: <dataset pathname>/<phenomenon name>/<property-set name>/<property name>
It is assumed that the array varies through time. Otherwise, use the overload without a time step index.
- lue.framework.write_array(*args, **kwargs)
Overloaded function.
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint8_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint32_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint64_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_int32_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_int64_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_float32_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_float64_2, arg1: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint8_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint32_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_uint64_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_int32_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_int64_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_float32_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
write_array(arg0: lue.lue_py.framework.PartitionedArray_float64_2, arg1: int, arg2: str) -> lue.lue_py.framework.future<void>
- lue.framework.from_gdal(name: str, *, partition_shape: tuple | None = None) object
Create new array, filled with values read using GDAL
- lue.framework.to_gdal(*args, **kwargs)
Overloaded function.
to_gdal(array: lue.lue_py.framework.PartitionedArray_uint8_2, name: str, clone_name: str = ‘’) -> lue.lue_py.framework.future<void>
to_gdal(array: lue.lue_py.framework.PartitionedArray_uint32_2, name: str, clone_name: str = ‘’) -> lue.lue_py.framework.future<void>
to_gdal(array: lue.lue_py.framework.PartitionedArray_int32_2, name: str, clone_name: str = ‘’) -> lue.lue_py.framework.future<void>
to_gdal(array: lue.lue_py.framework.PartitionedArray_float32_2, name: str, clone_name: str = ‘’) -> lue.lue_py.framework.future<void>
to_gdal(array: lue.lue_py.framework.PartitionedArray_float64_2, name: str, clone_name: str = ‘’) -> lue.lue_py.framework.future<void>