4.11.1. thuner.analyze.mcs
Functions for analyzing MCSs. In particular, for implementing the methodologies presented in the following papers:
Short et al. (2023), Objectively diagnosing characteristics of mesoscale organization from radar reflectivity and ambient winds. https://dx.doi.org/10.1175/MWR-D-22-0146.1
Functions
|
Process winds and velocities for analysis. |
|
Perform quality control on MCSs based on the provided options. |
|
Classify MCSs based on quadrants, as described in Short et al. (2023). |
|
Classify the quadrants based on the angles between the vectors. |
|
Classify small offsets as 'centered' if the offset is less than the minimum offset. |
|
Classify ambiguous classifications as 'ambiguous'. |
- pydantic model thuner.analyze.mcs.AnalysisOptions[source]
Bases:
BaseOptionsOptions for convective system analysis.
- Fields:
- Validators:
- field max_boundary_overlap: float = 0.001
Maximum fraction of system member object pixels touching boundary.
- Constraints:
gt = 0
- field min_major_axis_length: float = 25
Minimum major axis length of MCS in km.
- Constraints:
ge = 0
- thuner.analyze.mcs.classify_all(output_directory, analysis_options: AnalysisOptions, analysis_directory=None, offset_filepath=None, velocities_filepath=None, quality_filepath=None, classify_small_offsets=False, classify_ambiguous=False)[source]
Classify MCSs based on quadrants, as described in Short et al. (2023).
- thuner.analyze.mcs.classify_ambiguous(classified, unambiguous)[source]
Classify ambiguous classifications as ‘ambiguous’.
- thuner.analyze.mcs.classify_angles(name, angles, category_labels)[source]
Classify the quadrants based on the angles between the vectors.
- thuner.analyze.mcs.classify_small_offsets(classified, x_offset, y_offset, min_offset)[source]
Classify small offsets as ‘centered’ if the offset is less than the minimum offset.
- thuner.analyze.mcs.process_velocities(output_directory, window_size=6, analysis_directory=None, profile_dataset='era5_pl')[source]
Process winds and velocities for analysis.
- Parameters:
output_directory (str) – Path to the thuner run output directory.
- thuner.analyze.mcs.quality_control(output_directory, analysis_options: AnalysisOptions, analysis_directory=None)[source]
Perform quality control on MCSs based on the provided options.
- Parameters:
output_directory (str) – Path to the thuner run output directory.
analysis_options (AnalysisOptions) – Options for analysis and quality control checks.
- Returns:
DataFrame describing quality control checks.
- Return type:
pd.DataFrame