{'fraction_non_alphanumeric': 0.035435021433341235, 'fraction_numerical': 0.021756456928677594, 'mean_word_length': 4.57177148343735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 2, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Determining the Intrinsic CME Flux Rope Type Using Remote-sensing Solar Disk Observations

A key aim in space weather research is to be able to use remote-sensing observations of the solar atmosphere to extend the lead time of predicting the geoeffectiveness of a coronal mass ejection (CME). In order to achieve this, the magnetic structure of the CME as it leaves the Sun must be known. In this article we address this issue by developing a method to determine the intrinsic flux rope type of a CME solely from solar disk observations. We use several well known proxies for the magnetic helicity sign, the axis orientation, and the axial magnetic field direction to predict the magnetic structure of the interplanetary flux rope. We present two case studies: the 2 June 2011 and the 14 June 2012 CMEs. Both of these events erupted from an active region and, despite having clear in situ counterparts, their eruption characteristics were relatively complex. The first event was associated with an active region filament that erupted in two stages, while for the other event the eruption originated from a relatively high coronal altitude and the source region did not feature the presence of a filament. Our magnetic helicity sign proxies include the analysis of magnetic tongues, soft X-ray and/or EUV sigmoids, coronal arcade skew, filament emission and absorption threads, and filament rotation. Since the inclination of the post-eruption arcades was not clear, we use the tilt of the polarity inversion line to determine the flux rope axis orientation, and coronal dimmings to determine the flux rope footpoints and, therefore, the direction of the axial magnetic field. The comparison of the estimated intrinsic flux rope structure to in situ observations at the Lagrangian point L1 indicated a good agreement with the predictions. Our results highlight the flux rope type determination techniques that are particularly useful for active region eruptions, where most geoeffective CMEs originate.


Introduction
One of the most prominent manifestations of solar activity are coronal mass ejections (CMEs). These are large eruptions of plasma and magnetic field that are expelled from the Sun and propagate into the heliosphere. CMEs form in the solar atmosphere and all models predict that their magnetic field configuration when they leave the lower corona is that of a twisted bundle of magnetic field known as a flux rope (e.g., Antiochos, DeVore, and Klimchuk, 1999;Moore et al., 2001;Kliem and Török, 2006). However, when CMEs are detected in interplanetary space, they present a diverse range of configurations and signatures (e.g., Gosling, 1990;Richardson and Cane, 2004a;Zurbuchen and Richardson, 2006), and only about one third of them present a well-defined flux rope structure (e.g., Gosling, 1990;Richardson and Cane, 2004b;Huttunen et al., 2005). This is likely to be due to either a large crossing distance from the flux rope center (e.g., Cane, Richardson, and Wibberenz, 1997;Jian et al., 2006;Kilpua et al., 2011), deformation of the magnetic field due to interactions between multiple CMEs (Burlaga, Plunkett, and St. Cyr, 2002), and/or a significant erosion of the initial magnetic flux (Dasso et al., 2007;Ruffenach et al., 2012), which means that a coherent flux rope is either hard to identify or no longer present. When a flux rope is present, it can be identified in interplanetary space when in situ data show a monotonic rotation of the magnetic field direction through a large angle, a low plasma temperature, and a low plasma β (Burlaga et al., 1981).
Interplanetary CMEs (or ICMEs) with flux ropes are key drivers of intense magnetic storms (e.g., Gosling et al., 1991;Webb et al., 2000;Huttunen et al., 2005). The most important parameter that determines a CME geoeffectiveness is the interplanetary magnetic field (IMF), in particular the magnitude and duration of its north -south component (B Z ) in the Geocentric solar magnetospheric (GSM) coordinate system. The general field pattern of a CME can be determined in terms of the "flux rope type" (Bothmer and Schwenn, 1998;Mulligan, Russell, and Luhmann, 1998). The type is determined by the direction of the flux rope axial magnetic field, the orientation (tilt) of its axis with respect to the ecliptic plane, and its magnetic chirality. Chirality (or magnetic helicity sign) is the sense of twist of the flux rope (either right-handed or left-handed twist). Flux ropes that have their axis closely aligned with the ecliptic plane will exhibit a change of sign in B Z as the ICME passes over the spacecraft. These CMES are known as "bipolar" or low inclination clouds. Whereas flux ropes that have their axis orientated perpendicular to the ecliptic plane will maintain the sign of B Z and are therefore known as "unipolar" or high inclination clouds. For example, in a bipolar "north-east-south"-type cloud (NES) the field rotates in a right-handed sense (i.e. with positive chirality) from north to south, being eastward at the center.
Knowledge of the intrinsic magnetic structure of an erupting CME is vital if long-term space weather forecasting is to be realized. Knowing the flux rope type at the Sun, and therefore the profile of B Z through the structure, could provide this information a few days in advance of the CME reaching the first Lagrange point (L1), where in situ magnetic field measurements are typically made. However, due to rotations, deflections, and deformations the actual field structure that impacts the Earth may change significantly in some cases (e.g., Möstl et al., 2008;Vourlidas et al., 2013;Isavnin, Vourlidas, and Kilpua, 2014). Nevertheless, the intrinsic flux rope type gives the first order approximation of a CME potential to drive a geospace disturbance and it is a critical input for several semi-empirical CME propagation models (e.g., Savani et al., 2015;Savani et al., 2016;Shiota and Kataoka, 2016;Kay et al., 2016;Isavnin, 2016).
There is currently no practical method to measure the three-dimensional magnetic field in the corona in order to be able to determine the flux rope magnetic type in a CME. However, several morphological patterns in various solar phenomena associated with a CME eruption and its source region can be used as indirect proxies of the magnetic chirality of the resulting flux rope. These methods are based on soft X-ray and extreme-ultraviolet (EUV) observations of the pre-eruptive structure (which could be a flux rope or a sheared arcade), characteristics of the possible filament and/or flare association, and the evolution of the source active region. In addition, the observations of the polarity inversion line (PIL) over which the CME arises and/or the post-eruption arcades (PEAs) form can serve as proxies of the axial tilt of the CME flux rope and the axial field orientation. We will describe these techniques in more detail in the upcoming sections.
So far, only a few studies have attempted to estimate the full CME flux rope type from remote-sensing observations (e.g., Marubashi, 1986;McAllister et al., 2001;Yurchyshyn et al., 2001;Möstl et al., 2008). These previous studies have focused mostly on events that were associated with quiescent filaments or well defined active region filaments, and hence, could use filament characteristics to determine the chirality sign and the direction of the axial field (Marubashi, 1986;McAllister et al., 2001). However, the majority of CMEs originate from active regions (Subramanian and Dere, 2001), where filaments are typically smaller and less well-defined than quiescent filaments. Moreover, an active region does not always contain a filament. The study by Subramanian and Dere (2001), near the rising phase of Solar Cycle 22, showed that 15% of the CMEs studied originated from quiescent filaments, 44% from active region filaments, and 41% from active regions with no filament eruption.
In this article we perform two detailed case studies to determine the intrinsic magnetic structure of active region CMEs. We analyse data from multiple spacecraft and ground-based observatories to form a synthesis of several stateof-the-art remote sensing analysis techniques. In Section 2 we describe the data used and in Section 3 we discuss in more detail the different methods that can be applied to determine the flux rope chirality, axial tilt, and axial field orientation. The techniques we use have been previously validated in the literature, but they are currently in fragmented use and their combined potential to estimate the magnetic field of a CME is not yet fully explored. As we will demonstrate in this article, to systematically predict the flux rope type for active region CMEs one has to have several alternative proxies to determine the key flux rope properties.
In Section 4 we apply our methods to two CME events and also make a first order validation of our results by comparing with in situ observations of the corresponding CMEs. Finally, in Section 5 we discuss and summarize our results.

Data Selection and Instruments
We select our two case studies from the interplanetary CME list 1 , compiled and maintained by Nieves-Chinchilla at NASA, and by examining solar and coronal (white-light) observations with the help of the Solar and Heliospheric Observatory (SOHO) Large Angle Spectroscopic Coronagraph (LASCO) CME Catalog 2 , generated and maintained at the Coordinated Data Analysis Workshops (CDAW) data center by NASA and the Catholic University of America in cooperation with the Naval Research Laboratory. The selected events show flux rope signatures in situ and they have a unique CME association, i.e., there were no multiple wide CMEs within a suitable time window that could have arrived to L1.
To find the proper association between the interplanetary CME and the eruption from the solar atmosphere, we track the in situ flux rope backwards in time to the Sun assuming a constant speed (given in the Nieves-Chinchilla list) and radial propagation. We search for associations within a two-day time window centered on the estimated CME onset time. As we look for Earth-directed events, we consider CMEs that have a wide angular span as listed in the LASCO catalog (angular width 120 • ). Data from the Solar Terrestrial Relations Observatory (STEREO) spacecraft (Kaiser et al., 2008) are used to confirm which CMEs are indeed Earth-directed. Our case studies occur in 2011 and 2012, when the two STEREO spacecraft were between 90 • and 120 • from the Sun-Earth line. This means that Earth-directed CMEs will be seen leaving the east limb in STEREO-A and the west limb in STEREO-B. To confirm that we connected the correct pair, we check the CME travel time using the empirical CME propagation model by Gopalswamy et al. (2000), using the linear (plane-of-sky) speed reported in the LASCO catalog. To associate the selected CMEs with the correct source region from which they erupted, we use well-known CME signatures that are observed in EUV, soft X-ray, and Hα data, i.e., flares, post-eruptive arcades, flare ribbons, coronal EUV dimmings (transient coronal holes), and dark and cool rising material (signature of filament eruptions).
EUV images and line-of-sight magnetograms taken with the Atmospheric Imaging Assembly (AIA: Lemen et al., 2012) and the Helioseismic and Magnetic Imager (HMI: Scherrer et al., 2012) onboard the Solar Dynamics Observatory (SDO: Pesnell, Thompson, and Chamberlin, 2012) are used. SDO was launched on 11 February 2010 and has been operating since then in an inclined circular geosynchronous orbit. AIA takes images that span at least 1.3 solar diameters in multiple wavelengths nearly simultaneously, at a spatial resolution of 0.6 arcsec and at a cadence of 12 seconds. HMI creates full-disk magnetograms using the 6173Å spectral line with a spatial resolution of 0.5 arcsec and a temporal resolution of 45 seconds.
Soft X-ray data are supplied by the X-Ray Telescope (XRT: Golub et al., 2007) onboard Hinode (Solar-B: Kosugi et al., 2007). Hinode was launched on 22 September 2006 and has been operating since then in a nearly circular Sunsynchronous polar orbit around the Earth. XRT has various focal plane analysis filters, analyzing X-ray emission in a wide temperature range (from 1 to 10 MK). It provides two-arcsecond resolution images.
Hα (6563Å) observations are from the Global Oscillations Network Group (GONG). GONG is a six-station network of ground-based observatories located around the Earth to obtain nearly continuous observations of the Sun. The six observing sites are: the Big Bear Solar Observatory in California, USA, the High Altitude Observatory at Mauna Loa in Hawaii, USA, the Learmonth Solar Observatory in Western Australia, the Udaipur Solar Observatory in India, the Observatorio del Teide in the Canary Islands, and the Cerro Tololo Interamerican Observatory in Chile.
In situ measurements are taken from the Wind satellite, launched in November 1994 and operating close to L1 since 2004. We use the data from the Wind Magnetic Fields Investigation (MFI: Lepping et al., 1995) and the Wind Solar Wind Experiment (SWE: Ogilvie et al., 1995), which provide 60-second and about 90-second resolution data, respectively.

Magnetic Structure of the Erupting Flux Rope
As discussed in the Introduction, there is currently no practical method to measure the magnetic field in the corona, which is needed in order to directly determine the flux rope type when it leaves the Sun. However, several proxies exist that can be used to achieve this goal. Here, we summarize the indirect proxies as presented in the literature. These proxies allow the identification of the flux rope chirality, tilt and axial field direction. In the following sections we will combine these proxies to estimate the flux rope type for our two case studies. Note that most of the methods described below are independent on whether the pre-eruptive structure is a sheared arcade or a flux rope.

Chirality of the Flux Rope
To estimate the flux rope chirality we carefully analyze the source active region and the evolution of the erupting structure. It is expected that the CME flux rope has the same chirality as the source region in which it formed, since magnetic helicity is a conserved quantity even during magnetic reconnection (Berger, 2005). The methods to estimate the chirality are: 1) Magnetic tongues. The global chirality of an active region can be estimated by analyzing the line-of-sight magnetograms during the active region's emergence phase. Active regions form from emerging twisted flux tubes (Ωloops). When the apex of such tubes crosses the photosphere, the vertical projection of the azimuthal component of the field manifests itself in the magnetogram data as "magnetic tongues" (López Fuentes et al., 2000;Luoni et al., 2011). Magnetic tongues are elongations of the main polarities, where a positive twist is shown by the leading magnetic polarity extending under the southern edge of the trailing polarity and a negative twist is represented by its mirror image (magnetic tongues are a polarity-invariant chirality proxy).
2) Filament details. If the CME is associated with a filament eruption, the chirality of the flux rope can be deduced from studying the detailed structure of the filament before the CME onset. Sinistral (dextral) filaments are embedded in regions of positive (negative) chirality (Martin and McAllister, 1996;Martin, 2003). The sinistral or dextral nature of filaments can be revealed by various patterns in Hα observations, e.g., by the bearing of the filament legs, the orientation of the fibrils in filament channels and the orientation of filament barbs with respect to the filament axis (e.g., Martin, Bilimoria, and Tracadas, 1994;Martin, 1998). Moreover, for positive (negative) chirality the filament apex rotates clockwise (counterclockwise) upon eruption (Green et al., 2007;Lynch et al., 2009). Filaments can also be studied at EUV wavelengths and the chirality can be argued from the geometry of the crossings between emission and absorption threads (Chae, 2000).
3) X-ray and/or EUV Sigmoids. Sigmoids are S-shaped soft X-ray or EUV emission structures that can be considered as coronal tracers of a flux rope (Rust and Kumar, 1996;Canfield, Hudson, and McKenzie, 1999;Kliem, 2009, 2014). The S-shaped emission structure is formed by field lines threading quasi-separatrix layers associated with a flux rope embedded in an arcade (Titov and Démoulin, 1999). A sigmoid can have one of two orientations depending on the chirality of the magnetic field in the region where it forms (e.g., Pevtsov, Canfield, and McClymont, 1997;Green et al., 2007): forward (reverse) S-sigmoids form in the regions dominated by positive (negative) chirality. 4) Skew of the coronal loops. An additional soft X-ray and/or EUV feature that can be used as a proxy of the chirality is the skew, i.e. the acute angle that the coronal loops overlying the pre-eruptive flux rope or sheared arcade make with the PIL or the filament axis. The loops are defined as left-skewed or rightskewed according to the sense of the arcade loops crossings over the filament or filament channel (McAllister et al., 1998;Martin et al., 2012). Left-(right-) skewed arcades are associated to dextral (sinistral) filaments and negative (positive) helicity flux ropes (Martin, 1998). 5) Flare ribbons. The observational signature of the energy release within quasi-separatrix layers during a solar flare is the brightening of two J-shaped flare ribbons. Two reverse J-shapes indicate negative chirality and forward J-shapes indicate positive chirality. Also the orientation and displacement of the ribbons along the PIL reflect the sign of twist in the flux rope (this is an indication of the remaining magnetic shear present after reconnection). If the PIL is vertical on the solar image, the left ribbon is displaced downwards and the right ribbon upwards for positive chirality, while the situation reverses for negative chirality (Démoulin, Priest, and Lonie, 1996). 6) Hemispheric helicity rule: There is a tendency for magnetic structures on the Sun to have negative (positive) helicity in the northern (southern) hemisphere. Such a pattern is known as the "hemispheric helicity rule" (Pevtsov and Balasubramaniam, 2003). Bothmer and Schwenn (1998) used this general hemispheric rule to relate the flux rope properties in situ to the properties of their source region. While such rules can be powerful in a statistical sense, their use as a reliable proxy of the magnetic characteristics of individual CMEs is limited since the hemispheric helicity rule only holds true in around 60-75% of emerging active regions (Pevtsov et al., 2014).

