Clustering of magnetic reconnection exhausts in the solar wind: An automated detection study

Context. Magnetic reconnection is a fundamental process in astrophysical plasmas that enables the dissipation of magnetic energy at kinetic scales. Detecting this process in situ is therefore key to furthering our understanding of energy conversion in space plasmas. However, reconnection jets typically scale from seconds to minutes in situ, and as such, ﬁnding them in the decades of data provided by solar wind missions since the beginning of the space era is an onerous task. Aims. In this work, we present a new approach for automatically identifying reconnection exhausts in situ in the solar wind. We apply the algorithm to Solar Orbiter data obtained while the spacecraft was positioned at between 0.6 and 0.8 AU and perform a statistical study on the jets we detect. Methods. The method for automatic detection is inspired by the visual identiﬁcation process and strongly relies on the Walén relation. It is enhanced through the use of Bayesian inference and physical considerations to detect reconnection jets with a consistent approach. Results. Applying the detection algorithm to one month of Solar Orbiter data near 0.7AU, we ﬁnd an occurrence rate of seven jets per day, which is signiﬁcantly higher than in previous studies performed at 1AU. We show that they tend to cluster in the solar wind and are less likely to occur in the tenuous solar wind ( < 10cm − 3 near 0.7AU). We discuss why the source and the degree of Alfvénicity of the solar wind might have an impact on magnetic reconnection occurrence. Conclusions. By providing a tool to quickly identify potential magnetic reconnection exhausts in situ, we pave the way for broader statistical studies on magnetic reconnection in diverse plasma environments.


