{'fraction_non_alphanumeric': 0.015373864430468204, 'fraction_numerical': 0.001397624039133473, 'mean_word_length': 5.042194092827004, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, '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}}
A New MHD-assisted Stokes Inversion Technique

We present a new method of Stokes inversion of spectropolarimetric data and evaluate it by taking the example of a Sunrise/IMaX observation. An archive of synthetic Stokes profiles is obtained by the spectral synthesis of state-of-the-art magnetohydrodynamics (MHD) simulations and a realistic degradation to the level of the observed data. The definition of a merit function allows the archive to be searched for the synthetic Stokes profiles that best match the observed profiles. In contrast to traditional Stokes inversion codes, which solve the Unno–Rachkovsky equations for the polarized radiative transfer numerically and fit the Stokes profiles iteratively, the new technique provides the full set of atmospheric parameters. This gives us the ability to start an MHD simulation that takes the inversion result as an initial condition. After a relaxation process of half an hour solar time we obtain physically consistent MHD data sets with a target similar to the observation. The new MHD simulation is used to repeat the method in a second iteration, which further improves the match between observation and simulation, resulting in a factor of 2.2 lower mean value. One advantage of the new technique is that it provides the physical parameters on a geometrical height scale. It constitutes a first step toward inversions that give results consistent with the MHD equations.