Flux Rope Tilt and Axial Field Orientation
The orientation of an erupting flux rope (i.e., the orientation of its axis) can be considered to be more or less parallel to the orientation of the PIL in the solar source region (Marubashi et al., 2015) or to the orientation of the post-eruption arcades (PEAs) (Yurchyshyn, 2008). PEAs are often the clearest signature of the CME eruption in the low corona and they are visible in both soft X-ray Hudson and Webb, 1997) and EUV (Tripathi, Bothmer, and Cremades, 2004) observations. These arcades are associated with reconnection that occurs in the wake of an erupting CME.
We determine the PIL location and orientation by eye, i.e. we determine the location where the polarity of the magnetic field reverses and approximate it with a straight line. We define |τ | as the absolute value of the angle within the range ±90 • that the PIL makes with the solar ecliptic, assuming that the flux rope at its nose is perpendicular to the Sun-Earth line (−x GSE , in Geocentric solar ecliptic (GSE) coordinates). We approximate that |τ | < 45 • corresponds to bipolar (parallel) flux ropes in situ, while |τ | > 45 • corresponds to unipolar (perpendicular) flux ropes in situ.
The direction of the flux rope axial field can be taken to be the direction of the magnetic field that runs nearly parallel to the PIL, which depends on the helicity sign of the source region (Wang, 2013;Marubashi et al., 2015). This direction can be argued from photospheric magnetogram data and the coronal configuration: the field is directed left (right) when looking from the positive magnetic polarity side along the PIL for a positive (negative) helicity source region (Bothmer and Schwenn, 1994;Marubashi et al., 2015).
As a further confirmation of the axial field direction, we study base-difference images of the source region during the rise time of the flux rope (e.g., Mandrini et al., 2005). The key here is to locate reliably the footpoints of the flux rope. One viable method is provided by EUV dimmings (Hudson and Webb, 1997) that correspond to the evacuation of coronal material that is fed into the rising CME (Hudson and Webb, 1997) and that are generally believed to map the footpoints of the CME in the corona . Hence, we search for signs of EUV dimmings in base-difference images and overlay the dimming regions onto line-of-sight magnetogram data to determine in which magnetic polarities the flux rope is rooted. Then, the axial field is directed from the positive footpoint to the negative one.
After obtaining the chirality of the source region, the tilt of the flux rope, and its axial field direction, we make our prediction of the flux rope type.