Introduction
Magnetic reconnection is a fundamental energy-transfer process triggered at kinetic scales in plasmas, that converts magnetic energy into kinetic and thermal energy while allowing a global reconfiguration of the magnetic field topology. The typical magnetic field configuration of a reconnection site is shown in Fig. 1, with a plasma exhaust bounded by two discontinuities that are akin to rotational discontinuities (Gosling et al. 2005a). A spacecraft crossing a reconnection exhaust would observe an ion jet as well as an electron jet, both coincidental with a sharp rotation in the magnetic field and an electric current. Additional signatures may also arise, such as a decrease in the magnetic field strength owing to energy conversion, an increase in electron temperature, as well as an increase in density (e.g., Gosling et al. 2005a, Paschmann et al. 2013. In order to best identify the reconnection signatures in the magnetic field and velocity, the lmn coordinate system associated with the magnetic field rotation is usually used (Sonnerup & Cahill 1967), where l is the maximum variance direction of the magnetic field, n is its minimum variance direction (normal to the current sheet), and m is the direction completing the frame. The reconnection jet would then align with the l direction, making it easy to detect and characterise.
To test whether a plasma jet is indeed consistent with a rotational discontinuity, and thus possibly the result of reconnection, a test of the Walén relation is often performed. The Walén relation is derived from jump properties for an Alfvénic rotational discontinuity (Hudson 1970) and states that the change in velocity across such a discontinuity should follow: with where V A is the local Alfvén velocity and (P − P ⊥ ) µ 0 B 2 is the pressure anisotropy correction term (with P and P ⊥ being the pressures parallel and perpendicular to the magnetic field, respectively). As the spacecraft crosses the exhaust, it encounters two rotational discontinuities with opposite correlations. This Magnetic field lines are drawn in black, while white arrows represent the plasma flow in the de Hoffman-Teller frame (de Hoffmann & Teller 1950). The rotational discontinuities delimiting the exhaust are shown as dashed lines, with their colour indicating which sign of the Walén relation applies at this boundary. An illustrative spacecraft trajectory is plotted as a dotted arrow. Figure adapted from Gosling et al. (2005a). is illustrated in Fig. 1, where at each boundary, the sign of the Walén relation changes as indicated by the direction of the flow in the de Hoffman-Teller frame (de Hoffmann & Teller 1950). A spacecraft flying through the exhaust following the dotted arrow would first see an anticorrelation between V and V A upon entry into the exhaust, followed by a correlation when exiting the exhaust.
The above signatures of magnetic reconnection were first observed in situ in the solar wind by Gosling et al. (2005a) in the interior of an interplanetary coronal mass ejection (ICME) at 1 AU. Since then, the role of magnetic reconnection has been highlighted in different contexts: it is known to occur close to or within ICMEs (Gosling et al. 2005a;Gosling & Szabo 2008), to participate in their natural erosion (Lavraud et al. 2014;Ruffenach et al. 2012Ruffenach et al. , 2015, and to play a key role in the dynamics of the heliospheric current sheet (HCS) by releasing flux ropes from the tip of the helmet streamer (Gosling et al. 2005bLavraud et al. 2009Lavraud et al. , 2020Sanchez-Diaz et al. 2017Phan et al. 2021;Réville et al. 2022). Magnetic reconnection has also been observed in the regular solar wind at 1 AU (Phan et al. , 2010Davis et al. 2006;Eriksson et al. 2009;Gosling 2007;Gosling et al. 2007;Mistry et al. 2015Mistry et al. , 2017 and is suspected to play a role in heating and accelerating the solar wind closer to the Sun (e.g., Priest et al. 2005;Klimchuk 2006), though evidence of the latter is still lacking. The Parker Solar Probe (PSP) mission has provided new insights into the role of magnetic reconnection, highlighting that in the young solar wind, magnetic reconnection is not a prevalent process, with the majority of non-reconnecting current sheets being found to be associated with transient structures called magnetic switchbacks . At 0.1 AU, magnetic reconnection is more frequently observed near the HCS (Phan et al. 2021) than in the regular solar wind, and the opposite is true at 1 AU.
While detecting magnetic reconnection in situ is key to furthering our understanding of energy conversion in space plasmas, the associated exhausts typically span broad scales in the time series, from seconds or below (providing the instrumental resolution is sufficiently high) to tens of minutes. As a consequence, detecting exhausts in the decades of data provided by present and past solar wind missions such as Wind, ACE, Helios, PSP, and Solar Orbiter can be an onerous task. Tilquin et al. (2020) attempted to detect reconnection jets automatically, and managed to drastically reduce the time needed to build a magnetic reconnection data set with Helios data by adopting a machine learning approach. More recently, Eriksson et al. (2022) also devised an automatic detection method and analysed ten years of WIND data based on typical reconnection signatures. Both of these studies represent significant progress towards analysing magnetic reconnection in the solar wind in a systematic way. In line with these works, here we present a new approach to automatically identify reconnection exhausts in situ using Bayesian considerations.
The objective of this work is to analyse the prevalence of magnetic reconnection in the solar wind using Solar Orbiter data. To this end, we present a new approach for automatically identifying reconnection exhausts in situ where we aim to obtain a low false-positive (FP) rate, an acceptable running time, and a reusable tool that can easily be applied by the scientific community. The method, described in Sect. 3, is inspired from the visual identification process and relies heavily on the Walén relation, as well as on Bayesian inference and physical considerations. In Sect. 4, we apply the algorithm to Solar Orbiter data from between 0.6 and 0.8 AU, where we detect 146 jets over a period of 20.7 days. We perform a statistical study on the jets we detect and discuss our results in Sect. 5. We summarize our findings in Sect. 6.

Data
In this paper, we use data from the Solar Orbiter spacecraft (Müller 2020), particularly the Proton and Alpha particle Sensor (PAS; Louarn et al. 2021) of the Solar Wind Analyser (SWA) suite (Owen et al. 2020) and the magnetometers of the MAG instrument (Horbury et al. 2020). We resample all data products to 0.25 Hz in order to match the time resolution of the PAS data in its normal mode. The data we use are shown in the RT N frame of reference, with R (radial) being the Sun to spacecraft unit vector, T (tangential) being the cross product between the Sun's spin axis and R, and with N (normal) completing the direct orthogonal frame.

Detection algorithm
When searching for magnetic reconnection signatures in situ, we typically look for ion jets that are centred on coincidental thin, bifurcated current sheets and perform the Walén test to check whether or not the exhaust boundaries are consistent with rotational discontinuities of opposite correlations (e.g., Phan et al. 2020). It is this process, which seems quite simple at first glance, that we aim to automatise in this work.

Change of correlation
The first feature we focus on detecting is a quantifiable change of correlation. To do this, we test the Walén relation and compare different models (defined hereafter) on various scales using a sliding window method.

Model definitions
Let t be a time vector centred on a time t 0 and containing N data points spaced by a constant dt. We denote V( t) the velocity vector measured by the spacecraft on this given temporal window 1 and consider the variation vector relative to the window's centre ∆V( t) = V( t) − V(t 0 ). We aim to compare this relative velocity vector ∆V( t) to a modelled velocity ∆V M ( t, θ), which is defined as follows: where Assuming that the regular solar wind is mostly Alfvénic Louarn et al. 2021), only four cases arise, defining four models: θ 1 = [+1, +1] T corresponds to an Alfvénic correlated solar wind, θ 2 = [−1, −1] T corresponds to an Alfvénic anti-correlated solar wind, θ 3 = [+1, −1] T corresponds to a correlated / anti-correlated reconnection jet, θ 4 = [−1, +1] T corresponds to an anti-correlated / correlated reconnection jet. In the following subsections, we compare these four models, but we underline here that the algorithm best works where the solar wind is Alfvénic as we assumed.

Likelihood computation
For each model, we compute the log-likelihood of the data, which quantifies the probability of observing the data assuming that this model is correct. We assume that the dispersion σ of our data ∆V around its expected value ∆V M takes on the following form: The first term assumes a white noise model with a σ 0 = 2.0 km s −1 dispersion. This value corresponds to the typical error on the velocity vector for the PAS instrument on Solar Orbiter, which is estimated to be between 1 and 3 km s −1 (Louarn et al. 2021). Increasing σ 0 decreases the number of detections, as this amounts to increasing the assumed noise on ∆V. The second term is introduced to account for the fact that the Alfvénicity of the solar wind may not be perfect. Therefore, the considered model is less accurate at the edges of the window as we take the reference point at its centre (especially true for large scales) and as such the dispersion should increase with distance from the centre of the window. We assume a Gaussian form with an amplitude of = 0.1 km s −1 increase in dispersion per data point. From here, for a given θ, the likelihood of the data follows a normal distribution and may be written for each data point measured at t i as where p(∆V(t i ) | t i , θ) designates the probability of observing ∆V(t i ) at this given time t i knowing θ, G is a 3D Gaussian distribution function and 1 is the identity matrix. More explicitly, by assuming independent measurements and taking the logarithm of this expression, the log-likelihood of the data is given by (see

Model comparison and prior definition
The posterior probability -which quantifies the credence of a model (in our case, the value of θ) given the observed data (i.e. the values of ∆V on the time window t) -is then computed through the Bayes equation: where ln p(∆V | t) is a constant of θ, and p(θ | t) is the prior probability on the θ parameter for our given window, which represents the a priori probability of observing an exhaust in the solar wind. Given each posterior probability, p(θ | t, ∆V), we may compare the probability of observing a jet to the probability of observing an Alfvénic solar wind using Bayesian inference and defining the posterior ratio: where p(jet| t, ∆V) designates the probability that the points in the time window t are part of a reconnection jet given the data ∆V. As described above, this event can occur in one of two ways: a correlated-anticorrelated or an anticorrelated-correlated reconnection exhaust (i.e. θ 3 or θ 4 ). On the other hand, the probability p(no jet| t, ∆V) is composed of the two events θ 1 and θ 2 , corresponding to the case of an Alfvénic wind. All the terms of Eq. (8) can be computed with the help of Eq. (7). As such, the evaluation of this ratio remains numerically challenging, and we show in Appendix A that a relevant equivalent can be defined as where p(jet| t) designates the prior probability, which is defined as the probability that all points in the time window t are part of a reconnection jet. The main benefit of using Eq. (9) instead of Eq. (8) lies in the presence of much larger terms in the sums, allowing their evaluation without truncation errors. The only remaining factor that needs to be defined in order to compute Q( t) is the prior probability p(jet| t).
Defining the prior probability is an important step in the detection algorithm, as it amounts to setting a threshold on the detection. Let us assume that each data point has a 1% chance of being part of a reconnection exhaust. This value is taken based on the study of Lavraud et al. (2021), as the six exhausts they detect in one day represent around 1% of the data. Let us underline here that the 1% value is not conservative, and in Appendix B we show that decreasing this value leads to a better performance of the algorithm; it might be adjusted in future work. This value being fixed, the prior probability for a Fig. 2. Automated detection of reconnection exhausts on July 16, 2020. We show the magnetic field components and its amplitude in panel a, the ion velocity vector components in panels b and c, the ion density in panel d, and the ion temperature in panel e. Panel f displays the quantity ln Q 25 (t) and ln Q 850 (t) (see Sect. 3.1). The shaded areas indicate the final detections made by the algorithm (see Sect. 3.2). We show the six reconnection jets that were also detected by Lavraud et al. (2021) in light blue, two new true detections in darker blue, and one false detection in red.
given window is then given by p( jet | t) = 0.01 N . The fact that this probability decreases with N exponentially is the result of assuming that each point of t has an independent probability of being part of a jet. Naturally, it is likely in practice for successive points to be correlated, and it is therefore likely that the probability of the time window being part of a jet is the result of an underlying stochastic process that is a function of time. The careful estimate of the nature of this process is an issue that would probably necessitate an entire study. As it is, this exponential decrease with N must therefore be seen as a lower bound of the prior p(jet| t), in addition to being easy to implement and compute. Taking this term to the power 1/N in Eq. (9) allows us to get rid of most of the window's size dependence on the posterior ratio by using Q( t). We can then evaluate Eq. (9) for any time window, and a change of correlation is detected on our considered window if the posterior ratio is superior to 1, or equivalently if the scalar value ln Q( t) is positive.

Expanding to the complete data set
Until now, we have only considered a given time window t, characterised by its centre t 0 and width N. For this time window, we computed a scalar value, which is the probability of observing a correlation change given the observed data in this window. This quantity can be written Q(t 0 , N) or equivalently Q s (t 0 ), with the subscript s designating the scale of the temporal window Ndt. Let us now expand to a complete data set characterised by a time vector t. To sweep through this data set, we only need to repeat the process described immediately above while shifting t 0 . This yields a continuous log-probability over time Q s (t). To detect correlation changes on different scales, we start from small scales and gradually increase the window size s. A potential jet is flagged whenever the quantity ln Q s (t) becomes positive for at least two consecutive points, and we only flag an interval if it has not been detected at lower scales. This process (going from small to large scales) allows us to detect an exhaust on the minimum scale possible, which permits us to accurately account for its duration.
3.1.5. Application to data from July 16, 2020 As an illustration we apply this first part of the detection algorithm to 24h of data obtained on July 16, 2020, and presented in Fig. 2. This day was studied in detail by Lavraud et al. (2021), who identified six reconnection exhausts, which are highlighted as light blue shaded areas in Fig. 2. We show the magnetic field and ion data in the first five panels for this day for context. We ran the detection algorithm, investigating 100 scales starting from 25 s up to 850 s, and we display ln Q 25 (t) and ln Q 850 (t) in Fig. 2f. The six reconnection exhausts identified by Lavraud et al. (2021) and highlighted in light blue all correspond to positive values of ln Q(t) for one or the other scale, except for the last jet observed at 23:01 UT. The latter is actually detected by the algorithm at intermediate scales.
A98, page 4 of 15 Fig. 3. Illustration of the Walén relation for the reconnection jet occurring on July 16, 2020, between 12:34:39 and 12:38:07 . Panel a displays the magnetic field and panel b the variation of the ion velocity vector around its mean value. Both are transformed in the lmn frame using a minimum variance analysis (Sonnerup & Cahill 1967). The grey area highlights the jet location. Panels c to e show zooms onto the jet and compare the quantities ∆V (full lines) and ∓∆V A (dashed lines), with the change of correlation occurring at the centre of the jet (black vertical line).
In Fig. 3, we illustrate the Walén relation for one of the reconnection jets identified by Lavraud et al. (2021) on July 16, 2020, around 12:36, which our algorithm picks up as well. In Figs. 3c to 3e, it is clear that ∆V and ∓∆V A correspond to one another. Any other value of θ (+∆V A ,−∆V A , ±∆V A ) would not show a better fit to ∆V . Interestingly, the reconnection jet seems to be Alfvénic on its leading edge (jump in ion speed around 40 km s −1 ) and sub-Alfvénic on the trailing edge (20 km s −1 ).
After this first part of the algorithm, all intervals where ln Q(t) is positive (Fig. 2f) are flagged, and while some of them are true new detections, others are false positives. The second part of the algorithm is designed to differentiate between true and false detections based on some physical considerations.

B l reversal
The first step we take is to transform each interval to its associated lmn frame using the minimum variance analysis technique (Sonnerup & Cahill 1967). Similarly to Tilquin et al. (2020), we impose that the B l component should reverse over the interval. We additionally require that the sign of B l remains the same over 10% of the window length at the beginning and end of the window.

The existence of a jet
We ensure that a velocity jet is indeed observed along the l direction. We require that: -The signs of the V l variation between the centre of the window and both edges of the interval are the same, meaning , with t i and t f being the start and end time of the window; -The maximum V l variation is superior to the maximum variations of V m and V n ; -The V l variation between the centre of the window and both edges of the interval should be at least 30% of the maximum V l variation. The first requirement is enforced in order to discard changes of correlations that are associated with a V rotation (instead of a B rotation); the second point ensures that the jet is observed in the l component; and the third point discards intervals where V l does not display a sufficiently clear jet signature. This latter point is introduced at the expense of removing the most asymmetric reconnection cases.

A condition on the electric current
During a change of correlation coincidental with a current sheet, there always exists a magnetic shear and an associated current. In the limit of null magnetic shear and current, magnetic reconnection may not occur, but this constitutes a singularity. In practice, we should define a minimum current for our algorithm to detect an exhaust. Current measurements are not available as a data product on Solar Orbiter, and therefore we devise a 1D approximation for the electric current based on the Maxwell Ampere equation. In the lmn frame, the rotational of B writes: We assume no variation of B along m (∂ m = 0), and we neglect the terms ∂ n B m , ∂ l B m , and ∂ l B n compared to the B l variation. Indeed, l is the direction of maximum variance of the magnetic field, and the Hall field (B m ) should be negligible far from the reconnection site while B n should remain essentially constant throughout the exhaust. To first order, the equation can therefore be simplified to where u m is the unit vector in the m direction. From there, we may derive an approximation for the electric current: The term ∆B l is computed at the edges of our considered window, and ∆n = V n ∆t. Following some tests of trial and error, we set the minimum current required for detection at j = 0.04 nA/m 2 .
3.2.4. Application to data from July 16, 2020 We now apply the complete algorithm to July 16, 2020, and scan 100 scales between 25 s and 850 s. We detect nine potential reconnection events over this day, which are displayed in  Reconnection exhaust detections over 30 days of data from July 14, 2020, at 05:15 to August 13, 2020, at 00:00. Panels a and b show the magnetic field components and its amplitude, panels c and d display the ion velocity vector components, and panel e shows the ion density. The blue shaded areas indicate the location of the reconnection exhausts we confirmed (see Table D.1) and panel f displays their occurrence computed on both a 6h and a 24h window. The red arrows highlight intervals of higher occurrence. Panel g shows the PAD of suprathermal electrons (with energy superior to 120 eV) normalised to its maximum value in each time bin. adds two new true detections (dark blue intervals). One interval (07:41:47-07:42:55) is flagged by our algorithm but is not a reconnection exhaust (red interval). False detections are further discussed in Sect. 4.1.

Assumption summary
In the algorithm presented above, several assumptions and requirements impact the detection and some may be improved in the future. We list them here for the sake of clarity: -We assume a dispersion σ in the form of Eq. (4)   A performance analysis of the algorithm is available in Appendix B, and shows the impact of changing some of the input parameters. The detection algorithm is publicly available 2 .

Algorithm performance
We apply the detection algorithm described in Sect. 3 to Solar Orbiter data running from July 14, 2020, at 05:15 to August 13, 2020, at 00:00. During this period of about a month, Solar Orbiter measured the solar wind properties from 0.63 AU to 0.82 AU and we display the solar wind properties in Fig. 4. The data gaps (Table C.1) in Fig. 4 are due to the absence of either magnetic field or plasma measurements and amount to 9 days of missing data; we therefore investigate a total of 20.7 days of Solar Orbiter measurements. During this period, the algorithm detects 270 potential jets, and through visual inspection of these detections we are able to confirm 133 (49%) reconnection events and reject 137 (51%) false detections.
Such false detections are typically due to deviations from a unique Alfvénicity sign produced at small scales compared to the window length, and we show an example in Fig. 5. There, even though the algorithm detects a change of correlation, a B l reversal, sufficient current, and sufficient V l variation, this event cannot be identified as a reconnection jet. By contrast with Fig. 3, no obvious current sheet or ion jet is observed in panels a and b. In panels c to e, we see that ±∆V A shows better agreement with ∆V than −∆V A does, even though the anticorrelation is clear on the leading edge of the interval. This is due to a slight deviation 2 https://github.com/Nfargette/Magnetic_reconnection/ from Alfvénicity close to the centre of the window, which leads to large errors between ∆V and −∆V A . Another cause for false detection (not shown) is that, despite displaying a change of correlation and other required signatures (Sect. 3.2), the presence of a jet is not sufficiently clear, for instance lacking evidence in terms of density, temperature, magnetic field magnitude, and so on. This is the case for the false detection of July 16 (07:41:47-07:42:55) presented in Sect. 3.1.5.
One of the aims of this study is to analyse reconnection jets in the solar wind in a close-to exhaustive way. Therefore, we chose thresholds on the input parameters that were not conservative so as to increase the number of detections and include even the shortest jets. This leads to a high FP rate (51%); however, it remains a goal of the authors to decrease this rate in the future while detecting as many jets as possible. Adjusting some input parameters of the current version of the algorithm already allows a decrease in the FP rate, but at the expense of a decrease in the number of detections. For instance, increasing the assumed noise on the PAS data from 2 km s −1 to 5 km s −1 leads to 57 detections, among which 50 (88%) are reconnection jets and 7 (12%) are false detections. A performance analysis of the algorithm is available in Appendix B.
The overall process of running the algorithm and checking the different detections amounts to 4 to 5 h of work, which is a significant decrease compared to the time required for finding jets with visual inspection alone. In parallel, we were able to visually identify 13 additional reconnection exhausts that were missed by the detection algorithm. These 13 detections are not exhaustive and additional work is required to estimate the falsenegative rate of the algorithm. We display the times of the 146 (133+13) reconnection jets we detected in Fig. 4. We also provide the detailed start and end times in Table C.1. These start and end dates have been redefined visually to best fit the identified reconnection jets, and the error made by the algorithm on the boundaries is around 16% of the jet duration on average.

Occurrence rate and waiting time
The occurrence rate computed over a 24h window is plotted in Fig. 4f and we find a global average of 7.0 jets/day. It is visually striking in Fig. 4 that there exist periods of time in the solar wind where a large number of reconnection jets occur (red arrows), while other periods are completely devoid of events. This clustering is made particularly clear by the occurrence rate computed over 6 hours, which sometimes peaks at 10 events/6h (e.g., July 23) or stays close to zero for extended periods (e.g., July 17, August 2-3). We further confirm the clustering of reconnection jets in the solar wind by analysing the waiting time 3 distribution of our reconnection exhausts. If the occurrence was random, as per a Poisson process, we would expect the waiting time distribution to follow an exponential law with distribution re −rt , with r the occurrence rate and t the waiting time. In Fig. 6, we display the observed distribution of the jet waiting time together with the expected Poisson distribution. While the exponential curve reproduces the overall trend of waiting times, it does not account for the amount of observed waiting times below 20 min (two first bars of the histogram). Long waiting times (>1200 min) are also unlikely for a Poisson process. We further confirmed this result by performing this analysis on a previous version of the magnetic field dataset (L2 V2, not shown), which contains fewer data gaps. By including 24.3 days of data instead of 20.7, the clustering of jets becomes even clearer, with waiting times Fig. 6. Waiting time distribution of reconnection jets. The blue curve indicates the expected distribution for a random Poisson process and its associated uncertainty (1-3σ, grey shaded areas). A preliminary version of this figure is available in Woodfield et al. (2023), which is based on a previous version of Solar Orbiter data. below 40 min being anomalous (more than two standard deviations away) compared to the Poisson distribution.
The fact that reconnection jets seem to cluster in the solar wind has in fact been pointed out on a larger scale. While studying 34 reconnection exhausts specifically occurring in high speed streams over 1 year of Wind data, Gosling (2007) found that while some exhausts clustered and where separated by around 2 h, numerous long intervals of several days at a time displayed no reconnection signatures. With our extended dataset, we find that this clustering is also present over one month of data regardless of the solar wind speed.

Jet properties
In Fig. 7, we show a scatter plot of the duration of reconnection jets as a function of the magnetic shear across the exhaust. The latter was computed by taking the B values at the jet boundaries. We see that most of our jets occur at low shear angle (<90 • ), which is consistent with previous studies of reconnection jets in the solar wind and reflects the fact that low shear current sheets are frequent in the solar wind Phan et al. 2010;Mistry et al. 2017;Tilquin et al. 2020;Eriksson et al. 2022). The duration of the exhaust mostly stays below 100 s, and longer jets tend to present a higher magnetic shear angle. The fact that we do not detect long low shear jets might be a detection bias as the thresholds we put on the jump in velocity and the electric current would probably reject those detections. When we convert the jet duration to width using the normal crossing velocity V n and assuming that the ion skin depth is d i = 100 km at 0.7 AU (Verscharen et al. 2019), we find exhaust width ranging from 6 to 1116d i , with a median of 85d i .
We further highlight in red the reconnection jets where the B R component of the magnetic field is not reversed, indicating that they are not associated with a crossing of the HCS and probably occur in the turbulent solar wind. These types of jets constitute the majority of the low-shear/low-duration exhausts that we detect. For the remaining jets, which reverse the B R component, further analysis is required to precisely determine the context in which they occur.

Solar wind conditions
In order to identify a trigger of magnetic reconnection, we investigate different solar wind parameters upon its occurrence. In Fig. 8, we display the joint distribution of the solar wind speed V, density n, temperature T, and plasma parameter log β for the whole period of measurements in a corner plot. In the 1D distributions (top panels), we superimpose the distribution of the exhaust inflow conditions, which were computed as the median value of the different parameters on each side of the jets in a window lasting 30% of the jet duration.
We observe several interesting differences between the standard solar wind parameter distributions (black histograms) and the solar wind conditions where magnetic reconnection occurs (blue histograms). We first observe a small tendency for the jets to be less likely to occur in the very slow solar wind (around 300 km s −1 ). This also holds for lower wind temperatures (<3 eV) due to the correlation between solar wind speed and temperature (e.g., Burlaga & Ogilvie 1970, Lopez & Freeman 1986. Magnetic reconnections occur less frequently in conditions of higher solar wind speed (>435 km s −1 ), but such conditions represent a minority in the dataset. In addition, there exists a clear decrease in the occurrence of reconnections at low density (<10 cm −3 ). For the density, the mode of the standard distribution is not reproduced by the inflow condition distribution.

Discussion
Using the novel methodology we present in Sect. 3, we obtain an occurrence rate of 7.0 reconnection jets per day over 20.7 days of data, which is higher than previously reported. By way of comparison, occurrence rates of 1.5 day −1 ), 0.4 day −1 (Phan et al. 2010), and 0.88 day −1 (Eriksson et al. 2022) were found using the Wind spacecraft data at 1 AU, which are of a similar time resolution (3 s) to data from Solar Orbiter (4 s). The lower reconnection rates found by Gosling et al. (2007) and Fig. 8. Solar wind conditions upon the occurrence of magnetic reconnection. The corner plot shows the joint 2D distributions of the solar wind speed V, plasma parameter log β, temperature T, and density n for the whole period of measurements. The superimposed blue dots indicate the value of these parameters around the intervals where magnetic reconnection was observed. The top panels of the corner plot then show the 1D histograms of these quantities for the whole month (in black) and for reconnection inflow conditions (in blue). Phan et al. (2010) are probably due to the visual method of detection used rather than the effect of radial distance. In future work, we shall investigate the occurrence of magnetic reconnection at varying distances from the Sun. The 0.88 day −1 rate found by Eriksson et al. (2022), also using an automated method, is significantly lower than the 7 day −1 rate we observe. One potential explanation is that Eriksson et al. (2022) investigate six discrete timescales (between 12 s and 20 min) whereas we span 100 (between 25 s and 14 min). Eriksson et al. (2022) acknowledge this and state in their work that the set they observe 'should be considered as the tip of the proverbial iceberg'. An application of our algorithm to WIND data for comparison is left for future work. In total, the reconnection exhausts we detect take up 0.7% (3.5 h) of our 20.7 days of data, and the average jump in velocity in the l direction is 6 +13 −4 km s −1 . Similarly to the conclusion of Gosling et al. (2007), these rather low values lead us to believe that these reconnection exhausts do not play a dominant role in heating and accelerating the solar wind near 0.7 AU.
In Sect. 4.2, we show that, rather than occurring randomly, reconnection exhausts tend to cluster in the solar wind. The reason for this clustering remains unclear, but several explanations can be put forward. It is possible that proximity to the HCS leads to the observation of more events. This is typically observed closer to the Sun in the PSP data (Phan et al. , 2021Lavraud et al. 2020) where the HCS is constantly reconnecting. By looking at the radial component of the magnetic field and at the 100 s resolution pitch angle distributions (PAD) of high-energy electrons (>120 eV) in Fig. 4, we can state that the HCS is probably around July 25 and again around August 11. Additional HCS crossings or partial crossings might also occur in the data set. However, the occurrence of reconnection events does not seem to particularly increase close to these dates compared to the rest of the month. We find that from the 42 events that occur less than 40 min after another event, 24 (57%) reverse their B R component while the other 18 do not. This proportion is slightly higher compared to the proportion of the total number of events that reverse their B R (46%). It is therefore possible that skimming of the HCS accounts for part of the clustering. However, we may not be sure that a B R reversal is associated with a crossing of the HCS, and the distance to the HCS may not explain the periods we observe that show a drop in occurrence. We therefore explored other potential explanations for the clustering of reconnection jets.
In order to identify a potential trigger for magnetic reconnection, we investigated the prevailing solar wind conditions in the inflow regions (Sect. 4.4). We show that reconnection is Table 1. Interval of solar wind streams resembling the fast solar wind and with low magnetic reconnection occurrence.

Start
End 2020-07-14 15h 2020-07-16 05h 2020-07-17 17h 2020-07-18 12h 2020-08-02 00h 2020-08-05 00h less likely to occur in the tenuous (<10 cm −3 near 0.7 AU) solar wind. These periods correspond to streams mostly devoid of reconnection exhausts occurring on July 14-15, July 17-18, July 26-27, and August 2-3. A potential explanation might lie in the nature and origin of these particular streams. The solar wind is classically divided into two types of wind, which differ in velocity range, density, composition, variability, and origin. The fast solar wind can be traced back to coronal holes and open magnetic field lines in the low corona (e.g., Cranmer 2009), while the origin of the slow solar wind is less clear and appears to be associated with the boundaries of coronal holes (e.g., Wang 1994) or with the release of transients through magnetic reconnection at the tip of the coronal streamer (e.g., Lapenta & Knoll 2005;Antiochos et al. 2011;Sanchez-Diaz et al. 2017). Several studies have shown that there exists a type of slow solar wind that shows the characteristics of the fast solar wind in terms of Alfvénicity, composition, and density (e.g., Marsch et al. 1981;D'Amicis & Bruno 2015;D'Amicis et al. 2019). A recent study focussing on the solar wind stream occurring from July 14 to July 18, 2020, showed that it actually corresponds to a slow Afvénic solar wind stream, showing the characteristics of a fast wind stream and originating from a coronal hole (D'Amicis et al. 2021). In our one-month interval, three streams (Table 1) display a low occurrence rate of magnetic reconnection while displaying a high degree of Alfvénicity. Let us point out here that these periods of increased Alfvénicity are also the periods where the algorithm should perform best (see Sect. 3.1), and yet where the algorithm detection rate is the lowest. These streams actually resemble the switchback structures observed by the PSP mission Kasper et al. 2019) with a near constant B magnitude and frequent B R reversals. We know that magnetic reconnection is less frequent both in the turbulent high-speed solar wind (Gosling 2007) and in the highly Alfvénic slow solar wind observed by PSP close to the Sun . It is therefore possible that the source of the solar wind together with its degree of Alfvénicity play a role in the onset of magnetic reconnection in the solar wind.

Conclusions
The key findings presented in this paper can be summarised as follows.
-We present a new methodology to detect magnetic reconnection exhausts in the solar wind (Sect. 3). This automatic algorithm relies on the Walén relation, Bayesian inference, and additional physical considerations. The detection algorithm is publicly available 4 . -We apply it to one month of Solar Orbiter data while the spacecraft was located near 0.7 AU. We are able to confirm the observation of 146 reconnection exhausts over this period of observation, leading to an occurrence rate of 7 day −1 , which is higher that previously reported (Sect. 5).
4 https://github.com/Nfargette/Magnetic_reconnection/ -The reconnection exhausts we detect are mostly low shear and of short duration, consistent with the observations made at 1 AU (Phan et al. 2010). -We find that reconnection jets tend to cluster in the solar wind, as their occurrence is not reproduced by a random distribution. We show that they are less likely to occur in the tenuous solar wind. -We discuss potential reasons for the inhomogeneity of magnetic reconnection occurrence and propose a link to the source and Alfvénicity of the solar wind (Sect. 5).
By providing a tool to quickly identify potential magnetic reconnection exhausts in situ, we pave the way for broader statistical studies on magnetic reconnection in diverse plasma environments.

Appendix A: Posterior ratio computation
In this Appendix, we detail how we compute a relevant equivalent to the posterior ratio. Equation (5) states that the likelihood of the data follows a normal distribution of mean ∆V M (t i , θ) and covariance matrix σ 2 i 1 (4). In three dimensions, the Gaussian distribution writes: with µ the mean vector, Σ the covariance matrix, and |Σ| its determinant. By injecting this expression into Eq. (5), we may write We then assume independent measurements, which means that p(∆V | t, θ) = i p(∆V(t i ) | t i , θ), and, by taking the logarithm of this expression, the log-likelihood of the data writes We may then compute the posterior probability for each model through the Bayes equation (eq. (7)) and compute the posterior ratio: . (A.4) Here, the notation 'jet | t = θ 3 θ 4 | t ', designates the random variable associated to the event 'the points in the time window t are part of a reconnection jet'. As described in Sect. 3.1, this event can occur in one of two ways: a correlated/anticorrelated or an anticorrelated/correlated reconnection exhaust (i.e. θ 3 or θ 4 ). On the other hand, the complement of this event, (i.e. θ 1 θ 2 | t), is denoted 'no jet = jet'.
For each model, the posterior probability can be rewritten as For symmetry considerations, we must have p(θ 3 | t) = p(θ 4 | t) = p(jet| t)/2 a priori, because a correlated/anti-correlated reconnection jet is nothing more than an anti-correlated/correlated reconnection jet through time reversal. We can also consider that p(θ 1 | t) = p(θ 2 | t) = p(no jet| t)/2, because the probability of observing either a correlated or an anti-correlated solar wind relates to being in one or the other magnetic hemisphere. Moreover, the events 'jet' and 'no jet' are complements for a given window size N, such that p(no jet| t) = 1 − p(jet| t). Equation (A.4) can therefore be developed as p jet| t, ∆V p no jet| t, ∆V = p(jet| t) 1 − p(jet| t) k=3,4 p(∆V| t, θ k ) k=1,2 p(∆V| t, θ k ) . (A.6) As it is likely that this ratio will get exponentially small with N, it is convenient (to compare values between window sizes as well as for numerical reasons) to define a normalised posterior ratio Q( t) such that The idea behind this expression is that Q( t) would represent the posterior ratio of a single point if both posteriors could be expressed as the product of independent probabilities (which they generally cannot). In our case, this normalised ratio can be thought of as an average over a given time window t. This way, one can expect to get rid of most of the window's size dependence in the posterior ratio by using Q( t).
To simplify its expression, we may note that p(jet| t) ≪ 1 in general. Indeed, if we write p(jet| t) as N i=1 p(jet| t i ) with p(jet| t i ) ∼ 0.01, as we assumed in the main part, p(jet| t) would then be inferior to the numerical error for N > 8. Therefore, we express Q( t) as Looking at the second part of the expression now, we note that we are still summing probabilities, and therefore cannot avoid considering their actual value rather than taking their logarithm. However, the p(∆V| θ k , t) terms are often too small to compute (as we are multiplying N values below 1) and it would be more convenient to simplify this expression and only consider 'normalised' probabilities p(∆V| θ k , t) 1/N . We therefore proposed the following approximation: (A.9) We can note that one term will always dominate the others either in the numerator or the denominator. The reason is that if for example the parameter set θ 1 were found to properly describe the data, then the set θ 2 would cause the model to predict a completely anticorrelated data set, thus making its likelihood, p(∆V| t, θ 2 ), very low. In such a case, the approximation However, both terms can be of the same order on the other side of the fraction, the error being maximised when p(∆V| t, θ 1 ) = p(∆V| t, θ 2 ) (or respectively p(∆V| t, θ 3 ) = p(∆V| t, θ 4 )). In the latter case, the relative error is ε = 2 1 N −1 ∼ 1, (A.12) and is therefore non-negligible. We note that this situation is not problematic if p(∆V| t, θ {1,2} ) p(∆V| t, θ {2,1} ) and p(∆V| t, θ 3 ) ∼ p(∆V| t, θ 4 ), because it would lead to a small value of Q( t) with or without the approximation and thus have no impact on the jet detections. The only situation where the approximation can have an impact is if p(∆V| t, θ {3,4} ) p(∆V| t, θ {4,3} ) and p(∆V| t, θ 1 ) ∼ p(∆V| t, θ 2 ), where the Eq. (A.9) underestimates the actual value of Q( t) by a factor of up to 2. We also note that this should not cause any false detections because it is an underestimation of the actual ratio, but might cause us to miss jets that are very close to the threshold. However, this effect should remain marginal because it consists at most in an additional constant − ln(2) −0.7 in ln Q( t), to be compared with the axis scale of Fig. 2.