States¶
-
class
States
(*args, **kwargs)[source]¶ States component of geological model.
-
affine_transform
(func, attr, *args, inplace=False, **kwargs)¶ Compute affine_transform for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.affine_transform
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.affine_transform
.
- Returns
output – Transformed component.
- Return type
-
apply
(func, attr, *args, inplace=False, **kwargs)[source]¶ Apply function to each timestamp of states attributes.
- Parameters
- Returns
output – Transformed component.
- Return type
-
property
attributes
¶ Array of attributes.
-
binary_closing
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_closing for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_closing
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_closing
.
- Returns
output – Transformed component.
- Return type
-
binary_dilation
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_dilation for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_dilation
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_dilation
.
- Returns
output – Transformed component.
- Return type
-
binary_erosion
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_erosion for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_erosion
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_erosion
.
- Returns
output – Transformed component.
- Return type
-
binary_fill_holes
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_fill_holes for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_fill_holes
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_fill_holes
.
- Returns
output – Transformed component.
- Return type
-
binary_hit_or_miss
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_hit_or_miss for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_hit_or_miss
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_hit_or_miss
.
- Returns
output – Transformed component.
- Return type
-
binary_opening
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_opening for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_opening
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_opening
.
- Returns
output – Transformed component.
- Return type
-
binary_propagation
(func, attr, *args, inplace=False, **kwargs)¶ Compute binary_propagation for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_propagation
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_propagation
.
- Returns
output – Transformed component.
- Return type
-
black_tophat
(func, attr, *args, inplace=False, **kwargs)¶ Compute black_tophat for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.black_tophat
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.black_tophat
.
- Returns
output – Transformed component.
- Return type
-
center_of_mass
(func, attr, *args, inplace=False, **kwargs)¶ Compute center_of_mass for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.center_of_mass
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.center_of_mass
.
- Returns
output – Transformed component.
- Return type
-
property
class_name
¶ Name of the component.
-
clip
(func, attr, *args, inplace=False, **kwargs)¶ Compute array of cliped values for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.clip
.kwargs (misc) – Any additional named arguments to
numpy.clip
.
- Returns
output – Transformed component.
- Return type
-
convolve
(func, attr, *args, inplace=False, **kwargs)¶ Compute convolve for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.convolve
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.convolve
.
- Returns
output – Transformed component.
- Return type
-
convolve1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute convolve1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.convolve1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.convolve1d
.
- Returns
output – Transformed component.
- Return type
-
copy
()¶ Returns a deepcopy of attributes. Cached properties are not copied.
-
correlate
(func, attr, *args, inplace=False, **kwargs)¶ Compute correlate for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.correlate
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.correlate
.
- Returns
output – Transformed component.
- Return type
-
correlate1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute correlate1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.correlate1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.correlate1d
.
- Returns
output – Transformed component.
- Return type
-
crop
(func, attr, *args, inplace=False, **kwargs)¶ Compute cropped array by crop_width along each dimension for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
crop
.kwargs (misc) – Any additional named arguments to
crop
.
- Returns
output – Transformed component.
- Return type
-
del_state
(*args)¶ State remover.
-
distance_transform_bf
(func, attr, *args, inplace=False, **kwargs)¶ Compute distance_transform_bf for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_bf
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_bf
.
- Returns
output – Transformed component.
- Return type
-
distance_transform_cdt
(func, attr, *args, inplace=False, **kwargs)¶ Compute distance_transform_cdt for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_cdt
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_cdt
.
- Returns
output – Transformed component.
- Return type
-
distance_transform_edt
(func, attr, *args, inplace=False, **kwargs)¶ Compute distance_transform_edt for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_edt
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_edt
.
- Returns
output – Transformed component.
- Return type
-
drop
(attr)¶ Drop an attribute.
-
dump
(path, **kwargs)¶ Dump attributes into file.
- Parameters
- Returns
comp – BaseComponent unchanged.
- Return type
-
static
dump_array_ascii
(buffer, array, header=None, fmt='%f', compressed=True)¶ Writes array-like data into an ASCII buffer.
- Parameters
-
empty_like
()¶ Get an empty component with the same state and the structure of embedded BaseComponents (if any).
-
extrema
(func, attr, *args, inplace=False, **kwargs)¶ Compute extrema for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.extrema
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.extrema
.
- Returns
output – Transformed component.
- Return type
-
find_objects
(func, attr, *args, inplace=False, **kwargs)¶ Compute find_objects for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.find_objects
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.find_objects
.
- Returns
output – Transformed component.
- Return type
-
flip
(func, attr, *args, inplace=False, **kwargs)¶ Compute reversed order of elements in an array along the given axis for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.flip
.kwargs (misc) – Any additional named arguments to
numpy.flip
.
- Returns
output – Transformed component.
- Return type
-
fourier_ellipsoid
(func, attr, *args, inplace=False, **kwargs)¶ Compute fourier_ellipsoid for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_ellipsoid
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_ellipsoid
.
- Returns
output – Transformed component.
- Return type
-
fourier_gaussian
(func, attr, *args, inplace=False, **kwargs)¶ Compute fourier_gaussian for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_gaussian
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_gaussian
.
- Returns
output – Transformed component.
- Return type
-
fourier_shift
(func, attr, *args, inplace=False, **kwargs)¶ Compute fourier_shift for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_shift
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_shift
.
- Returns
output – Transformed component.
- Return type
-
fourier_uniform
(func, attr, *args, inplace=False, **kwargs)¶ Compute fourier_uniform for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_uniform
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_uniform
.
- Returns
output – Transformed component.
- Return type
-
gaussian_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute gaussian_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_filter
.
- Returns
output – Transformed component.
- Return type
-
gaussian_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute gaussian_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_filter1d
.
- Returns
output – Transformed component.
- Return type
-
gaussian_gradient_magnitude
(func, attr, *args, inplace=False, **kwargs)¶ Compute gaussian_gradient_magnitude for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_gradient_magnitude
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_gradient_magnitude
.
- Returns
output – Transformed component.
- Return type
-
gaussian_laplace
(func, attr, *args, inplace=False, **kwargs)¶ Compute gaussian_laplace for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_laplace
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_laplace
.
- Returns
output – Transformed component.
- Return type
-
generic_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute generic_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_filter
.
- Returns
output – Transformed component.
- Return type
-
generic_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute generic_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_filter1d
.
- Returns
output – Transformed component.
- Return type
-
generic_gradient_magnitude
(func, attr, *args, inplace=False, **kwargs)¶ Compute generic_gradient_magnitude for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_gradient_magnitude
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_gradient_magnitude
.
- Returns
output – Transformed component.
- Return type
-
generic_laplace
(func, attr, *args, inplace=False, **kwargs)¶ Compute generic_laplace for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_laplace
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_laplace
.
- Returns
output – Transformed component.
- Return type
-
geometric_transform
(func, attr, *args, inplace=False, **kwargs)¶ Compute geometric_transform for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.geometric_transform
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.geometric_transform
.
- Returns
output – Transformed component.
- Return type
-
gradient
(func, attr, *args, inplace=False, **kwargs)¶ Compute gradient for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.gradient
.kwargs (misc) – Any additional named arguments to
numpy.gradient
.
- Returns
output – Transformed component.
- Return type
-
grey_closing
(func, attr, *args, inplace=False, **kwargs)¶ Compute grey_closing for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_closing
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_closing
.
- Returns
output – Transformed component.
- Return type
-
grey_dilation
(func, attr, *args, inplace=False, **kwargs)¶ Compute grey_dilation for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_dilation
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_dilation
.
- Returns
output – Transformed component.
- Return type
-
grey_erosion
(func, attr, *args, inplace=False, **kwargs)¶ Compute grey_erosion for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_erosion
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_erosion
.
- Returns
output – Transformed component.
- Return type
-
grey_opening
(func, attr, *args, inplace=False, **kwargs)¶ Compute grey_opening for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_opening
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_opening
.
- Returns
output – Transformed component.
- Return type
-
histogram
(func, attr, *args, inplace=False, **kwargs)¶ Compute histogram for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.histogram
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.histogram
.
- Returns
output – Transformed component.
- Return type
-
init_state
(**kwargs)¶ Init state attributes.
-
items
()¶ Returns pairs of attribute’s names and data.
-
keys
()¶ Array of attributes.
-
label
(func, attr, *args, inplace=False, **kwargs)¶ Compute label for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.label
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.label
.
- Returns
output – Transformed component.
- Return type
-
labeled_comprehension
(func, attr, *args, inplace=False, **kwargs)¶ Compute labeled_comprehension for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.labeled_comprehension
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.labeled_comprehension
.
- Returns
output – Transformed component.
- Return type
-
laplace
(func, attr, *args, inplace=False, **kwargs)¶ Compute laplace for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.laplace
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.laplace
.
- Returns
output – Transformed component.
- Return type
-
load
(path_or_buffer, **kwargs)¶ Load data from a file or buffer.
- Parameters
path_or_buffer (str of string buffer) – Source to read data from.
**kwargs (dict, optional) – Any kwargs to be passed to load method.
- Returns
comp – BaseComponent with loaded attributes.
- Return type
-
map_coordinates
(func, attr, *args, inplace=False, **kwargs)¶ Compute map_coordinates for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.map_coordinates
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.map_coordinates
.
- Returns
output – Transformed component.
- Return type
-
maximum
(func, attr, *args, inplace=False, **kwargs)¶ Compute maximum for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum
.
- Returns
output – Transformed component.
- Return type
-
maximum_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute maximum_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_filter
.
- Returns
output – Transformed component.
- Return type
-
maximum_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute maximum_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_filter1d
.
- Returns
output – Transformed component.
- Return type
-
maximum_position
(func, attr, *args, inplace=False, **kwargs)¶ Compute maximum_position for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_position
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_position
.
- Returns
output – Transformed component.
- Return type
-
mean
(func, attr, *args, inplace=False, **kwargs)¶ Compute mean for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.mean
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.mean
.
- Returns
output – Transformed component.
- Return type
-
median
(func, attr, *args, inplace=False, **kwargs)¶ Compute median for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.median
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.median
.
- Returns
output – Transformed component.
- Return type
-
median_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute median_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.median_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.median_filter
.
- Returns
output – Transformed component.
- Return type
-
minimum
(func, attr, *args, inplace=False, **kwargs)¶ Compute minimum for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum
.
- Returns
output – Transformed component.
- Return type
-
minimum_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute minimum_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_filter
.
- Returns
output – Transformed component.
- Return type
-
minimum_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute minimum_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_filter1d
.
- Returns
output – Transformed component.
- Return type
-
minimum_position
(func, attr, *args, inplace=False, **kwargs)¶ Compute minimum_position for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_position
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_position
.
- Returns
output – Transformed component.
- Return type
-
morphological_gradient
(func, attr, *args, inplace=False, **kwargs)¶ Compute morphological_gradient for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.morphological_gradient
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.morphological_gradient
.
- Returns
output – Transformed component.
- Return type
-
morphological_laplace
(func, attr, *args, inplace=False, **kwargs)¶ Compute morphological_laplace for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.morphological_laplace
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.morphological_laplace
.
- Returns
output – Transformed component.
- Return type
-
property
n_timesteps
¶ Effective number of timesteps.
-
pad
(func, attr, *args, inplace=False, **kwargs)¶ Compute padded array for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.pad
.kwargs (misc) – Any additional named arguments to
numpy.pad
.
- Returns
output – Transformed component.
- Return type
-
pad_na
(attr, actnum, fill_na=0.0, inplace=True)[source]¶ Add dummy cells into the state vector in the positions of non-active cells if necessary.
- Parameters
- Returns
output
- Return type
component if inplace else padded attribute.
-
percentile_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute percentile_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.percentile_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.percentile_filter
.
- Returns
output – Transformed component.
- Return type
-
prewitt
(func, attr, *args, inplace=False, **kwargs)¶ Compute prewitt for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.prewitt
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.prewitt
.
- Returns
output – Transformed component.
- Return type
-
random_noise
(func, attr, *args, inplace=False, **kwargs)¶ Compute array with added random noise of various types for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
random_noise
.kwargs (misc) – Any additional named arguments to
random_noise
.
- Returns
output – Transformed component.
- Return type
-
rank_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute rank_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.rank_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.rank_filter
.
- Returns
output – Transformed component.
- Return type
-
ravel
(attr=None, inplace=True, **kwargs)¶ Brings component to ravel state. If not inplace returns ravel representation for attributes with pre-defined ravel transformation.
-
rescale
(func, attr, *args, inplace=False, **kwargs)¶ Compute rescale for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
skimage.transform.rescale
.kwargs (misc) – Any additional named arguments to
skimage.transform.rescale
.
- Returns
output – Transformed component.
- Return type
-
reshape
(attr, newshape, order='C', inplace=True)¶ Reshape numpy.ndarray attributes.
- Parameters
- Returns
output
- Return type
BaseComponent if inplace else reshaped attribute itself.
-
resize
(func, attr, *args, inplace=False, **kwargs)¶ Compute resize for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
skimage.transform.resize
.kwargs (misc) – Any additional named arguments to
skimage.transform.resize
.
- Returns
output – Transformed component.
- Return type
-
rot90
(func, attr, *args, inplace=False, **kwargs)¶ Compute rotated an array by 90 degrees in the plane specified by axes for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.rot90
.kwargs (misc) – Any additional named arguments to
numpy.rot90
.
- Returns
output – Transformed component.
- Return type
-
rotate
(func, attr, *args, inplace=False, **kwargs)¶ Compute rotate for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.rotate
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.rotate
.
- Returns
output – Transformed component.
- Return type
-
sample_crops
(attr, shape, size=1)¶ Sample random crops of fixed shape.
-
set_state
(**kwargs)¶ State setter.
-
shift
(func, attr, *args, inplace=False, **kwargs)¶ Compute shift for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.shift
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.shift
.
- Returns
output – Transformed component.
- Return type
-
show_cube
(attr, t=None, x=None, y=None, z=None, actnum=None, figsize=None, **kwargs)[source]¶ Visualize slices of 4D states arrays. If no slice is specified, spatial slices will be shown with interactive slider widgets.
-
sobel
(func, attr, *args, inplace=False, **kwargs)¶ Compute sobel for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.sobel
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.sobel
.
- Returns
output – Transformed component.
- Return type
-
spline_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute spline_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.spline_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.spline_filter
.
- Returns
output – Transformed component.
- Return type
-
spline_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute spline_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.spline_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.spline_filter1d
.
- Returns
output – Transformed component.
- Return type
-
standard_deviation
(func, attr, *args, inplace=False, **kwargs)¶ Compute standard_deviation for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.standard_deviation
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.standard_deviation
.
- Returns
output – Transformed component.
- Return type
-
property
state
¶ Get state.
-
strip_na
(attr, actnum, inplace=True)[source]¶ Remove non-active cells from the state vector.
- Parameters
- Returns
output
- Return type
component if inplace else stripped attribute.
Notes
Outputs 1d array for each timestamp.
-
sum
(func, attr, *args, inplace=False, **kwargs)¶ Compute sum for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.sum
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.sum
.
- Returns
output – Transformed component.
- Return type
-
to_spatial
(attr=None, inplace=True, **kwargs)¶ Bring component to spatial state. If not inplace returns spatial representation for attributes with pre-defined spatial transformation.
-
uniform_filter
(func, attr, *args, inplace=False, **kwargs)¶ Compute uniform_filter for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.uniform_filter
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.uniform_filter
.
- Returns
output – Transformed component.
- Return type
-
uniform_filter1d
(func, attr, *args, inplace=False, **kwargs)¶ Compute uniform_filter1d for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.uniform_filter1d
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.uniform_filter1d
.
- Returns
output – Transformed component.
- Return type
-
unravel
(*args, **kwargs)¶ Alias for to_spatial method.
Deprecated since version Renamed: to_spatial
-
values
()¶ Returns a generator of attribute’s data.
-
variance
(func, attr, *args, inplace=False, **kwargs)¶ Compute variance for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.variance
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.variance
.
- Returns
output – Transformed component.
- Return type
-
watershed_ift
(func, attr, *args, inplace=False, **kwargs)¶ Compute watershed_ift for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.watershed_ift
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.watershed_ift
.
- Returns
output – Transformed component.
- Return type
-
white_tophat
(func, attr, *args, inplace=False, **kwargs)¶ Compute white_tophat for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.white_tophat
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.white_tophat
.
- Returns
output – Transformed component.
- Return type
-
zoom
(func, attr, *args, inplace=False, **kwargs)¶ Compute zoom for given data.
- Parameters
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.zoom
.kwargs (misc) – Any additional named arguments to
scipy.ndimage.zoom
.
- Returns
output – Transformed component.
- Return type
-