Magnetic Structure in situ
We apply the minimum variance analysis technique (MVA, Sonnerup and Cahill, 1967) to the in situ data to estimate the orientation of the flux rope axis at 1 AU (latitude θ A and longitude φ A in angular coordinates) and to verify the coherent rotation of the magnetic field vectors. The flux rope axis corresponds to the intermediate variance direction, where θ A = 90 • is defined northward and φ A = 90 • is defined eastward. The latitude can then be used to estimate the inclination of the axis with respect to the ecliptic. The consistency of the MVA method is taken into account by checking that λ 2 /λ 3 ≥ 2 (e.g., Lepping and Behannon, 1980;Bothmer and Schwenn, 1998;Huttunen et al., 2005), where λ 2 and λ 3 are the intermediate and minimum eigenvalues, respectively. In addition, we estimate the crossing distance of the spacecraft from the apex of the CME flux rope loop with the angle, α, that the shock normal makes with the radial direction, i.e. the Sun-Earth direction, −x GSE (e.g., Janvier et al., 2015;Palmerio, Kilpua, and Savani, 2016). α ≈ 0 means that the spacecraft crosses the CME close to its apex and the angle increases as the crossing takes place more on the flank of the CME. The shock normals are obtained from the Heliospheric Shock Database 3 , developed and maintained at the University of Helsinki.
As a proxy for the spacecraft crossing distance from the center of the flux rope, we estimate the impact parameter using the total perpendicular pressure, P ⊥ , defined as the sum of the magnetic pressure and the thermal pressure perpendicular to the magnetic field (e.g., Jian et al., 2006). An interplanetary CME can present three different P ⊥ profiles, which results in three different groups. In group 1 P ⊥ has a central maximum in the magnetic obstacle, in group 2 P ⊥ has a plateau-like profile, and in group 3 P ⊥ increases rapidly and then gradually decreases (Jian et al., 2005). For group 1 events the spacecraft crosses the flux rope centrally, while for group 2 and 3 the spacecraft crossing takes place at a larger distance from the axis. The perpendicular pressure is obtained from the Solar Wind Data service 4 , maintained at the Space Science Center, University of California, Los Angeles.
In addition, we apply the Grad-Shafranov reconstruction (GSR, Hau and Sonnerup, 1999;Hu and Sonnerup, 2002). The GSR gives estimates of the orientation (latitude Θ and longitude Φ in angular coordinates), chirality, impact parameter, and cross section of the flux rope. The advantage of this method is that it relaxes the force-free assumption and reconstructs the flux rope without a preset geometry, assuming only that the magnetic field has translational symmetry with respect to an invariant axis direction. We use a modification of this method described in Isavnin, Kilpua, and Koskinen (2011), and determine the flux rope invariant axis and the closest approach of the spacecraft to it by trial and error. For each possible axis direction, we project the magnetic field data onto the plane perpendicular to the axis, and calculate transverse pressure, P t , and magnetic potential, A. The P t (A) curve forms two branches, corresponding to the trajectory of the spacecraft, first towards the flux rope axis and then away from it. The point in the curve that connects the two branches represents the closest approach of the spacecraft to the invariant axis. For each trial the residue between the two branches is calculated, and the results are displayed as a residual map. The direction with minimum residue corresponds to the estimated invariant axis direction.

