On-disc Observations of Flux Rope Formation Prior to its Eruption

Coronal mass ejections (CMEs) are one of the primary manifestations of solar activity and can drive severe space weather effects. Therefore, it is vital to work towards being able to predict their occurrence. However, many aspects of CME formation and eruption remain unclear, including whether magnetic flux ropes are present before the onset of eruption and the key mechanisms that cause CMEs to occur. In this work, the pre-eruptive coronal configuration of an active region that produced an interplanetary CME with a clear magnetic flux rope structure at 1 AU is studied. A forward-S sigmoid appears in extreme-ultraviolet (EUV) data two hours before the onset of the eruption (SOL2012-06-14), which is interpreted as a signature of a right-handed flux rope that formed prior to the eruption. Flare ribbons and EUV dimmings are used to infer the locations of the flux rope footpoints. These locations, together with observations of the global magnetic flux distribution, indicate that an interaction between newly emerged magnetic flux and pre-existing sunspot field in the days prior to the eruption may have enabled the coronal flux rope to form via tether-cutting-like reconnection. Composition analysis suggests that the flux rope had a coronal plasma composition, supporting our interpretation that the flux rope formed via magnetic reconnection in the corona. Once formed, the flux rope remained stable for 2 hours before erupting as a CME.


Introduction
Coronal mass ejections (CMEs) are eruptions of billions of tonnes of plasma from the Sun, requiring large amounts of energy (≈ 10 32 ergs). The only coronal energy source large enough to produce CMEs is magnetic energy, as kinetic, gravitational, and thermal energy fall short by orders of magnitude (Forbes, 2000). While it has been theorised that CMEs may be a method of releasing magnetic helicity in addition to magnetic energy from the corona (Rust, 1994), the physical processes behind the initiation and subsequent evolution of the eruptions remain unclear.
CMEs that are able to escape the Sun and propagate through the heliosphere are sometimes referred to as interplanetary CMEs (ICMEs) when they are detected in situ. When ICMEs are Earth-directed, they can drive phenomena that affect the Earth and the near-Earth environment, and these effects are known collectively as space weather. Space weather impacts include geomagnetically induced currents that can cause strong voltage fluctuations and heating in power grid transformers, and solar energetic particles that can damage satellites. Therefore, early space weather forecasts are needed to allow preparation for the effects of Earth-directed ICMEs.
Spacecraft measuring the solar wind in situ detect signatures of ICMEs. ICMEs appear as strong magnetic field regions that sometimes display a smooth rotation in field direction as the ICME passes the spacecraft. Such observations are called "magnetic clouds" (Burlaga et al., 1981) and are consistent with the presence of a flux rope: a twisted magnetic structure featuring field lines wrapped helically around an axis.
It is important to further our understanding of the pre-eruptive coronal magnetic field configuration of CMEs so we can determine what physical processes cause them to occur. Currently, we have to wait until a CME is in progress before space weather forecasting can begin, with measurements of the ICME properties being taken in situ between the Sun and the Earth at the first Lagrange point (L1). A moderate CME speed at L1 of 400 km s −1 (as in Gopalswamy et al., 2000) implies a typical propagation time of around an hour from L1 to Earth in which to prepare for the arrival of an ICME. Gaining the ability to predict whether an active region might produce a CME could improve lead-times of space weather forecasts by a matter of days.
There are two groups of theories about the pre-eruptive magnetic field configuration (Forbes, 2000;Forbes et al., 2006;Aulanier et al., 2010). One of these involves the presence of a sheared arcade. Sheared arcades are non-potential and are therefore a store of magnetic energy that may be able to power an eruption. In these sheared arcade eruption models, a flux rope may form during the onset of eruption (e.g., via tether-cutting reconnection; Moore et al., 2001) or after the onset of eruption (e.g., via magnetic breakout; Antiochos, DeVore, and Klimchuk, 1999;Lynch et al., 2008). The other group of theories requires that the pre-eruptive configuration is that of a flux rope. In this work, a flux rope is defined as a structure that features an axial field line with at least one off-axial poloidal magnetic field line wrapped around it with at least one full turn (2π ) from end to end. This is the same as outlined by Savcheva et al. (2012). Field lines that feature less twist than this are classified as belonging to a sheared arcade.
A flux rope that is present before an eruption could be formed by a series of reconnection events low down in the solar atmosphere. For example, van Ballegooijen and Martens (1989) described how the shearing, convergence, and reconnection of magnetic field driven by photospheric flows may form a flux rope that could contain filament material. A decrease in magnetic flux is observed in the photosphere when resultant low-lying small-scale reconnected loops submerge beneath the photosphere due to magnetic tension. This process is therefore called flux cancellation. A flux rope formed by flux cancellation should form low down with its underside in the photosphere or chromosphere due to the low altitude of the reconnection. Alternatively, pre-eruption flux ropes can also form via reconnection in the corona. Photospheric motions are likely to also be responsible for their formation, but in this case, by bringing together coronal field lines that then reconnect.
A distinguishing factor between the mechanisms of flux rope formation is the composition of plasma the flux ropes contain. A flux rope that forms as a result of coronal reconnection (as seen in Patsourakos, Vourlidas, and Stenborg, 2013) would contain coronal plasma, in contrast to the low-lying van Ballegooijen and Martens (1989) process that feeds photospheric or chromospheric plasma into the flux rope. Plasma composition can be determined by studying the intensity of emission lines from elements with different first-ionisation potentials (FIP; Brooks and Warren, 2011). Relative to the photosphere, coronal plasma has a greater abundance of low-FIP elements. Baker et al. (2013) observed photospheric plasma in the core of a sigmoidal active region, and suggested this could correspond to part of a flux rope that formed via reconnection low-down in the solar atmosphere via flux cancellation along the polarity inversion line. In addition, the flux cancellation associated with the van Ballegooijen and Martens (1989) model is observed to occur on timescales of days, but the rate of formation of coronal flux ropes is harder to quantify, largely because they are most commonly observed at the limb where they are easier to see (Nindos et al., 2015). The reconnection that builds the flux rope could be an ongoing gradual process, or it could occur in bursts caused by events in the local active region. The occurrence of magnetic reconnection can be probed with radio data because energetic electrons accelerated along magnetic field lines in the reconnection outflow can emit at radio wavelengths. EUV and soft X-ray data may also show increases in intensity due to magnetic reconnection. Some studies have observed signatures of hot coronal flux ropes that erupt ≈ 10 minutes after they first brighten (Cheng et al., 2011;Zhang, Cheng, and Ding, 2012), whereas Patsourakos, Vourlidas, and Stenborg (2013) observed a flux rope appear and grow larger over 17 minutes that then erupted ≈ 7 hours later.
Pre-eruption flux ropes may then erupt as a result of ideal or non-ideal processes. Ideal instabilities include the kink instability, which occurs when the twist of the erupting structure exceeds a critical value (Török and Kliem, 2005), and the torus instability, which occurs when there is a rapid drop-off in vertical magnetic field strength above an arched flux rope (Kliem and Török, 2006). Non-ideal CME models involve magnetic reconnection (e.g., tether-cutting reconnection; Moore et al., 2001, and magnetic breakout;Antiochos, DeVore, and Klimchuk, 1999;Lynch et al., 2008).
Unfortunately, there are difficulties in directly measuring the coronal magnetic field configuration. Measurements of the photospheric magnetic field can be produced by exploiting the Zeeman effect, but because temperatures in the corona can be more than 1000 times higher than in the photosphere (Gary, 2001), thermal and non-thermal broadening have a much larger effect than Zeeman splitting in the corona. Furthermore, because the corona is optically thin, it is difficult to determine the altitude from which the observed photons originate, and various magnetic field directions and strengths may occur along the line of sight.
However, the structure of the corona can be inferred without directly measuring the coronal magnetic field. For example, an inverse crossing in vector photospheric magnetic field data refers to a transverse field component that crosses a polarity-inversion line from negative to positive; the opposite way to how a potential field would behave, and may correspond to a "bald patch" of magnetic field (Titov, Priest, and Démoulin, 1993). An inverse crossing is a necessary (but not sufficient) signature of a low-lying flux rope with helical field that intersects the photosphere. There can also be coronal signatures of flux ropes, such as sigmoids and plasmoids. Sigmoids are continuous S-shaped (or inverse-S-shaped) plasma structures that appear strongly in X-ray bands, but also at hot extreme-ultraviolet (EUV) wavelengths. Their shape is representative of weakly twisted magnetic field bundles, and they may be an indicator of flux rope presence (Rust and Kumar, 1996;Green and Kliem, 2009). Plasmoids are generally features seen in events near the solar limb. The term describes hot globular plasma structures that may be interpreted as a cross-section of a flux rope as it is viewed along its axis (for examples, see Shibata et al., 1995;Reeves and Golub, 2011). Furthermore, measurements of magnetic clouds in situ allow the linking of magnetic structures detected in the solar wind back to their point of origin at the Sun (Marubashi, 1986;McAllister et al., 2001;Yurchyshyn et al., 2001;Möstl et al., 2008;Yurchyshyn, 2008). These measurements can be used alongside solar observations to gain a more complete picture of the eruptive event.
In this work, the solar origin of a magnetic cloud is investigated to determine its preeruptive configuration. EUV observations from SDO/AIA are used to study the evolution of NOAA Active Region 11504 before, during, and after it produced a CME on 14 June 2012. These are supplemented with photospheric line-of-sight and vector magnetic field measurements from SDO/HMI, as well as spectroscopic measurements from Hinode/EIS and radio observations from the Nançay Radioheliograph. The various instruments and data products used are outlined in Section 2. Section 3 begins by describing the in situ magnetic cloud detection and how the active region of origin is identified. The magnetic field, EUV, spectroscopic, and radio observations of the active region are also presented in Section 3, and their implications are discussed in Section 4. Finally, the key conclusions are given in Section 5. A study of the same magnetic cloud was performed by Palmerio et al. (2017), in which the compatibility between the in situ measurements and the pre-eruptive configuration was examined.

