Main

It has long been known from statistical studies of a wide variety of stars that the chromospheric and coronal emission are well correlated on a global, stellar scale1,2,3, which suggests that the heating mechanisms in the chromosphere and corona are related. This intriguing correlation potentially provides critical constraints on the heating mechanism responsible for non-thermal energy dissipation in a stellar atmosphere. This is because the chromosphere and corona are very different in terms of partial ionization, non-local thermodynamic equilibrium (non-LTE), stratification and magnetic field to plasma pressure ratio. These differences have varying effects on the efficiency and likelihood of different heating mechanisms.

The global correlations, however, have not been translated into a direct physical connection at high spatial and temporal scales in the solar atmosphere4,5,6, leaving potential heating mechanisms poorly constrained. Detailed correlation studies on small spatial scales between coronal and chromospheric heating are very challenging because thermal conduction in the corona efficiently redistributes heat over a wide range of heights and locations. De Pontieu et al.4,5 studied the correlation between heating sites in ‘moss’—dynamic, bright regions of enhanced emission observed in the upper transition region (TR)/lower corona at the footpoints of high-pressure and high-temperature loops above an active region (AR) plage7, and the underlying chromospheric emission (visible in Ca H 3,968 Å filter images from ground-based telescopes). They found no correlation on arcsecond (~700 km) scales, in puzzling contrast with the global, stellar studies. These earlier studies were flawed, however, because recent results indicate that the bright ‘chromospheric’ emission in broadband Ca H 3,968 Å filter images is not a likely signature of chromospheric heating but rather emanates from deeper, hotter layers in the convection zone below evacuated strong photospheric magnetic flux tubes8,9. Upper TR moss provides an excellent laboratory to study how chromospheric and coronal heating mechanisms are spatio-temporally correlated. Because moss is formed in a thin layer, it is also very sensitive to changes in the local heating rate and avoids the confusion introduced by line-of-sight superposition that affects optically thin coronal diagnostics5,10. Most current observations lack the spatial resolution to resolve moss, which is structured on spatial scales of a few hundred kilometres. Recent observations from High-Resolution Coronal Imager (Hi-C) flight 1 (ref. 11) and the later Interface Region Imaging Spectrograph (IRIS12) satellite showed evidence of highly localized, small-scale, heating events in AR moss with durations between 15 s and 50 s (refs. 13,14). This relatively rare short-term, rapid variability is thought to be caused by the impact of non-thermal electrons, generated in the corona by reconnection in nanoflares15, on the upper TR and lower-lying chromosphere. While these observations hint at a relationship between chromospheric and coronal heating on small scales, these rare events do not seem to be common enough to explain the relatively steady emission patterns in the low atmosphere.

In this Article, we use unique coordinated observations of AR moss at unprecedented high spatial and temporal resolution from IRIS and Hi-C sounding rocket flight 2.1 (ref. 16) to investigate the relationship between chromospheric and upper TR/low coronal heating on small spatial scales. We exploit recent advances in modelling of non-LTE radiative transfer of spectral lines formed in the chromosphere6,17 that indicate that the enhancements in the cores of the chromospheric Mg ii h&k lines in moss are well-defined signatures of chromospheric heating, in contrast to broadband Ca ii H filter images. The combination of state-of-the-art spectral inversions of such lines with the high spatio-temporal resolution of the 5-min timeseries of Hi-C 2.1 images and numerical modelling allows us to determine unequivocally whether chromospheric and upper TR/low coronal heating are spatially and temporally correlated on small spatial scales, thereby providing strict constraints for numerical models.

Results

Chromosphere underneath the moss