Event 1: CME on 2 June 2011
Our first case study describes a CME that erupted on 2 June 2011 between the two NOAA active regions (ARs) 11226 and 11227. The CME was detected in situ two days later. The same CME association has been made by Colaninno, Vourlidas, and Wu (2013). We first describe the coronal signatures of the event and then give a prediction for the magnetic flux rope type based on the remotesensing observations, followed by an analysis of its in situ signatures.

Coronal Observations
The CME (halo) was first observed by LASCO C2 on 2 June at 08:12 UT, having a plane-of-sky linear speed of 976 km s −1 . The same event appeared in the STEREO A COR1 (emanating eastwards) and STEREO B COR1 (emanating westwards) field-of-view on 2 June at 07:45 UT. In addition, a very faint eruption was detected about an hour before the bright halo CME, appearing in the LASCO C2 field of view at 07:24 UT, and the STEREO A and B COR1 at 06:45 UT. This eruption (from now on Eruption 1) was very faint and slow (LASCO C2 reported a plane-of-sky velocity of 253 km s −1 ), but nevertheless was related to the same eruptive event that formed the halo CME (from now on Eruption 2). Thus, even though we assume that only Eruption 2 reached the Earth, we discuss here both eruptions in order to get a clearer understanding of the event in its entirety.
These eruptions originated from a polarity inversion line that ran between active regions 11226 and 11227 and into active region 11227. The evolution of the photospheric line-of-sight (LOS) magnetic field of the two active regions is shown in Figure 1, top row, from 31 May to 3 June. Both ARs were characterized by a positive leading polarity. AR 11226 had a bipolar configuration, while AR 11227 encompassed two bipolar groups.
Table 1 (first column) lists the sign of the magnetic helicity for this event as determined using the proxies and methods described in Section 3.1. When the active regions were visible in the HMI field-of-view at a sufficiently large distance from the eastern limb (a few tens of degrees), they were already at an advanced stage of evolution, i.e. no significant new flux emergence was observed. This means that it was not possible to infer the chirality of the active regions from the observation of magnetic tongues.
The Hα data (Figure 1, second row) show clearly the presence of a filament running along the PIL between the leading positive polarity and the adjacent Table 1. Helicity proxies for the two events under analysis. "Hα filament" refers to all the proxies visible in Hα related to the chirality of a filament, e.g. orientation of filament legs, barbs, and fibrils. "EUV filament" refers to the crossings of absorption and emission filament threads visible in EUV. Event 1 refers to the CME that occurred on 2 June 2011 and Event 2 refers to the CME on 14 June 2012.