Data Sources and Processing
Coronagraph images were taken using the C2 coronagraph of the Large Angle and Spectrometric Coronagraph instrument (LASCO; Brueckner et al., 1995) onboard the Solar and Heliospheric Observatory (SOHO; Domingo, Fleck, and Poland, 1995) to identify the solar eruption that produced the magnetic cloud. LASCO also provides an estimate of the planeof-sky CME speed soon after the eruption.
Two instruments from the Solar Dynamics Observatory (SDO; Pesnell, Thompson, and Chamberlin, 2012) are used for low-coronal and photospheric characterisation. The Atmospheric Imaging Assembly (AIA; Lemen et al., 2012) produces full-disc EUV images at seven wavelengths with a cadence of 12 seconds and pixels that correspond to angular diameters of 0.6 on the Sun. The aia_prep routine in SolarSoft is used to prepare the AIA data to level 1.5, correcting for the slight difference in viewing angle, focal length, and alignment between each of the four AIA telescopes.
The Helioseismic and Magnetic Imager (HMI; Scherrer et al., 2012) has two cameras with pixel sizes of 0.5 . One produces line-of-sight magnetograms and white-light continuum images at a cadence of 45 seconds, and the other makes vector magnetic field measurements at an overall cadence of 12 minutes. The vector dataset used in this work is the hmi.sharp_cea_720s series, which provides automatically selected cutouts of active regions (space weather HMI active region patches; SHARPs -see Bobra et al., 2014) in the form of Lambert cylindrical equal-area (CEA) projection. These data have a minimum-energy optimisation process applied to them with the aim of solving the 180 • ambiguity in the azimuthal magnetic field direction. HMI SHARP data are not accessible during 13 June 2012 (the day before the eruption), so instead, cutouts are taken from the full-disk vector magnetic field series and transformed into the CEA projection. These are then hand-aligned with the SHARP CEA data. The line-of-sight data are processed using the aia_prep routine to change the image scale to 0.6 per pixel to match AIA for easier comparison between the two data sets.
The Geosynchronous Operational Environmental Satellite (GOES) system is used to provide a full-disc X-ray flux light curve over the hours before, during, and after the eruption, as well as a list of flares that are observed in the active region during this time.
Spectroscopic measurements are made using the EUV Imaging Spectrometer (EIS; Culhane et al., 2007) onboard Hinode. The data we use are 1 slit coarse (2 ) raster scans of a 120 × 512 field-of-view, taking 60-second exposures at each position. They are processed and calibrated using standard routines available in SolarSoft. These procedures remove the dark current pedestal, account for hot, warm, and dusty pixels, and correct the orbital drift of the spectrum on the CCD. The data are then calibrated to physical units. The EIS calibration shows an on-orbit evolution with time (Del Zanna, 2013;Warren, Ugarte-Urra, and Landi, 2014), so we also re-calibrate the data using the method of Del Zanna (2013). The EIS scans used here are manually aligned with AIA images to aid comparison of features.
Finally, we use radio images made by the Nançay Radioheliograph (NRH; Kerdraon and Delouis, 1997) at nine frequencies between 150 MHz and 445 MHz using a 10-second integration time.