Figure 1 shows the coronal and the chromospheric emission of the AR target 12712. The moss region, identified as a reticulated bright emission patch in Fig. 1a, is clearly seen to lie at the footpoints of the hotter (~2–6 MK; Fig. 1b and Methods) AR loops, typical of a moss4,5,7,18. IRIS co-observed the AR target, and we utilize the spectral information primarily in the Mg ii h&k lines to explore the chromosphere underneath the moss that is characterized by regions of enhanced brightness in the Mg ii k3 (h3) core. In Fig. 1c, such a region is indicated by the area bounded between X ≈ 80–100″ and Y ≈ 40–100″, and it corresponds to a chromospheric plage. This observation is in agreement with Carlsson et al.6, who also reported that the Mg ii k spectral line in plages shows little to no reversals of the upper chromospheric k3 core. Based on a semi-empirical radiative transfer approach, they argued that the enhanced core brightness in the plage represents conditions of hot and dense chromosphere, which causes the source function to remain strongly coupled with the local Planck function, thereby indicating locally strong heating.

Fig. 1: The chromospheric and coronal scenery of the moss observed with Hi-C 2.1 and IRIS on 29 May 2018.
figure 1

a, Hi-C 172 Å observation of AR 12712 centred at solar (X, Y) = (−145″, 280″). The black rectangular box outlines the moss region studied in this paper. b, A composite layering showing Fe iX/x Hi-C 172 Å (red, 1 MK), Fe xvi 335 Å (green, 2.5 MK) and Fe xviii 94 Å (blue, 6 MK) images from AIA. The white and dashed yellow boxes indicate the FOV recorded in the IRIS context and high-cadence rasters, respectively. c, The Mg ii k3 emission (Trad) from the FOV of the context raster, with its origin shifted. d,e, The chromospheric plasma temperature (T) (d) and electron density (Ne) (e) maps corresponding to the context raster averaged between logτ = [−4.6, −4.2]. The FOV of the high-cadence raster is outlined in ce. f, The observed (red) and inverted (black) Mg ii h&k profiles as a function of the wavelength corresponding to a moss pixel indicated in c. A typical QS profile is shown (blue) for reference. gi, The stratification of T (g), microturbulent velocity (h) and Ne (i) of the moss (red) and QS (blue) inferred from IRIS2 inversion.

Instead of an ad hoc forward modelling approach, we employ a state-of-the-art, simultaneous, multi-line inversion scheme based on IRIS2 (ref. 19) with six different spectral lines (including C ii 1,335 Å; Methods). Figure 1d,e shows the plasma temperature (T) and electron density (Ne) maps derived from the inversion scheme, which upon inspection, immediately reveals clear evidence of hot and dense plasma in the regions associated with enhanced Mg ii k3 radiation temperature (Trad; Fig. 1c). The radiation temperature is the temperature for which the Planck function reproduces the observed intensity at any given wavelength. Interestingly, the moss region (identified from Fig. 1a,b) shows stronger enhancement in the Mg ii k3 radiation temperature that appears to be well correlated with stronger T and Ne values, which clearly suggests that the chromosphere underneath the moss has hotter and denser plasma associated with it. Including multiple atomic species in the inversion allows us to effectively constrain a wide range of solar atmosphere spanning the photosphere through the upper chromosphere20. This approach represents a major advancement since it enables a direct examination and correlation of the physical parameters of the plasma, instead of focusing on the ‘proxies’ of heating (as had been done in the past5,10).

A representative example of a Mg ii h&k spectrum associated with a mossy plage pixel is shown in Fig. 1f. The spectrum shows little self-reversal in the k3 (h3) wavelength intensities, indicating a flat-topped (single-peaked6) profile unlike the quiet-Sun (QS) profiles, which show a distinct absorption in k3 (h3). Moreover, the overall Trad and the width of the plage spectrum are substantially enhanced compared with the QS case, which is in agreement with earlier findings6. The synthetic spectra derived from inversion show good fit not only for the example shown in Fig. 1f but also for various other examples shown in Extended Data Figs. 1–3. Additionally, the C ii lines, which were simultaneously inverted and fitted with the Mg ii h&k, show good fits as well; this suggests that the derived physical parameters are well constrained at upper chromospheric heights. The inferred T, microturbulence and Ne as a function logτ (τ being an ‘optical’ measure of depth in the solar atmosphere) corresponding to the plage and the QS spectra in Fig. 1f are shown in Fig. 1g–i. Interestingly, all three parameters show a clear enhancement centred around logτ = −4 compared with the QS case, reinforcing that the chromosphere underneath the moss is hot and dense, and has substantial non-thermal velocities (of ~6 km s−1, here named as microturbulence). This pattern is consistently observed for a vast majority of the plage, including the examples shown in Extended Data Figs. 1–3. In addition, the temperature stratification shows a characteristic ‘step’ (around logτ = −4.5), and the temperature minimum is pushed deeper into the solar atmosphere, which is critical (in combination with high density) in reproducing the flat-topped, single-peaked spectra.