Proxy
Event 1  negative polarity of AR 11227 and continuing in the region between active regions 11227 and 11226, forming a U-shaped structure. This is visible in Figure 1e, where the Hα figure has been overlaid with magnetogram contours. The eastern leg of the U-shaped structure started to erupt at around 06:25 UT (Eruption 1), and by around 06:50 UT the filament had partially reformed. Eruption 2 began around 07:15 UT, and by 08:00 UT the filament had completely disappeared. Subsequent data (not shown) reveal that the filament had completely reformed by 15:00 UT. In addition to being visible in Hα, the filament was also visible in the EUV 171Å waveband (Figure 1, third row), where it appeared as a combination of absorption (dark) and emission (bright) threads. Hence, we can discern overlying and underlying dark and bright threads and determine the chirality of the filament through the geometry of these crossings. All the crossings displayed in the figure suggest that the erupting filament had the positive helicity, knowing that the magnetic field is pointing roughly westward (see the axial field determination later in this section). In addition, the western section of the filament showed a clockwise rotation at around 07:40 UT (not shown in Figure 1), which is again a sign of right-handed chirality. However, the filament was thin and relatively short and hence we could not estimate the chirality using the characteristics of its barbs or legs and fibrils.
Soft X-ray observations (Figure 1, bottom row) show a particularly strong emission coming from AR 11226 and from a few loops connecting AR 11227 and AR 11226. The connecting loops formed initially a double J-shaped structure (Figure 1m) that evolved later on 2 June into a continuous sigmoid (Figure 1n). The forward S-shape of the sigmoid is a sign of positive chirality. During both eruptions, however, only the eastern part of the sigmoid could be seen to erupt.
Observations of the coronal arcades from both soft X-rays and EUV 171Å (Figures 1i, j, and n) show that, when viewed from the positive polarity side, the arcade above the PIL or filament channel was skewed to the right, implying the presence of a right-skewed arcade. This is again a sign of positive magnetic helicity.
Finally, we try to estimate the chirality from flare ribbons. As seen in Hα (Figure 1, second row) and UV 1600Å (not shown) observations, both eruptions were associated with flare ribbons. However, the complexity of the flare ribbon structure makes the interpretation of their shape difficult and we do not consider them here for a chirality determination.
Hence, we can conclude that all the used helicity proxies suggest that the erupting flux rope had a positive chirality. As the source region was in the southern hemisphere, this flux rope followed the hemispheric helicity rule (see Section 3.1.1).
From SDO magnetograms (Figure 2, left panel), we infer the tilt of the PIL to be |τ | 45 • with respect to the ecliptic. This is the dividing angle between bipolar and unipolar flux ropes, and hence four flux rope types with positive helicity are possible for this eruption: south-west-north (SWN), north-east-south (NES), west-north-east (WNE), and east-south-west (ESW). The post-eruption arcades for this event were very short and we could not use them to estimate the tilt of the axis.
For a right-handed chirality magnetic field, the transverse magnetic field along the PIL is expected to point to the left when looking from the positive polarity side. The configuration of the photospheric magnetic polarities would then result in an axial field that is directed towards the north-west, i.e. the flux rope would be of a SWN-or a WNE-type. In order to confirm the axial field prediction, we look at base-difference images at the EUV wavelength 131Å (Figure 2, right panel). As seen from the EUV dimmings, the western footpoint is rooted in the negative polarity region, and the eastern footpoint in the positive one. This means that the footpoints of the flux rope indicate that the flux rope axial field is indeed pointing to the west. In addition, the configuration of the filament from Hα observations shows that the filament involved in Eruption 2 is directed from south -east to north -west. This confirms that we can expect either a SWN-or a WNE-type flux rope in interplanetary space.