The Magnetic Cloud in situ and CME Association
An in situ observation of a magnetic cloud was made by the Wind satellite on 16 June 2012. The shock preceding the magnetic cloud was first detected at ≈ 19:30 UT on 16 June, and the passage of the magnetic cloud lasted from ≈ 22:00 UT on 16 June until ≈ 12:30 UT on 17 June. The measured magnetic field vector rotated from north to south in the geocentric solar ecliptic (GSE) coordinate system as the cloud passed the spacecraft, and an eastern field component was measured throughout the cloud (see Figure 6 of Palmerio et al., 2017). This is consistent with a flux rope that has an eastern axial field with helical field wrapped around it. The helical field at the leading edge of the flux rope is northward and at the trailing edge it is southward, so the measured rotation from north to south is produced as it passes over the spacecraft. The in situ flux rope detection is discussed in more detail by Palmerio et al. (2017) in addition to another event, whereas in this article we focus on the pre-eruptive coronal field that generated the magnetic cloud.
The magnetic cloud has previously been associated with a halo CME that was observed by LASCO on 14 June 2012 at 14:12 UT (Richardson-Cane "Near-Earth Interplanetary Coronal Mass Ejections" list; 1 Kubicka et al., 2016;Palmerio et al., 2017. For the method used in creating the ICME list, see Richardson, 2003 andCane, 2010). Here we check the validity of the association. Images from the STEREO A and B satellites confirm that the halo CME occurred from the Earth-facing side of the Sun, and the ICME speed was measured to be ≈ 500 km s −1 by Wind at 1 AU. Assuming the ICME had a constant speed between the Sun and L1 suggests that the source eruption took place at ≈ 08:30 UT on 13 June 2012. However, since the speed of the solar wind preceding the ICME was lower than the ICME speed (solar wind speed ≈ 400 km s −1 measured by Wind), it is likely the ICME had been decelerating before reaching L1. This means that the time of 08:30 UT on 13 June is an earliest limit on the eruption time and the eruption likely took place somewhat later than this.
There are six eruptions listed in the ICME catalog 2 that occurred between this earliest limit of 08:30 UT on 13 June and the halo eruption on 14 June. Halo eruptions manifest when CMEs travel along the line of sight of an observer, and so it is these eruptions that are most likely to result in Earth-directed CMEs. One of the six other eruptions was a partialhalo CME, but that eruption is associated with a small low-speed CME that was detected by Wind 12 -14 hours prior to the magnetic cloud referenced in this work. This association is made because the 13 June partial-halo eruption was determined to have a slower speed than the full-halo eruption of 14 June by SOHO LASCO. This therefore leads to the association of the 14 June halo CME with the 16 June magnetic cloud.
On 14 June 2012, a halo CME was observed in LASCO C2 coronagraph images at 14:12 UT. The radius of the occulting disc used in the C2 coronagraph is 2 R (≈ 1.4 × 10 6 km), so combining this information with the linear plane-of-sky speed of ≈ 980 km s −1 determined by LASCO suggests an eruption on the Sun approximately 20 -30 minutes before its detection. The full-disc EUV data from 13:00 UT -14:00 UT on 14 June 2012 show that an eruption originated from NOAA Active Region 11504 during this time (see Section 3.3), and therefore we associate the origin of the considered ICME with NOAA Active Region 11504.

Photospheric Evolution
NOAA Active Region 11504 rotates onto the solar disc as seen by SDO on 8 June 2012 and rotates off on 21 June 2012. The region initially contains two small sunspots of leading positive polarity and trailing negative polarity (see Figure 1a -b). New magnetic flux emergence occurs between the two spots and they separate (see Figure 1c -d). Figure 2 shows that ≈ 7 × 10 21 Mx cm −2 (with an estimated error of ≈ 5% based on the 2.3 Mx cm −2 noiseper-pixel value of Liu et al., 2012) of magnetic flux emerges in the active region from 11 June until around noon on 15 June, at which time emergence ceases.
The positive flux that emerges from 11 -13 June moves towards the north of the positive sunspot and is distinguished as two sections of umbra in Figure 1. The southernmost section (C+ in Figure 1) moves northward and clockwise around the northern emerged umbra (B+ in Figure 1), such that the southernmost emerged positive umbra eventually comprises the northernmost part of the positive sunspot. However, rather than fully coalescing with the pre-existing positive sunspot umbra, the newly emerged flux remains somewhat separate from the pre-existing flux, existing as distinct umbrae within one penumbra (see Figure 1e). Further emergence of positive flux from 13 -15 June forms another separated area of umbral field within the positive sunspot penumbra to the north of the previous sections (see D+ in Figure 1g). As it approaches the positive sunspot, it is observed to orbit the sunspot clockwise. This continues, displaying a ≈ 120 • movement about the sunspot in 24 hours

