uvisbox.Modules.ProbabilisticMarchingSquares.probabilistic_marching_squares_stats
Module Contents
- uvisbox.Modules.ProbabilisticMarchingSquares.probabilistic_marching_squares_stats.probabilistic_marching_squares_summary_statistics(ensemble_images, isovalue)[source]
Compute level crossing probability for probabilistic marching squares.
This function calculates the probability of an isocontour crossing through each cell in a 2D grid based on an ensemble of scalar fields.
- Parameters:
ensemble_images (np.ndarray) – 3D array of shape
(y_dim, x_dim, n_ensemble)representing the scalar field with ensemble members.isovalue (float) – The isovalue for which to compute the contour crossing probability.
- Returns:
Contains
level_crossing_probability, a 2D array of shape(y_dim - 1, x_dim - 1)with values from 0 to 1.- Return type:
dict