In situ Observations
The interplanetary shock associated with the CME was detected by Wind on 4 June 2011 at 20:06 UT. Flux rope signatures could be identified on 5 June from ∼02:00 UT to ∼09:00 UT (Figure 3, top panel), i.e. enhanced magnetic field combined with smooth rotation of the magnetic field direction and depressed plasma β (e.g., Burlaga et al., 1981). The plasma β is the ratio of the plasma pressure to the magnetic pressure. The visual inspection of the magnetic field measurements shows that within the ICME the magnetic field rotates from west to east pointing strongly northward at the center. Hence, the flux rope has a WNE flux rope topology. This is also seen by noting that ∆φ < 0 and that θ > 0 • , where θ and φ are the latitudinal and longitudinal components of the magnetic field, respectively. This means that our expectations of finding either a SWN-or a WNE-type flux rope are satisfied. The results of the MVA are shown in Figure 3, bottom panels. The ratio of the intermediate-to-minimum eigenvalues is λ 2 /λ 3 = 3, confirming the validity of the method. The rotation shown in the B max − B interm plane corresponds to the one of a WNE-type flux rope. The orientation of the axis from the MVA is (θ A , φ A ) = (68 • , 139 • ), i.e. consistent with a highly inclined flux rope.
The angle between the shock normal and the radial direction is α = 33.0 • , which indicates that the spacecraft cut the ICME quite far from its nose. The perpendicular pressure profile (Figure 3f) shows a clear plateau-like profile and can therefore be associated to group 2 (see Section 3.2). This means that the spacecraft crossed the ICME further from its central axis, perhaps at its outer edge. This is also consistent with the relatively weak magnetic field rotation as seen from the visual inspection of the magnetic field components and from the hodogram in Figure 3.
The GSR also suggests that the ICME was encountered far from the axis. In such a case, the GSR results are not reliable (Isavnin, Kilpua, and Koskinen, 2011) and we do not consider them here.