Correlation between chromospheric and coronal heating

The left and right panels of Fig. 2 show the spatio-temporal correlation analysis between the IRIS and the Hi-C intensities, and between the physical parameters derived from the IRIS2 inversion and Hi-C intensity for a small field of view (FOV; of 13 × 7 arcsec2) of the moss region marked as region of interest (ROI)-B. The analysis is derived from the high-cadence IRIS rasters (Methods) that overlap the moss region as shown in Fig. 1b. Visual inspection reveals that the intensity in ROI-B is well correlated among the Mg ii k3, Si iv and Hi-C channels. This is supported quantitatively in the form of the two-dimensional (2D) density distribution functions shown in Fig. 2d,e, where we see a tight correlation not only between Mg ii k3 and Hi-C 172 Å intensities but also between Si iv and Hi-C 172 Å. The high values of Pearson coefficient (r) in both cases are in direct contrast with earlier results (such as refs. 4,5) where the authors failed to obtain a good correlation on (sub-)arcsecond scales. The correlation (r) between Si iv and Hi-C 172 Å intensity is slightly worse and nonlinear compared with the chromospheric (Mg ii k3) counterpart (also see Extended Data Figs. 4 and 5), possibly because TR Si iv is often impacted by shocks21 and spicules5,9,22 that affect its brightness variation more substantially compared with Mg ii k. Nonetheless, the correlation coefficients obtained in this paper are substantially better than past findings, which implies a tight coupling in the heating of the solar atmosphere from the chromosphere to upper TR/lower corona around 1 MK.

Fig. 2: Spatio-temporal correlation for the mossy plage region ROI-B.
figure 2

