find_radial_bin_edges#
- sunkit_image.utils.find_radial_bin_edges(smap, radial_bin_edges=None)[source]#
Calculate radial bin edges for a solar map, either using provided edges or generating them automatically.
- Parameters:
smap (
sunpy.map.Map
) – A sunpy Map containing the data to be binned.radial_bin_edges (
astropy.units.Quantity
, optional) – Pre-defined bin edges for radial binning. Should be a Quantity array with units of solar radii (u.R_sun) or pixels. IfNone
(the default), bin edges will be automatically generated based on the map dimensions.
- Returns:
astropy.units.Quantity
– The final bin edges used for radial binning.astropy.units.Quantity
– Array of radial distances for each pixel in the map, matching the input map dimensions.