Figure 2
Integrated magnetic flux of NOAA Active Region 11504 during its disk passage. Vertical fieldcomponent HMI SHARP images are smoothed over 15 × 15 pixel boxes and then only pixels with a magnetic field strength greater than ± 400 G are included in order to exclude the majority of the quiet-Sun field. This therefore fails to count some small-scale serpentine flux emergence, and so these values of magnetic flux should be regarded as lower limits. 24-hour moving-average smoothing has been applied to the curve to remove short-timescale variations. The vertical black line is drawn at 13:30 UT on 14 June to represent the time at which the eruption of the sigmoid is observed to begin. before stopping (see Figure 1i). This orbit of newly emerged flux around separate areas of magnetic flux seen in the photosphere suggests that regions of magnetic field in the corona may be wrapping around each other -increasing stored energy and creating more favourable conditions for magnetic reconnection between the different magnetic flux regions. The implications of this are discussed in full in Section 4. The negative flux that emerges between 11 June and 15 June forms a negative magnetic tongue to the south of the negative sunspot (B−, C−, and D− in Figure 1g). Magnetic tongues are a signature of the emergence of twisted flux through the photosphere and can therefore be used to observationally determine the chirality of emerging flux (López Fuentes et al., 2000;Luoni et al., 2011). In this active region, the negative tongue extends to the north of the positive emerging flux (see Figure 1d), indicating that the emerging flux tube has right-handed twist. The sheared negative tongue develops into a third sunspot, becoming cohesive on 16 June (see Figure 1i -j). From 15 June until the active region leaves the disc, the positive sunspot moves eastward towards the third sunspot. This motion is observed in the line-of-sight data, but also in the cylindrical equal-area projected vector data that remove some of the foreshortening near the limb. This suggests that the convergence is not just a foreshortening effect near the limb. Additionally, when the converging motion begins on 15 June, the active region is still quite far from the western limb, with the leading sunspot only ≈ 250 west of central meridian.
The horizontal component of the magnetic field extends radially from the southern section of the positive sunspot (A+ in Figure 1), but the field extending out to its north (C+, D+) is sheared by ≈ 45 • relative to the radial direction (see Figure 3a). Furthermore, the pre-existing negative sunspot (A−) exhibits horizontal field that is mostly radial outwards from the sunspot, but the elongated tongue to its south (C−, D−) features shear to a similar degree as seen to the north of the positive sunspot. The positive and negative magnetic flux locations that exhibit horizontal field components without shear (A±) both pre-exist the flux emergence that is observed here, and the positive and negative field areas that do show shear in their horizontal field components emerge at around the same time as their opposing-polarity counterparts (C±, D±). The negative tongue is associated with a region of relatively strong vertical electric current density, seen in Figure 3b, and the same is seen  (a), demonstrating locations of strong gradients in the horizontal magnetic field component. The calculation of current densities in these units relies on the assumption that each pixel represents an equal area in square metres. This assumption breaks down farther away from disc-centre due to projection effects. To remove noise, we set J z = 0 in pixels where the horizontal field strength is weaker than 100 G.
to the north of the positive sunspot. The vertical current density is proportional to gradients in the horizontal field component, and so the vertical current is strongest in areas where shear is strongest. Finally, we find no inverse crossings along the central part of the polarity inversion line in the HMI vector data.

Coronal Evolution
Figure 4 depicts a timeline of coronal events observed in NOAA Active Region 11504 during the hours either side of the eruption on 14 June 2012. A C5.0 flare that produces a bright arcade in the centre of the active region begins at 11:05 UT and reaches its peak intensity at 11:12 UT (as measured by GOES). At 11:20 UT, loops appear to the west of the positive sunspot in the 131 Å images of AIA (see Figure 5b). Other AIA channels were studied, but The full-disc integrated X-ray flux (1.0 -8.0 Å) as measured by GOES-15. Flares observed in NOAA Active Region 11504 are labelled and the durations of observations from the 131 Å EUV data described in Section 3.3 are shown by the blue boxes. There is a two-stage rise in X-ray flux leading up to the CME, with a slow rise from ∼ 13:00 UT -13:30 UT, and a fast rise from 13:30 UT -14:00 UT. the coronal features described in this section appear only in the 94 Å channel and, most prominently, in the 131 Å channel (≈ 6 MK and ≈ 10 MK respectively; Lemen et al., 2012). These western loops briefly brighten before fading out of view by 11:40 UT, by which time the intensity of the flare arcade has also decreased. Data from the X-ray Telescope (XRT) onboard Hinode were also studied, but there was a gap between observations from 11:12 UT -11:43 UT.
At 12:20 UT, loops begin to appear to the south of the active region centre. A C2.6 flare begins at 12:33 UT and peaks at 12:37 UT. Throughout this time, the southern loops increase in brightness and size while remaining in the same location, and continue like this until 13:00 UT. As they brighten, loops once again appear to the west of the positive sunspot in the same location as those that appear at 11:20 UT, and it becomes clear that they are part of a common structure with the southern loops. In fact, together they form a continuous Sshape that traces along the polarity inversion line and has its ends rooted near each sunspot: a forward-S sigmoid (see Figure 5c). This continuous sigmoid cannot be identified in the XRT data because the field-of-view does not cover the whole active region.
At 12:52 UT, an M1.9 flare begins, although it does not reach peak intensity until 14:35 UT. The rise in X-ray intensity during this flare until its peak appears as a two-stage increase (see Figure 4). From 12:52 UT until ≈ 13:30 UT, there is a relatively steady rise in intensity. During this time, the central flare arcade increases in brightness and the sigmoidal loops expand. However, from ≈ 13:30 UT until ≈ 14:00 UT, the X-ray intensity increases more rapidly. This coincides with a growth in the size and brightness of the flare arcade, as well as the eruption of the sigmoid, and the erupting sigmoid material is seen to move southward from the active region in the plane of the image. We conclude that the flare arcade forms beneath the sigmoid because the arcade is not disrupted by the upward motion and eruption of the sigmoid.
A flare ribbon is observed to brighten at the western footpoint of the flare arcade in every AIA channel from 13:45 UT. It is difficult to identify a flare ribbon on the eastern side due to the brightness of the arcade and the complex photospheric flux distribution, but the ribbon on the western side is particularly prominent, tracing around the group of positive sunspot umbrae. After extending out and around the sunspot, the flare ribbon turns back on itself to produce a hook-shape at 13:53 UT (see Figure 5d). At the same time as the flare ribbon on the western side traces out the hook, twin dimmings are observed in the EUV data, with one occurring on either side of the active region (marked with red circles in Figure 6). These are most apparent when taking base difference images of the region, because these show increases and decreases in intensity relative to the chosen time of origin. The western dimming is located within the hook of the western ribbon (where the dark region labelled DR in Figure 5d extends from), and the eastern dimming appears over a small patch of negative magnetic field to the south of the eastern sunspot. The locations of the dimmings and their significance to the pre-eruptive coronal configuration are discussed in Section 4.