Event 2: CME on 14 June 2012
Our second case study was associated with a very well-defined flux rope observed by Wind on 16 -17 June 2012. We found that the corresponding CME erupted on 14 June from AR 11504. The same CME association has been made by Richardson and Cane in their Near-Earth Interplanetary Coronal Mass Ejections list 5 and by Kubicka et al. (2016). We again first perform the remote-sensing analysis and then proceed to in situ observations.

Coronal Observations
A large symmetrical full halo CME erupted on 14 June. The event was first detected by LASCO C2 on 14 June at 14:12 UT, having a plane-of-sky linear speed of 987 km s −1 . The same event appeared in the STEREO A COR1 fieldof-view emanating from the SE-quadrant on 14 June at 13:25 UT, and in the STEREO B COR1 field-of-view emanating from the SW-quadrant on 14 June at 13:45 UT. The CME appeared in the white-light images of both STEREO spacecraft as a classic three-part CME, i.e. consisting of a bright front, cavity, and core. The photospheric magnetic field evolution of AR 11504 is shown in Figure 4, top row, from 12 June to 15 June. This active region appeared to be in its early stages based on the presence of new flux emergence, which means that magnetic tongues (if present) can be used as a proxy for chirality. Magnetic tongues were visible around 12 June at 18:00 UT. They show the leading positive polarity extending to the south of the trailing negative one, which indicates the presence of positive chirality. The summary of the used helicity sign proxies is shown in Table 1 (second column).
Hα observations show that for this event no filament material was present at the PIL location. Hence, we cannot analyze the details of filament fine structures to determine the sign of the helicity. However, for this event we can get a proxy of the chirality using sigmoid and coronal arcade observations. Soft X-ray observations reveal a sheared arcade on 13 June at around 06:00 UT (Figure 4e). The coronal loop system appeared to be right-skewed, and was therefore right-handed relative to the PIL. A sigmoidal structure (Figure 4f) started to become faintly visible in soft X-rays at around 11:20 UT on 14 June. The forward S-shaped structure of the sigmoid is a sign of positive magnetic helicity. Unfortunately, high-resolution soft X-ray data are not available during 14 June. Therefore, in order to support the X-ray observations we observe the sigmoid also at the EUV 131Å waveband. Figure 4, bottom row, shows the evolution of the erupting structure at 131Å, that follows closely the soft X-ray emission.
Indications of the CME eruption started to be visible on 14 June at around 13:30 UT. The eruption was mostly detectable through its coronal dimmings, visible in difference EUV images, and the formation of a flare arcade. The CME was first detected in white light with STEREO A COR1 already at 13:25 UT, suggesting that the eruption took place high up in the corona. For a detailed description of the eruption and the formation of the eruptive structure see James et al. (2017).
Hence, we can conclude that all proxies that we applied suggest that the erupting flux rope had a positive chirality. Therefore, also this event followed the hemispheric rule for the helicity sign (see Section 3.1.1).
From SDO magnetograms ( Figure 5, left panel), we infer the tilt of the PIL to be at an angle |τ | 30 • with respect to the ecliptic. Hence, we can expect a bipolar flux rope at 1 AU with positive helicity, i.e. the possible flux rope types are: south-west-north (SWN) and north-east-south (NES). Again, the posteruptive arcades were short and not well-defined, so we could not use them for inferring the tilt of the flux rope.
For a right-handed region, the transverse magnetic field along the PIL is expected to point leftward when looking from the positive polarity side. The magnetic configuration of AR 11504 results then in an eastward axial field, which implies the erupting flux rope to be of NES-type. In order to confirm the axial field prediction, we look again at base-difference images at the EUV wavelength 131Å (Figure 5, right panel). As seen from the EUV dimmings, the western footpoint is rooted in the positive polarity region, and the eastern footpoint in the negative one. This means that the footpoints are aligned roughly eastward, suggesting that the axial field of the flux rope is also eastward. The right-handedness of the region implies that the leading field of an eastern-axial flux rope is oriented northward, and the trailing field is southward. This confirms our earlier suggestion of a NES-type flux rope prior to the eruption.

