Analysis (rojak.turbulence.analysis)#
Post-processing analyses for turbulence diagnostics
This module implements PostProcessor subclasses that turn raw turbulence diagnostic
values (as computed by rojak.turbulence.diagnostic) into forecasts and skill statistics, namely:
Threshold-based turbulence detection: computing severity thresholds from percentiles of a calibration dataset (
TurbulenceIntensityThresholds), applying those thresholds to obtain boolean turbulent regions (TurbulentRegionFromThreshold,TurbulentRegionsBySeverity), and the resulting probability of encountering each severity (TurbulenceProbabilityBySeverity).Mapping raw diagnostic values onto the Eddy Dissipation Rate (EDR) scale, using the log-normal distribution of the diagnostic on a calibration dataset (
DiagnosticHistogramDistribution,ComputeDistributionParametersForEDR,TransformToEDR).Correlation between turbulence diagnostics, either globally (
CorrelationBetweenDiagnostics,MatthewsCorrelationOnDataset,MatthewsCorrelationOnThresholdedDiagnostics) or stratified by hemisphere and latitudinal region (LatitudinalCorrelationBetweenDiagnostics).Association measures (
RelationshipBetweenand its subclasses) between an arbitrary binary feature and turbulence diagnostics, dispatched viaRelationshipBetweenFactoryand applied across every diagnostic in a dataset viaRelationshipBetweenXAndTurbulence.
Classes
Computes the mean and variance of the log-normal distribution of a turbulence diagnostic's values |
|
Computes the correlation between turbulence diagnostics |
|
|
Computes histogram bins for log-normal distribution of turbulence diagnostics. |
|
Hemisphere to restrict a latitudinal region to, used by |
|
Histogram of the log-normal distribution of a turbulence diagnostic's values |
|
Jaccard index (see |
Computes the correlation between turbulence diagnostics by latitudinal region |
|
|
Latitudinal band to restrict data to, used by |
|
Matthew's Correlation Coefficient (see |
|
Computes the Matthew's Correlation Coefficient between every pair of boolean DataArrays within a Dataset |
Computes the Matthew's Correlation Coefficient between diagnostics, thresholded at each turbulence severity |
|
|
Conditional probability \(P(\text{this\_feature} | \lnot \text{other\_feature})\) |
|
Conditional probability \(P(\text{this\_feature} | \text{other\_feature})\) |
|
Abstract base class for computing an association measure between two boolean features |
|
|
|
Factory for constructing the |
|
Computes the association between a feature and every turbulence diagnostic in a Dataset |
|
Relative risk (see |
|
Sample odds ratio (see |
|
Transforms turbulence diagnostic values into EDR |
Computes threshold diagnostic value for each turbulence intensity using percentiles |
|
Computes probability of encountering turbulence of each severity for a given turbulence diagnostic |
|
Computes a boolean mask of where a turbulence diagnostic falls within a given severity's threshold bounds |
|
|
Computes turbulent regions by severity for a given turbulence diagnostic |