Plasma Composition
Composition analysis is performed using data from an EIS raster that began at 11:42 UT on 14 June 2012 to investigate whether features observed in the EUV data have photospheric or coronal plasma composition. We follow the method of Brooks and Warren (2011), which uses the Fe lines to measure the electron density and compute a differential emission measure (DEM) distribution. The density and temperature are then used to model the Si X 258.375 Å/S X 264.223 Å line ratio, which is sensitive to the difference in compositional fractionation of silicon and sulfur due to the FIP effect. The method has been tested extensively in many studies Warren, 2011, 2012;Baker et al., 2013Baker et al., , 2015Culhane et al., 2014;Brooks, Ugarte-Urra, and Warren, 2015;Edwards et al., 2016), and we refer to these works for specific examples. We also use the CHIANTI database v.8 to compute the contribution functions needed for this analysis (Dere et al., 1997;Del Zanna et al., 2015).
The study is performed on loops that extend to the north-west of the positive sunspot, and also on an area to the south-west of the positive sunspot (see the red and blue boxes in Figure 7). These locations are chosen to probe plasma in the flux rope. The red box is located in a region that is seen to form faint new loops in the AIA 131 Å waveband around 40 minutes earlier (from 11:20 UT, as described previously -see Figure 5b). We infer that these loops mark the location of the periphery of the forming flux rope, since the brightening is indicative of heating resulting from reconnection and these loops later grow into the sigmoid. However, at the time of the EIS raster scan, the AIA 131 Å loops have faded and the EIS data show that the box covers a set of loops that exhibit a red-shift (Figure 7). Along the line of sight there will be a contribution from photons of arcade plasma that is not part of the flux rope as well as plasma in the flux rope itself. The blue box samples plasma that appears to be within the western leg of the rope. Photons from this plasma are blue-shifted, revealing that in this location there is a plasma flow toward the observer along the line of sight (Figure 5d). We conclude that the blue box samples plasma within the leg of the flux rope because it is within the dimming region seen in EUV (marked DR in Figure 5d and seen in Figure 6a), which traces back to the hooked flare ribbon. , and an EIS Doppler-velocity image produced at 195.12 Å (Fe XII, right). The AIA and EIS images show an area to the west of the positive sunspot, and this field-of-view is marked on the HMI image. Downflows (red) are observed by EIS in loops that extend to the north-west of the positive sunspot and upflows (blue) are observed to the south-west of the sunspot. The composition analysis is performed on these flow areas in locations shown by red and blue boxes. Since these EIS images are produced via a raster that began at 11:42 UT, the red and blue boxes sample plasma that is observed at ≈ 12:00 UT. Doppler velocities are saturated to ± 15 km s −1 .
The analysis returned a FIP bias of 3.1 at the northern loops and 1.9 for the southern region. FIP biases of the order 1.0 are representative of photospheric plasma, whereas FIP biases of the order of 2 -3 correspond to coronal plasma composition (for a review of the FIP effect including the interpretation of FIP biases, see Laming, 2015). Therefore, these values both suggest plasma that is coronal in composition rather than photospheric. Uncertainties in the FIP bias factors are difficult to quantify, since errors in the radiometric calibration and atomic data are likely to be systematic in nature. Here we use the standard deviation from a distribution of values calculated from 1000 Monte Carlo simulations, where the intensities are randomly perturbed within the calibration error. This produces an uncertainty of ≈ 0.3, which is much smaller than the difference between photospheric abundances (FIP bias ≈ 1) and the range of coronal abundances (≈ 2 -3).