In situ Observations
The interplanetary shock associated with the CME was detected by Wind on 16 June 2012 at 19:35 UT. Clear flux rope signatures could be identified from 16 June at ∼22:00 UT to 17 June at ∼12:30 UT ( Figure 6, top panel). The visual inspection of the data confirms that the flux rope is indeed of the NES-type: the magnetic field rotates smoothly from north to south and at the cloud center the field points eastward. In addition, ∆θ < 0, and 0 • < φ < 180 • , where θ and φ are again the latitudinal and longitudinal components of the magnetic field, respectively.
The results of the MVA are shown in Figure 6, bottom panels. The ratio of the intermediate-to-minimum eigenvalues is λ 2 /λ 3 = 16, confirming the validity of the method. The rotation shown in the B max −B interm plane is now very clear and is consistent with our visual inspection, i.e., the NES-type. The orientation of the axis from the MVA is (θ A , φ A ) = (−28 • , 98 • ). The tilt angle is thus almost identical to the tilt of the PIL and suggests a low inclination flux rope.
The angle between the shock normal and the radial direction is α = 12.1 • , which means that the spacecraft encountered the ICME close to the apex. The perpendicular pressure profile (Figure 6f) shows a clear maximum around 17 June at 01:00 UT, which suggests that the spacecraft cut right through the center of the ICME, i.e. group 1 (see Section 3.2).
Finally, we perform the GSR. The estimated speed of the ICME in GSE coordinates in the de Hoffmann-Teller frame is V dHT = [−462.8, −9.7, −17.0] km s −1 with correlation coefficient c = 0.996. The residual map of the event is shown in Figure 7, left panel. The flux rope invariant axis has direction Θ = 6 • and Φ = 101 • . The crossing distance from the flux rope nose can be estimated from the longitude of the invariant axis. If a CME is crossed near its nose, the invariant axis can be assumed to be almost perpendicular to the radial direction from the Sun. The opposite applies when the CME is crossed through one of its legs, i.e. the invariant axis tends to be parallel to the radial solar wind flow. In this case, the longitude of the invariant axis suggests that the flux rope was crossed fairly close to its apex, consistent with our shock normal analysis above. Moreover, in agreement with the perpendicular pressure profile, the GSR suggests that the flux rope was cut centrally with a very small impact parameter. The magnetic field map for the event is shown in Figure 7, right panel. It represents the cross section of the flux rope in the plane perpendicular to the invariant axis, where the black arrows show the spacecraft in situ observations of the magnetic field projected onto this plane. The black lines represent magnetic equipotential lines.

Discussion and Conclusions
We present a detailed analysis of the magnetic flux rope structure of two CMEs that occurred on 2 June 2011 and 14 June 2012 that were both observed in the near-Earth solar wind. We determine the axial tilt, axial field direction, and chirality of the erupting CME flux ropes using several observational proxies.
As a first remark, it is worth noting that the eruption itself can be very complex for CMEs that appear very bright and well-structured in coronagraph images and in situ.  two active regions and was characterized by the double eruption of a curved filament. Only the latter eruption reached the Earth as indicated by the in situ data. On the other hand, the June 2012 event was associated with a very welldefined flux rope in situ, but was not associated with an erupting filament and had less distinct disk signatures. The CME appeared to originate higher up in the corona (e.g., Robbrecht, Patsourakos, and Vourlidas, 2009;Kilpua et al., 2014). Further details about this event are discussed by James et al. (2017).
Our analysis highlights that the presence of several alternative chirality proxies (see Section 3.1.1) is crucial for determining the sign of the twist in flux ropes that erupt from active regions. This is because, as discussed in the Introduction, a remarkable number of active-region CMEs are not associated with filaments or the filament structure is not so distinct that it could be used to determine the sign of helicity. In addition, other techniques also have their limitations. For example, the chirality of the field in which the CME forms can be inferred from magnetic tongues only during the initial phase of emergence of an active region (as was possible for our second example, but not for our first example). Our results also show that all the proxies used to infer the chirality agree with each other. We also demonstrate the usefulness of defining the axial field direction by locating the CME footpoints in case of lack of proper filament observations. Moreover, the exact location of a filament is often difficult to determine because of projection effects. The footpoint technique can be used when clear coronal dimmings are present. Alternatively, footpoint location could be determined observationally, e.g. from flare ribbons (Démoulin, Priest, and Lonie, 1996;Titov and Démoulin, 1999;Janvier et al., 2014).
However, even though both CMEs appeared non-trivial in the remote-sensing data, the flux rope types that we predicted matched the in situ observations. For the June 2012 event, our remote-sensing prediction found a perfect correspondence with the in situ data, while for the June 2011 event the PIL had a tilt |τ | = 45 • , i.e. the dividing angle between bipolar and unipolar flux ropes. Nevertheless, the handedness of the in situ flux rope was as expected from solar observations. The expected geomagnetic responses from SWN-and WNE-type clouds are quite different, as a WNE-cloud is expected to cause no storm, while a SWN-type cloud is expected to cause a moderate or intense storm (e.g., see Huttunen et al., 2005). However, considering an axial tilt of approximately 45 • implies for a right-handed flux rope an intermediate state between "strictly" SWN-and WNE-clouds, meaning that one expects a small amount of southward field and hence weak to moderate space weather response.
While it is encouraging that correct estimations of the flux rope type can be obtained even for relatively complex eruptions, there are several possible ways to refine the analysis and additional parameters to take into account. For example, we have ignored the evolution of the flux rope after the eruption. To improve the current estimates, the effects of possible rotations and deflections of the flux rope in the corona and in the interplanetary space should be considered. The rotation is expected to occur mainly within the first few solar radii, where the strongest magnetic forces act on a CME (e.g., Gui et al., 2011;Shen et al., 2011;Isavnin, Vourlidas, and Kilpua, 2014). We also emphasize the importance of determining the "intrinsic" flux rope type at the point of the eruption, because it is known that flux ropes of opposite chiralities tend to rotate in the opposite directions (Fan and Gibson, 2003;Green et al., 2007;Lynch et al., 2009). Other parameters that are important to estimate from remote-sensing observations are the magnetic flux in the flux rope and the impact parameter through the CME structure, i.e. the crossing distance from both the CME axis and the CME nose.