ac, The Mg ii k3 (a), Si iv (b) and Hi-C (c) 172 Å intensity (counts) corresponding to the high-cadence raster (#4). The FOV under investigation is shown in red. d,e, The 2D density distribution functions between the Mg ii k3 and Hi-C 172 Å (d) and the Si iv and Hi-C 172 Å (e) intensities. a′c′, The T (a′) and Ne (b′) maps corresponding to the same time and FOV as a and b averaged between logτ = [−4.6, −4.2], and the Hi-C 172 Å (c′) as a reference. d′,e′, The 2D density distribution functions between T and Hi-C 172 Å (d′), and Ne and Hi-C 172 Å (e′). The Pearson correlation coefficients (r) are shown at the top left. An animation of this figure is available at https://drive.google.com/drive/folders/1BV3mRUFS8ur6k8yuRU-JdBewC_YNuWbP.

The tight coupling in the moss intensity among the different channels directly translated to a strong visual correlation between the inferred physical parameters (Fig. 2, right), that is, T (Fig. 2a′) and Ne (Fig. 2b′) shown at \(< \log \tau > =-4.4\), where ‘<>’ represents an average of the physical parameter between logτ = [−4.6, −4.2], with Hi-C 172 Å intensity (Fig. 2c′). In ROI-B, the enhanced Hi-C 172 Å intensity is clearly characterized by enhanced T and Ne. The range of the derived T and Ne is consistent with values that are typically observed in a chromospheric plage6,23. The 2D density distribution functions shown in Fig. 2d,e,d′,e′ further highlight the rigid coupling of the chromospheric and the upper TR/lower corona plasma in a moss. Moreover, the animation associated with Fig. 2 suggests that the correlation remains stable (and high) for the entire timeseries of the Hi-C data. Analysis of the spatio-temporal correlation analysis of other ROIs in the moss region (Extended Data Figs. 4 and 5) reveal similar results (with slightly different values of r). This scenario does not appear to be compatible with the impact of non-thermal electrons, which causes a sudden temporal variability on timescales of ~15–60 s (refs. 13,14).

Height dependence of the correlation

Although we found a good correlation between temperature, density (at mid-chromospheric heights) and Hi-C 172 Å intensity, an important question is: how deep in the solar atmosphere does the correlation still hold? The IRIS2 database provides the derived thermodynamic parameters as a function of optical depth τ. The latter is correlated with height, with smaller depths occurring at greater heights. We therefore studied the correlation over a range of heights in the solar atmosphere between logτ = [−7.6, 0], that is, from the top of the chromosphere down to the photosphere. This is represented in the form of a 2D heatmap in Fig. 3 that shows the Pearson r for ROI-B as a function of time (#raster) and optical depth (logτ) for T (left) and Ne (right) versus Hi-C 172 Å intensity. The sensitivity of our inversions is predominantly limited between \(-6\le \log \tau \le -2\) (due to the sensitivities of the different lines included in the inversion, see Methods and ref. 20). Interestingly, we find that there is a range of optical depths (within logτ = [−6, −2]) for which r is rather high (≥0.6) in both panels (Fig. 3). The temperature and density of the chromospheric plasma appear to be well correlated with the upper TR/lower coronal intensity of Hi-C 172 Å down to the temperature minimum (logτ ≈ −3) for all 14 rasters. The coupling immediately weakens deeper in the atmosphere (for \(\log \tau > -3\) in the photosphere), suggesting different physical conditions of the plasma. However, there is no doubt that hot and dense plasma dominates the lower to upper chromosphere underneath and is well correlated with upper TR/lower coronal moss locations. For heights above logτ = −6, the apparent absence (or presence) of correlation in Fig. 3 does not indicate a lack (or sufficiency) of coupling. It merely implies that the inferred values of T and Ne at these heights are ill constrained due to little or no sensitivity of the inversions. Analysis of the other ROIs reveals slightly different (and often lower peak) values of r (Extended Data Figs. 6 and 7), implying that different regions of the moss exhibit different behaviour at different epochs. Nonetheless, in both ROI-A and ROI-C, the correlation extends reasonably well down to at least logτ ≈ −4, where the temperature is between 5 kK and 6 kK.

Fig. 3: Heatmaps showing the depth-dependent correlation for ROI-B.
figure 3

Pearson correlation coefficient (r, encoded in a rainbow colour scheme) as a function of depth in the solar atmosphere (logτ, y axis) and time (#raster, x axis) for T versus Hi-C 172 Å (left) and Ne versus Hi-C 172 Å intensity (right). T and Ne are derived from the multi-line inversions of the chromospheric IRIS data, and the region between the dashed lines in the two panels indicates the range of optical depths within which the inversions are sensitive (refer to main text). The number of rasters corresponds to the entire Hi-C 2.1 duration of ~5 min.

Discussion

The tight correlation between the derived physical parameters with the Hi-C 172 Å intensity down to the temperature minimum strongly suggests the prevalence of a common heating mechanism. Thermal conduction, which obviously plays a role in the hot corona and upper TR10, is negligible at low temperatures in the lower chromosphere (~6 kK) and thus cannot explain the observed spatio-temporal correlation between low chromospheric and upper TR heating. Accelerated electron beams generated in coronal nanoflares can have an impact on heating the chromosphere24; however, due to their impulsive nature, such heating would show a high temporal variability13,14, which is not observed in this study.

We find that our observations show a striking correspondence with an advanced three-dimensional (3D) magnetohydrodynamic (MHD) numerical simulation of an AR plage (Fig. 4a–c). The numerical domain encompasses the convection zone, photosphere, chromosphere, TR and corona (Methods). Optically thin modelling of the coronal channels reveals the presence of moss-like emission patches in Fe iX 171 Å (Fig. 4c) that lie at the footpoints of hot loops visible in Fe xvi 335 Å (Extended Data Fig. 8). The synthetic Mg ii k3 and 171 Å (Fig. 4b,c) intensity bear a close resemblance to observations where the moss coincides with enhanced k3 radiation, and the Mg ii k spectra show single peaks (Fig. 4d,g). The temperature minimum is shifted deeper in the solar atmosphere for the moss pixels (Fig. 4d) with many showing characteristic ‘steps’ around low chromosphere at z = 0.4 Mm (Fig. 4h), similar to Fig. 1f. Two-dimensional density distribution functions between 171 Å and k3 channels show a tight correlation with high values of Pearson r at both large (sROI-A; Fig. 4f) and small (sub-)arcsecond scales (sROI-B; Fig. 4i). The simulated scenario bears a close resemblance with observations, and a detailed analysis of the magnetic field topology reveals the presence of braiding in the field lines25 deep in the atmosphere, which leads to the formation of current sheets (Fig. 4j). These sheets extend from the chromosphere (where they are stronger) to the corona, traversing several mega-metres and causing local heating in the mossy plage regions, in addition to the heating from the large downward thermal conductive flux from the overlying corona. Dissipation of the current sheets leads to strong heating of the plasma in the chromosphere and the upper TR/lower corona that explains the cause of the observed correlation. These types of small-scale current sheets from braiding are more ubiquitous and very different from large-scale current sheets that form when newly emerging flux interacts with pre-existing fields and that have been implicated in local heating26. The current sheets in our simulation occur on small scales of several hundred kilometres that are at (and beyond) the limit of current observational capabilities27. High-resolution magnetic field measurements at multiple heights are needed to resolve some of these sheets. Future observations, for example, with 4 m DKIST28, may aid in this direction.

Fig. 4: Overview of the 3D numerical simulation of an AR plage.
figure 4

a, Vertical magnetic field strength (Bz) at z = 0 Mm saturated between ± 2 kG. sROI-A and sROI-B cover an area of 10 × 10 Mm2 and 1.5 × 1.5 Mm2, respectively, whereas the QS patch encloses an area of 15 × 15 Mm2. b,c, Synthetic Mg ii k3 and Fe ix 171 Å maps of the simulated plage. Purple contours in b indicate the regions of enhanced brightness corresponding to the moss emission in c. d,e, The synthetic median Mg ii k spectra over the mossy pixels (red) within the purple contours in b and the QS patch (blue) (d), and the corresponding temperature stratification (e). g,h, Illustrative examples of a synthetic Mg ii k spectrum (g) and its ‘step-like’ temperature stratification (h; highlighted in grey) for a single mossy plage pixel in sROI-B. f,i, The 2D density distribution functions for sROI-A (f) and sROI-B (i). j, The visualization of the magnetic field lines (brownish yellow) and their associated current sheets (\(| \mathbf{j}| /| \mathbf{B}|\), \(\mathbf{j}\) being the current density) from the photosphere to the corona in sROI-A. The (x, y, z) dimensions of the ROI are 13 × 10 × 5.5 Mm3.

Furthermore, the nature of heating observed in the moss appears to be incompatible with current models of wave-based heating. Predicted heating rates from Alfvén wave turbulence models29,30 are highly time varying because of the presence of high-frequency waves. This causes a lack of correlation between chromospheric and upper TR/lower coronal emission, in contrast to what we observe in this study. Future observations of longer duration with Solar Orbiter’s Extreme Ultraviolet Imager31 instrument and the upcoming NASA MUlti-slit Solar Explorer (MUSE) mission32 will provide more detailed imaging and spectroscopy of a much wider variety of regions, and help determine how widespread this heating mechanism is in the solar atmosphere.

Methods

Observations

The Hi-C 2.1 sounding rocket mission was launched on 29 May 2018 at 18:54 UT from the White Sands Missile Range in New Mexico, United States. The target was AR 12712, and the instrument successfully acquired high spatial resolution (0.4″), 2k × 2k images with a 2 s exposure at a cadence of 4.4 s. The Solar Pointing and Aerobee Control System (SPARCS) maintained a constant target for the entire duration of the flight lasting 335 s. One of the major goals of this mission was to study the mass and energy coupling between the chromosphere and the corona in ARs. Consequently, the observations were recorded in the upper transition and lower coronal 172 Å passband (Fe ix/Fe x) that has a peak temperature sensitivity of about 1 MK. The passband is similar to the Atmospheric Imaging Assembly (AIA) 171 Å channel, except that Hi-C 2.1 recorded observations at roughly three times the spatial and temporal resolution of AIA, thereby allowing an unprecedented view of the million degree corona. The details of the instrument and its characterization can be found at ref. 16.

The Hi-C 2.1 sounding rocket flight was also coordinated with IRIS that co-observed the AR target with multiple, co-temporal, high-cadence rasters centred around the moss brightenings (indicated by the dashed yellow lines in Fig. 1b). It ran in very large, sparse eight-step raster mode (OBS-3600104031) with a step size of 1″ perpendicular to the slit and a raster cadence of 25 s covering a FOV of 175″ × 7″ in the solar Y and X directions. A total of 256 rasters were obtained over a duration of 1 h 50 min, including the Hi-C flight duration of 5 min (equivalent to 14 rasters). In addition, IRIS also recorded several very large, dense 400 step rasters (OBS-3600010078) covering a FOV of 141″ × 174″ co-spatially with Hi-C, but for roughly 1 h and 51 min (raster cadence) before and after the sounding rocket flight. The step size in this case was 0.35″ perpendicular to the slit, while the step cadence was 16.7 s. The FOV of one such context raster is indicated in Fig. 1b, and the purpose of these rasters was to provide contextual information in and around the AR. Furthermore, IRIS recorded slit-jaw images (SJIs) in C ii 1,330 Å, Si iv 1,400 Å, Mg ii 2,796 Å and Mg continuum 2,832 Å channels sampling plasma from 6,000 K to ~100,000 K. The cadence and the spatial sampling of these images are 13 s and 0.33", respectively.

Finally, we also used observations in the Solar Dynamics Observatory33/AIA34 94 Å (Fe XVIII, ~6 MK) and 335 Å (Fe XVI, ~2.5 MK) passbands, solely for the purpose of visualizing the presence of hot AR loops above the moss brightenings seen in Hi-C 172 Å. This relationship is shown in the form of an RGB composite image in Fig. 1b.

Data processing

The above sets of observations were precisely co-aligned using SolarSoftWare (SSW35) IDL routines including compensating for the roll angle (1.7°) between the IRIS and Hi-C observations. In particular, the IRIS SJIs and Hi-C datasets were co-aligned through first a visual comparison and cross-correlation of Hi-C 172 Å and AIA 171 Å channels, followed by internally co-aligning the AIA 1,600 Å, 171 Å, 94 Å and 335 Å channels (this includes the 3 h cadence limb fitting), and finally by co-aligning the AIA 1,600 Å and IRIS 1,400 Å SJIs. The above steps resulted in a precise co-alignment between IRIS SJIs and the Hi-C 2.1 data (with an accuracy better than 0.5), where the former was expanded36, rotated and spatio-temporally aligned to the latter. Extensive visualization with CRISPEX37, an IDL widget-based tool, showed good correspondence among the coordinated datasets.

For the spatio-temporal correlation analysis presented in the paper, synthetic sparse, eight-step Hi-C 172 Å rasters were generated that were spatially and temporally co-aligned with each of the IRIS rasters. This was done to ensure consistency between the IRIS and Hi-C observations, since the spectrograph slit takes time to ‘build’ the FOV whereas Hi-C observations over the whole FOV are instantaneous. Note that the derived parameters (for example, the intensity of Mg ii k3, Si iv, T and Ne) from the IRIS rasters at original resolution were resampled to Hi-C 2.1 pixel scale (0.129) before generating the synthetic Hi-C rasters, which was done to not compromise the high spatial resolution of Hi-C. A standard single Gaussian fitting algorithm was applied to derive the Si iv peak intensity, while a double Gaussian approach (including one absorption and emission Gaussian as in ref. 38) was employed to fit the Mg ii k spectra. This way, single-peaked profiles were easily fitted with the emission Gaussian whereas the remaining spectra with depressed cores were fitted with a superposition of a broad emission and narrower absorption Gaussian.

IRIS2 inversions

The inversions presented in this article were made using the IRIS2 inversion framework. The core of this framework is a database created from the inversion of multi-line representative profiles (RPs) and their corresponding representative model atmospheres (RMAs).

This approach was first introduced by Sainz Dalda et al.19. There, the authors calculated the RPs of the Mg ii h&k lines (including the Mg ii UV lines located between the former ones) for a selection of IRIS data sets. The RPs are the average profile of those profiles belonging to a cluster. A cluster is calculated by using the k-means technique39,40. The profiles within a cluster share a similar shape; that is, the distribution of the intensity (spectral radiance) with respect to the wavelength is similar. Therefore, the physical conditions of the atmosphere where the radiation comes from are similar in the profiles within a cluster, and it is encoded in the RP of the cluster. The database was created considering a large variety of RPs belonging to different solar features with different observational setups, for example, exposure time, location on the solar disk, raster steps, etc. These RPs were inverted by the state-of-the-art STockholm Inversion Code (STiC41), which considers non-LTE radiative transfer and the partial frequency distribution (PRD) of the scattered photons. This code is capable of inverting simultaneously several spectral lines from different atomic species, in both non-LTE and LTE. STiC solves the radiative transfer problem to synthesize the spectral lines in the RP, and in an iterative process that slightly changes the physical parameters of an initial guess model, looks for the best possible fit between the synthetic profile and the observed RP. This process is repeated until convergence under a given limit or computational constraint. As a result of the inversion, STiC provides a synthetic RP that best fits the observed RP, and the RMA that reproduces that synthetic RP. An RMA consists of thermodynamic parameters (for example, T, Ne, LOS velocity and microturbulence) as a function of optical depth (τ). For a given observed Mg ii h&k profile in an IRIS observation, IRIS2 looks for the closest synthetic RP in their database that fits that observed profile and associates the RMA to the location in the data set where the observed profile was recorded. This method speeds up the inversion of a data set by a factor of 105–106.

In this paper, we use an extended version of the IRIS2 method. Sainz Dalda et al. (2022)20 use the same method and calculate the RPs for multi-line profiles containing the C ii lines, the Mg ii h&k lines, the three lines of the Mg ii UV triplet and six photospheric lines located around the Mg ii h&k spectral range. Thus, a multi-line RP is simultaneously inverted by STiC providing an RMA, for which the thermodynamic parameters are constrained from the top of the chromosphere to the bottom of the photosphere (see ref. 20 for more details). Note that, because we are considering simultaneously several lines that are sensitive to variations of the thermodynamics in the same region of the solar atmosphere, the T and the non-thermal contribution to the profile (microturbulence) are better constrained than in the case that only considers one spectral line, which is the case for both the chromosphere and the low photosphere. Thus, this set of RPs and RMAs is probably the best-constrained, comprehensive database of thermodynamics models of the low solar atmosphere.

For this paper, IRIS2 looked for the closest RP in the database considering only the lines available in our data sets, which are the C ii lines, the Mg ii h&k lines, the three Mg ii UV triplet lines and the photospheric Ni i at 2,815.18 Å line. Extended Data Figs. 1–3 show the observed lines in the chromosphere (dotted red line) and their fits (black). Thus, although the RMA provided by IRIS2 contains information that was obtained from inverting six photospheric lines, the information presented in this paper comes from fitting only one photospheric line. Therefore, the values in the region logτ = [−2, 0] must be considered with caution. We are, however, very confident in the values obtained in the chromosphere, especially between logτ = [−6, −2], since that information comes from the unique simultaneous inversion of six chromospheric lines, which provide model atmospheres with excellent constraint in these heights, and the photospheric Ni i at 2,815.18 Å line. Although this method reproduces most of the characteristics of the Mg ii spectral lines, in some cases, for example, in Extended Data Fig. 2, there is a discrepancy between the fitted and the observed spectra around the k3 (h3) region that can be attributed to the lack of similar profiles in the IRIS2 database.

Numerical simulation

The 3D simulation of the plage-like region was performed in a computational box with dimensions of 72 × 72 × 61 Mm spanning from 8.5 Mm below the photosphere to 52.5 Mm above it. The resolution of this box is moderate: 100 km in the horizontal directions and [20, 100] km in the vertical direction, depending on location in the atmosphere; in the photosphere, chromosphere and TR, the vertical resolution is on the order of 20 km. The model calculations are run with the Bifrost radiative-MHD code42, which includes optically thick radiative transfer in the photosphere and lower chromosphere, radiative losses in the mid- and upper chromosphere and optically thin radiative losses in the corona. The radiative heating and cooling of the chromosphere and corona are calculated using tables derived by ref. 43 in which neutral hydrogen lines and the Lyman continuum, the H and K and infra-red triplet lines of singly ionized calcium and the h and k lines of singly ionized magnesium are written as a product of an optically thin emission (dependent on temperature), an escape probability (dependent on column mass) and an ionization fraction (dependent on temperature). Spitzer thermal conduction along the magnetic field is handled by a multi-grid method (or alternately by the hyperbolic method developed by ref. 44) to maintain time steps at a reasonable level. The upper boundary at z = 52 Mm above the photosphere is set to be transparent by using characteristic equations as described in ref. 42. The lower boundary, some 8.5 Mm below the photosphere, sets the entropy of inflowing material such that the effective temperature of the model is close to solar conditions, while other variables such as density, velocities and magnetic field are extrapolated out of the box on the basis of their values at the boundary. In the horizontal direction, the boundaries are periodic. The code is kept stable by using hyperdiffusivities, which are again described in ref. 42; this gives heating of the plasma where magnetic gradients are large through a numerical Joule heating term. In addition, such reconnection sites lead to an acceleration of the plasma that is thermalized by the (hyperdiffusive) viscosity. Both terms lead to the energization of the chromospheric and coronal plasma in the vicinity of the current sheets formed by tangential discontinuities in the magnetic field.

To initialize the model, two circular patches of strong but opposite polarity magnetic flux (at 8.5 Mm below the photosphere) were used to generate a potential field covering the entire computational box. The positive polarity patch started with a diameter of 20 Mm, while the negative polarity patch had a diameter of 15 Mm at the bottom boundary. The total flux in each patch was set to be opposite but equal, while a small positive (vertical) flux of a few Gauss was added to the entire area of the simulation. This field geometry was inserted into a relaxed convective atmosphere after which the field and atmosphere were allowed to relax together. At the time of the snapshot, some 20 min after the initial snapshot, the photosphere in the strong field regions has become quite cold (and darker than the surrounding atmosphere) while the chromosphere and corona are hot and bright (Fig. 4 and Extended Data Fig. 8).

To compute the Mg ii lines, we used the RH 1.5D code45,46. This code includes detailed radiative physics including polarized transfer and PRD, but at the cost of only being used for 1.5D (column-by-column) computations, and thus ignores the 3D effects of lateral transport of radiation. Three-dimensional effects can play an important role in modelling the Mg ii lines17, especially in the line cores. However, in regions where the temperature and the density of the plasma are enhanced (such as in the mossy plage), 3D effects can be minimal due to lower scattering of photons. Moreover, the lower time complexity of the 1.5D approach far outweighs its limitations. The calculations are carried out in non-LTE assuming PRD.

The emission of optically thin TR and coronal lines, including the Fe ix 17.1 nm and Fe xvi 33.5 nm lines, is calculated using contribution functions G(T, Ne) from the CHIANTI47 database package. These contribution functions are integrated along the line of sight using the local values of the electron density Ne, the temperature T, and the velocity along the line of sight uz at several frequencies covering the emitting ions line profile. These calculations are done on GPUs using a Cuda code developed by Juan Martinez-Sykora.