get_strong_gradient_length#

smart.polarity_separation_line.get_strong_gradient_length(im_map, feature_mask, psl_thinmask, threshold: ~astropy.units.quantity.Annotated[~astropy.units.quantity.Quantity, Unit("G / Mm")] = <Quantity 50. G / Mm>)[source]#

Calculate the length of the strong gradients in the magnetic field.

Parameters:
  • im_map (Map) – Processed SunPy magnetogram map.

  • feature_mask (ndarray) – Mask of the feature being examined

  • psl_thinmask (ndarray) – Skeletonized mask of the polarity separation line.

  • threshold (astropy.units.quantity.Quantity) – The threshold above which the gradient is considered strong.

Returns:

strong_gradient_length – The length of the strong gradients in the magnetic field.

Return type:

int