Coronal Radio Observations
Solar radio emission originates from the acceleration of particles, which can occur during magnetic reconnection. The coherent mechanism that can cause radio emission from the accelerated particles results in lower frequencies of radio emission from source regions of lower-density plasma, and higher frequencies from higher-density plasma (see e.g., McLean and Labrum, 1985;Pick and Vilmer, 2008;Reid and Ratcliffe, 2014, as reviews). Observing the Sun at a number of different frequencies enables the probing of radio emission from different plasma densities. Since plasma density generally varies with altitude in the solar atmosphere (with lower plasma density at larger heights), radio emission at lower frequencies generally originates from higher altitudes, whilst high-frequency emission generally originates lower down. However, this is not strictly true because plasma density also varies between different structures, e.g., coronal loops and coronal holes.
Radio observations taken at nine frequencies between 150 MHz and 445 MHz from 10:00 UT on 14 June 2012 show strong emission across all frequencies to the east of the active region until 13:30 UT (Figure 8a -f). The emission at different frequencies appears Approximately two hours before the eruption, ongoing radio emission at all observed frequencies is present to the east of the active region. High-frequency emission is seen to the south-west of the positive sunspot for 20 minutes. (c) -(d) The high-frequency emission continues to the south-west of the positive sunspot, but slightly farther west than in panels a/b. Some 228 MHz emission is also observed further south. (e) -(f) High-frequency radio emission is observed in the core of the active region and a range of frequencies are observed to the south-west. The high-frequency western radio sources appear even farther to the west of the active region than in the previous panels and the low-frequency eastern radio sources appear deflected away from the active region. (g) -(h) As the eruption is beginning, the eastern emission ceases, lower frequencies are observed in the core, and even lower frequencies are observed centrally to the south. (i) -(j) During/after the eruption, large areas of low frequencies are observed to the south-west and south-east. (An animated version of this figure is available in the online journal.) to form a column, suggesting radio emission from different coronal heights. The sources of emission appear progressively farther to the south as frequency decreases, likely because the emission at lower frequencies originates from higher altitudes and is therefore subject to stronger projection effects. This is a type I noise storm, which corresponds to acceleration of electrons in the corona over a continuous period. During this same time period, the Wind spacecraft observed many successive individual type III radio bursts at lower frequencies (from 14 MHz down to 0.1 MHz), indicative of a type III noise storm. Frequencies of 0.1 MHz imply that the accelerated electrons generate coherent radio emission from rarefied plasma as far out as 0.3 AU (e.g., Leblanc, Dulk, and Bougeret, 1998;Mann et al., 1999). The type III bursts therefore indicate that the accelerated electrons have access to magnetic fields that extend out of the corona, and could subsequently travel through interplanetary space.
To further investigate the coronal magnetic field, we perform a potential field source surface (PFSS) extrapolation using line-of-sight photospheric magnetic field data at 12:04 UT on 14 June 2012 (see Figure 9). Although PFSS extrapolations have limitations, since they necessarily produce a potential field, they are useful in probing the global magnetic field configuration. This extrapolation suggests the presence of a region of magnetic field that is open to the heliosphere prior to the eruption. This open field is situated to the east of the active region and corresponds to the location of the radio noise storm seen in the NRH images. Open field allows particles accelerated at different altitudes (plasma densities) to escape into the heliosphere, which is commensurate with the observation of radio emission at all of the NRH frequencies.
A faint radio source is also present at the west of the active region in the higher NRH frequencies (e.g., 445 MHz, see Figure 8a -b). From 11:20 UT (around the same time as the C5.0 soft X-ray flare and the initial brightening of loops that later comprise the western portion of the sigmoid), the western radio source brightens, indicating increased particle acceleration. Higher radio frequency type I emission corresponds to higher density plasma, and so the increased particle acceleration is likely occurring low-down in the solar atmosphere. The eastern noise storm remains present and type III bursts continue to appear in the interplanetary data, but at 12:25 UT, the lower-frequency sources begin to move farther eastward, giving the appearance that the column is being deflected away from the active region. Also around 12:25 UT, relatively low-frequency radio emission is briefly observed centrally to the south of the active region before reappearing and remaining from 13:08 UT. With projection effects, this could represent high-altitude emission above the centre of the active region, and the lack of spread in frequency implies that we are observing emission originating only from a certain height in the solar atmosphere.
Beginning at around 13:18 UT, a new radio source appears centred on the active region at frequencies above 327 MHz (Figure 8e -f). We interpret this emission to originate from the core of the active region because it is localised to the higher frequencies. From this time, the eastern noise storm begins to disappear, completely vanishing around 13:30 UT. Meanwhile, the western signatures extend into lower frequencies, developing to show a column of emission from different frequencies (Figure 8g -h). The lower-frequency sources extend southward until they reach the same location as the central high-altitude emission. The sources of this emission move outwards to the west of the active region (see Figure 8c -h).
After 13:30 UT, the central high-altitude radio emission begins to move farther southward, consistent with a moving type IV radio burst (accelerated electrons within plasma that is erupting into interplanetary space, e.g., Bain et al., 2014 -see Figure 8g/h). The moving type IV source is observed to move from (−125 , −875 ) to (−225 , −1050 ) in 8 minutes, and so, assuming radial expansion from the active region latitude of 17 • , the speed of the source is ≈ 1040 km s −1 . This speed is of the same order as the 980 km s −1 plane-of-sky CME speed estimated by LASCO.
After the eruption, around 13:52 UT, low-frequency (high altitude) radio signatures are observed over the active region core and western external polarities, as well as to the southeast and south-west of the active region (Figure 8i -j). The southern sources at 150 MHz move away from the active region to the south-east and south-west before fading after 15 minutes. Finally, from 14:00 UT onwards, emission continues in all frequencies to the east and west of the active region, and then only from the eastern location after 14:13 UT.

Discussion
Here we bring together the wide range of observations presented in the previous sections. We aim to build a coherent interpretation of how the magnetic field in NOAA Active Region 11504 evolved in the hours leading up to the eruption on 14 June 2012. The studied data cover plasma emitting across a range of temperatures and altitudes from the photosphere to the corona.
The AIA observations strongly support an interpretation that part of the magnetic field in NOAA Active Region 11504 transforms from a sheared arcade to a flux rope before the CME occurs. This is illustrated by a cartoon shown in Figure 10, where two sets of Figure 10 Schematic to illustrate the formation of the sigmoid and arcade. Initially, sheared loops (seen here in 171 Å and indicated with purple lines) connect B+ to B− and C+ to C−, using the nomenclature of Figure 1. Later, a flare arcade and a sigmoid (shown in dashed gold and red, respectively) are observed. The sigmoid connects B+ to C−, and the arcade footpoints are at C+ and B−. The sigmoid footpoints are consistent with the footpoint locations inferred from the EUV dimmings shown in Figure 6. The transition from sheared loops to an arcade and sigmoid is consistent with tether-cutting-like reconnection, although it differs from that described by Moore et al. (2001) in that the flux rope that forms (evidenced by the sigmoid) is stable for at least two hours. The background image of the lower panel corresponds to the line-of-sight magnetic field distribution shown in Figure 1g with the annotated coloured contours of Figure 1h that show which areas of the flux distribution emerge at the same time and are therefore connected. sheared loops are indicated on a 171 Å image at 07:37 UT on 14 June 2012. Then, by 13:18 UT, a full S-shaped (sigmoidal) emission structure is observed, most prominently in the AIA 131 Å channel, along with a flare arcade. The earliest signature of the forming sigmoid is seen at 11:20 UT (see Figure 5b), although this then fades and becomes visible again at around 12:20 UT. The sheared loops are connected to the areas of magnetic flux that emerge between 11 -13 June, labelled B± and C± in Figure 1, and the footpoints of the subsequently formed sigmoid and flare arcade are in approximately the same locations. A process similar to the tether-cutting magnetic reconnection described by Moore et al. (2001) could explain this transition from sheared loops to a sigmoid and flare arcade with conserved footpoints. However, the reconnection did not apparently lead to the immediate ejection of the flux rope as in the Moore et al. (2001) scenario.
The sigmoid is difficult to see in its central section due to emission from the central arcade of the active region (which is below the sigmoid but along the same sight-line), but the large extent of the S-shaped structure allows it to be identified. The magnetic tongues in the emerging photospheric magnetic field in the active region indicate that the sigmoid forms in a flux region that is of right-handed chirality, consistent with the weak trend for active region magnetic fields in the southern hemisphere. In addition, the sense of the Sshape (forward-S) also indicates right-handed chirality (Pevtsov, Canfield, and McClymont, 1997). A stable forward-S sigmoid in a positive-chirality field is consistent with the presence of helical field lines that have a dip in their central section (Török, Berger, and Kliem, 2010), which we interpret as a flux rope with at least one turn in the field lines (according to our definition in Section 1). Previous work has shown that sigmoidal emission can be produced by plasma trapped on S-shaped field lines that pass through a quasi-separatrix layer underneath a flux rope (Titov and Démoulin, 1999). Furthermore, the hooked shape of the western flare ribbon is considered a signature of energy deposition along field lines at the periphery of a flux rope (Démoulin, Priest, and Lonie, 1996;Janvier et al., 2014). Our interpretation of the presence of a flux rope in the active region by the time of the CME is matched by the in situ data, which find the interplanetary CME to contain a flux rope with a chirality and axial orientation matching that observed at the Sun (Palmerio et al., 2017).
The location of the footpoints of the erupting flux rope are determined using EUV dimmings and the curved ends of the flare ribbons. The eastern EUV dimming is located over a patch of negative magnetic polarity to the south of the pre-existing eastern sunspot in the extended magnetic field region. The western EUV dimming and flare ribbon indicates that the western flux rope footpoint is located in the southern penumbra of the pre-existing positive sunspot. These footpoint locations are displayed in Figure 6.
The sigmoidal structure that first partially appears in the 131 Å images around 11:20 UT is co-temporal with the brightening of high-frequency (low-altitude) radio emission produced on the western side of the active region. The sigmoidal emission fades and then appears again at around 12:20 UT on 14 June 2012 -just over an hour before the eruption and ≈ 30 minutes before the slow rise in the X-ray flux begins. Whilst the 131 Å channel of AIA does include contributions from cooler plasma at ≈ 0.4 MK, images taken in this channel are largely representative of coronal plasma temperatures ≈ 10 MK during flares or high-temperature sigmoid formation. This indicates that the sigmoidal structure contains hot plasma. Both appearances of the S-shaped emission structure are associated with increases in soft X-ray emission detected by GOES and an enhancement in intensity and extent of the central arcade of the active region as seen by AIA. We interpret these observations as an indication that increased magnetic reconnection occurs in two phases and contributes to building a flux rope in the corona. The first phase of reconnection, around 11:20 UT, heats plasma and accelerates electrons, which leads to the radio emission at the western end of the flux rope. The second phase of magnetic reconnection, around 12:25 UT, then further builds the flux rope structure. The flare arcade brightens and grows simultaneously with the overlying sigmoid, suggesting they both develop as a result of the same episode of magnetic reconnection, and therefore that the flux rope builds during the times the flare arcade is seen to brighten. Furthermore, little photospheric flux cancellation is observed, there are no photospheric inverse crossings seen along the central section of the polarity inversion line, and the sigmoid formation is best observed in the 131 Å channel of AIA (≈ 10 MK; representative of flaring plasma in the corona). Together, these observations suggest that the flux rope does not form via reconnection in the photosphere or chromosphere via the flux cancellation formation process described by van Ballegooijen and Martens (1989), but rather that the flux rope forms at a higher altitude by reconnection in the corona.
The interpretation that magnetic reconnection in the corona builds the flux rope is further supported by the plasma composition in the flux rope. In a previous study, Baker et al. (2013) used plasma composition to investigate the altitude at which magnetic reconnection occurs. In that work, a sigmoidal active region was observed with a core channel of plasma that had a FIP-bias of order 1.0. This signified that the channel contained plasma of a photospheric composition. The conclusion of Baker et al. (2013) was that a flux rope formed via magnetic reconnection in the photosphere associated with flux cancellation along the polarity inversion line of an active region. However, in our study, a photospheric plasma composition is not observed in the sigmoidal structure. Instead, the composition analysis indicates that plasma in the initial sigmoid loops that begin to brighten around 11:20 UT and plasma within the western leg of the flux rope is of coronal composition, with FIP biases of 3.1 and 1.9 respectively, with errors ≈ 0.3. This supports our interpretation that the flux rope forms in the corona. Coronal flux ropes, formed via coronal reconnection, have previously been observed in other works as the appearance of diffuse emission structures in the hottest AIA channels above brightening flare arcades (e.g., Reeves and Golub, 2011;Zhang, Cheng, and Ding, 2012;Patsourakos, Vourlidas, and Stenborg, 2013). In these cases, flux ropes were viewed along their axes when the structure was at the limb. Here, we observe the sigmoid close to disc centre, viewing the flux rope from above and allowing the photospheric magnetic field evolution to also be studied. So, now we turn to look at what role the photospheric flows might have played in the evolution of the magnetic field in the corona.
As discussed previously, NOAA Active Region 11504 was in its emergence phase at the time the CME studied here erupted. The flux emergence proceeded in stages with different bipoles emerging in sequence. On 11 June, there are already two small sunspots present, and the emergence of further bipoles, some of which coalesce with the pre-existing field, develops these sunspots. The HMI data show that the photospheric horizontal magnetic field component is sheared in the locations of the emerged flux, i.e., to the north of the positive sunspot and in the negative elongated flux region, which manifests as strong concentrations of vertical electric current. There are domains of positive emerged flux that remain distinct from the main positive sunspot (leading spot) as well as a region of negative magnetic flux that forms an elongated structure to the south of the main negative sunspot (trailing spot). As the flux emergence proceeds, there are rotational and shearing motions between the bipoles. The positive magnetic flux that emerges between 13 June and 15 June moves westwards towards the pre-existing positive sunspot and then moves clockwise around the pre-existing sunspot umbra as separate umbrae. This suggests that in the days leading up to the eruption, the coronal magnetic field emanating from this strongly moving and shearing positive region wraps around the magnetic field of the pre-existing sunspot. Yan et al. (2012) also observed one umbra rotating around another, and associated the anti-clockwise rotation they observed with the formation of a left-handed sigmoid (whereas here we see clockwise rotation and the formation of a right-handed sigmoid). Yan et al. (2012) concluded that the twisting of magnetic field from the rotational motion led to a non-potential field configuration higher up in the atmosphere. Similarly, we conclude that the clockwise wrapping of twisted and sheared emerging magnetic flux facilitates the formation of the flux rope in this study.
The collision between the two sheared domains of newly emerged flux can facilitate the magnetic reconnection in the corona that subsequently builds the sigmoidal structure (and inferred flux rope). As discussed previously, this magnetic reconnection is likely to be of tether-cutting type (Moore and Labonte, 1980;Moore et al., 2001) that forms a flux rope through episodes of magnetic reconnection between two sets of sheared loops (illustrated in Figure 10), but which here initially produces a stable flux rope that only later erupts rather than runaway reconnection that both builds the flux rope and facilitates the eruption.
Numerical studies have shown that a thin current layer can be formed in an arcade that is subject to shearing, and that in the presence of resistivity, magnetic reconnection can proceed in this current layer (Mikic and Linker, 1994;Roumeliotis, Sturrock, and Antiochos, 1994;Amari et al., 1996). We propose that the shearing and rotational motion of the positive magnetic field elements around each other in NOAA Active Region 11504 leads to magnetic reconnection in the sheared arcade and the formation of a magnetic flux rope in the corona.
The photospheric motions are likely to also play a role in the occurrence of the CME beyond the formation of the flux rope itself. The shearing and strong motions of the emerging flux (especially in the positive field regions) could inflate the global magnetic field of the active region, eventually bringing the configuration to the point where the flux rope experiences a loss of stability or equilibrium (Török et al., 2013). The rotational motion seen here in the western sunspot of NOAA Active Region 11504 could drive the twisting of field rooted in and around the sunspot, causing it to rise and inflate. Furthermore, other field rooted in the vicinity that overlies the forming flux rope may also twist and inflate, up to the point of becoming unable to contain the underlying flux rope due to decreased tension. The eastward deflection of the radio sources in the eastern column of type I radio emission and the westward motion of the western sources mentioned in Section 3.5 and seen in Figure 8 suggests that the radio sources are moving away from the active region before the eruption. This is consistent with an expanding magnetic field configuration.
The increase in radio emission and the production of emission at lower frequencies to the western side of the active region in the lead-up to the eruption suggests that magnetic reconnection is ongoing, with electrons being accelerated at increasing altitudes, perhaps a consequence of the magnetic field of the active region and the flux rope inflating. This takes place during the slow-rise phase of the eruption. Furthermore, high-altitude radio emission is observed directly above the active region from 13:18 UT, which is also during the slow-rise phase. The high-altitude emission source appears stationary at first and indicates the acceleration of electrons produced by reconnection as the expanding active region field pushes against and reconnects with the surrounding field above the active region. After 13:30 UT, the eruption moves into the fast-rise phase, the flux rope escapes, and more impulsive flare reconnection sets in. This is consistent with previous work that has shown that the slow-rise and fast-rise phases are common to CMEs (Zhang and Dere, 2006). In this study, the first phase (the slow-rise phase) lasts for around 30 minutes and shows a steady increase in soft X-ray flux which is co-temporal with the growth and expansion of the sigmoidal loops in 131 Å (and therefore the flux rope) and the radio emission. The second phase is a sharp rise phase that occurs during the eruption of the sigmoid that involves more impulsive flare reconnection below and above the flux rope. The central high-altitude radio emission that is stationary during the slow-rise phase moves southward in the plane of the NRH images, and is interpreted as a type IV radio burst corresponding to the acceleration of energetic electrons within the plasma of the moving CME as it erupts.
It is interesting to note the timescale over which the flux rope appears to be stable. From the SDO/AIA observations and the appearance of the sigmoid, we infer that the flux rope forms at least 2 hours prior to its eruption. Few studies have been carried out to probe when flux ropes form prior to their eruption, and the timescales over which they are stable. Previous studies of flux ropes that form through magnetic reconnection in the corona, as in this event, suggest they might be stable for a few hours. For example, Patsourakos, Vourlidas, and Stenborg (2013) studied an event where the flux rope formed 7 hours prior to eruption and Cheng et al. (2014) investigated the eruption of a flux rope that formed 2 hours beforehand. In contrast, a small survey by Green and Kliem (2014) found that flux ropes that formed by photospheric magnetic reconnection associated with flux cancellation were stable in their active regions for between 5 and 14 hours. This is an area where more research should be conducted. Flux ropes formed by reconnection in the corona will be of the hyperbolic flux tube type, whereas flux ropes formed through flux cancellation may be of bald patch-type with their underside line-tied to the photosphere. The altitude and specific topology of the flux rope may affect the timescale over which it is stable, but no parametric numerical study of this has yet been conducted.

Conclusions
We investigate the pre-eruptive configuration of a flux rope that is detected in situ to determine whether there is a flux rope present before the onset of eruption at the Sun, or if it forms at a later time. It is concluded that a flux rope forms via reconnection in the corona two hours before the onset of eruption. This is evidenced by a flux rope of coronal composition associated with a sigmoid that first partially flashes into view two hours prior to the eruption in 131 Å images, before later reappearing, growing, and erupting.
The CME occurs when NOAA Active Region 11504 is still in its emergence phase. Positive areas of emerging bipoles move towards and then clockwise around the leading positive sunspot, facilitating tether-cutting-type reconnection in the corona that forms a flux rope and an underlying flare arcade, but does not initially cause the flux rope to erupt. Photospheric motions may cause the inflation of the global active region magnetic field. Simulations have previously shown that vortical motion at the footpoints of magnetic loops can cause the loops to rise, at which point they may become unstable to eruption (Török et al., 2013).