WorksPhysics and Astronomy
HINSPHERES: Spherically Symmetric Radiative Transfer Modeling of HINSA and the Radial HI-to-H Transition in Molecular Clouds
Abstract
The transition from atomic hydrogen (HI) to molecular hydrogen (H) is the first step in the evolution from diffuse interstellar gas to dense star-forming cores. HI narrow self-absorption (HINSA), produced by cold atomic gas mixed with molecular material, provides a direct tracer of the HI-to-H transition in molecular clouds. Existing HINSA analyses typically model HINSA as a single Gaussian component with a uniform spin temperature. This approach cannot recover the radial HI distribution and yields large errors for young cores whose profiles deviate from a Gaussian shape. Here we present hinspheres, an open-source framework that models the core as onion-like spherically symmetric concentric shells, solves radiative transfer along the line of sight and jointly fits the HI abundance, temperature, and kinematic parameters. The framework recovers all parameters with a mean relative error of 4.6-6.8% on our synthetic data with different ages. A combined resolution-noise grid shows that the median recovery error remains below 16% for cores within 1 kpc observed at FAST resolution with noise levels below 0.2 K. Applying it to the dark cores L1574 and L1544, we reveal radial HI abundance profiles that span about three orders of magnitude, which were missed by the single-Gaussian method. The derived chemical ages are and yr, respectively. Compared with the commonly used single-Gaussian method, hinspheres characterizes the radial profile of HINSA structures more accurately, making it well suited to identifying and analyzing young cores undergoing the HI-to-H transition.
Introduction
The conversion of atomic hydrogen (HI) to molecular hydrogen (H) is the first step of the evolution from diffuse interstellar gas to dense star-forming cores [1, 35]. In the standard picture, a diffuse atomic cloud contracts and shields itself from the interstellar radiation field. Once self-shielding is sufficient, H forms on grain surfaces and the cloud transitions from atomic to molecular [14, 8]. The timescale and spatial structure of this HI-to-H transition remain poorly constrained observationally [1, 11], yet they set the initial conditions for all subsequent star formation.
Tracing this conversion is difficult: H lacks a permanent electric dipole moment, and its first rotational level lies far above the typical kinetic energy of particles in the cold gas. Carbon monoxide, the standard surrogate tracer, has its own limitations: in the dense, well-shielded interior CO freezes onto dust grains [4], while in the translucent outer layers CO photodissociation creates large volumes of “CO-dark” molecular gas [3, 40]. HI narrow self-absorption (HINSA) usually shows up as a narrow absorption dip on the Email: [email protected] broader 21 cm HI emission line. It is produced by cold ( K) atomic gas mixed with molecular material absorbing the warmer background HI emission (D. Li & P. F. Goldsmith 2003). Note that whether this cold gas layer shows absorption, emission, or no detectable feature at all is not an intrinsic property of the gas itself but a radiative-transfer effect set by the contrast between its spin temperature and the background brightness, together with the line opacity [35] (D. Li & P. F. Goldsmith 2003). Because the cold HI producing HINSA is physically co-spatial with the molecular gas in which it is embedded, HINSA is a direct tracer of the HI-to-H transition.
HINSA is commonly detected in cold dark clouds and is frequently associated with molecular tracers such as CO, OH, and HCN. D. Li & P. F. Goldsmith (2003) detected HINSA in 77% of surveyed dark cores in the Taurus/Perseus region and showed that HINSA correlates with the accompanying OH and CO emission in position, velocity, and non-thermal line width. M. Krčo & P. F. Goldsmith (2010) detected HINSA in 40 dark clouds within 700 pc and measured a mean projected HI abundance of , confirming that cold HI is typically the third most abundant component in molecular clouds. A pilot HI survey of 17 Planck Galactic cold clumps using FAST detected HINSA in 58% of the clumps [34], and a subsequent FAST survey guided by HCN emission achieved HINSA detection rates of 92% overall and 87% among clumps with HCN detections [24]. HINSA has also been found toward the dense “bones” filaments of the inner Galaxy [32] as well as in CO-dark molecular gas in the outer Galactic disk [25].
The radial distribution of the HI abundance is central to understanding the chemical evolution of molecular clouds. Time-dependent models of H formation on grains show that the dense inner regions approach reaction equilibrium faster than the diffuse outer envelope, so that at late times the HI abundance rises toward the cloud edge, from in well-shielded cores to a much higher value at the warm boundary [11]. Direct evidence for such radial structure was obtained by P. Zuo et al. [43], who combined HINSA with CO, dust, and extinction measurements toward the isolated core B227. They revealed a ring of enhanced HI abundance, measured the projected HI abundance varying from 2% to 0.2% within the core, and derived a cloud formation timescale of yr. The predicted radial variation implies that, during the HI-to-H transition, the high-density core converts faster than the envelope and reaches a lower HI abundance at the center. At equilibrium, the equilibrium HI abundance decreases with increasing density [10], so the densest central region also attains the lowest HI abundance.
HINSA is typically treated as a single absorbing component with uniform spin temperature. In the three-component framework of D. Li & P. F. Goldsmith (2003), the observed HI brightness temperature is understood as the line-of-sight result of background, cold, and foreground HI layers, with the cold cloud in the middle producing the HINSA feature. The foreground correction is estimated from a simplified model of the Galactic HI distribution and the cloud distance, while the background emission is reconstructed by fitting polynomials around the absorption feature to isolate the HINSA component. The HINSA profile is then fitted with a single Gaussian to obtain the optical depth and column density. M. Krčo et al. (2008) adopt a forward-fitting approach with a second-order derivative optimization, modeling the line-of-sight as a background component and a single cold-cloud component with a Gaussian HINSA profile. The optical depth is obtained through iterative fitting. In both approaches, a single absorption profile cannot by itself separate the opacity from the temperature, so the spin temperature must be assumed (typically 10 K). Subsequent HINSA studies have largely followed one of these two frameworks. Studies based on D. Li & P. F. Goldsmith (2003) have experimented with higher-order polynomial backgrounds and multi-Gaussian decompositions [34, 23, 22], while studies based on M. Krčo et al. (2008) have refined the forward-fitting approach [24, 25] (M. Krčo & P. F. Goldsmith 2010). Both approaches assume that the HINSA profile is single-component Gaussian and cannot invert observed spectra to recover the underlying radial HI distribution. This is especially problematic for cores undergoing the HI-to-H transition, whose HINSA profiles are expected to deviate from Gaussian and which are key objects for studying the atomic-to-molecular conversion.
In this paper, we present hinspheres, a Python framework that fills this gap. The framework models spherically symmetric clouds with parametric density and temperature profiles and a discrete radial HI abundance distribution, performing layer-by-layer radiative transfer along every line of sight through a three-dimensional data cube. By fitting all lines of sight simultaneously, hinspheres constrains the full radial HI abundance distribution, as well as the spin temperature and opacity. Compared with the single-Gaussian method, which returns only one column-density value per line of sight and no radial information, hinspheres characterizes the radial profile of HINSA structures more accurately, making it well suited to identifying and analyzing young cores undergoing the HI-to-H transition.
The paper is organized as follows. § 2 describes the physical model and radiative transfer calculation. § 3 presents the data preparation and fitting algorithm, and discusses the fundamental parameter degeneracies. § 4 validates the pipeline on synthetic data. § 5 demonstrates an application to observational data. § 6 examines the non-Gaussianity of HINSA absorption profiles, compares the hinspheres three-dimensional fitting approach with the conventional single-Gaussian method, and discusses the applicability and limitations of the framework. § 7 summarizes the results.
Physical Model and Radiative Transfer
The hinspheres model represents a spherically symmetric cloud as concentric shells spanning the outer radius (Figure 1). Shell () occupies the radial interval with and outer boundaries . Physical quantities are evaluated at the shell midpoints and taken as constant across each shell.
Figure 1. Profiles and map of our synthetic core in § 4.1. (a) Density profile for the synthetic core. (b) Temperature profile. (c) map generated from the density profile, convolved to a Planck-like resolution of with a pixel scale of . Gaussian noise of is added to mimic the Planck uncertainty. (d) HI abundance profiles at four chemical ages calculated from the time-dependent model of P. F. Goldsmith et al. [11].
For a line of sight at impact parameter from the cloud center, the path length through shell is
where the second square-root term is set to zero if . Each intersected shell is traversed twice (back and front hemispheres), including at the cloud center (), where the line of sight pierces the full cloud diameter.
We adopt a generalized Plummer profile for the density structure, a form that has been widely used in core modeling ([33, 26, 41]) because it captures the flat central region and power-law outer envelope characteristic of both Bonnor–Ebert spheres () and collapsing power-law profiles (smaller ):
where is the central hydrogen-nucleus number density, is the Plummer core radius, and the index governs the outer falloff. Here is the total hydrogen-nucleus number density, defined as , where is the number density of atomic hydrogen and is the number density of molecular hydrogen molecules. The factor of 2 accounts for the two hydrogen nuclei per H molecule. We define the radial HI abundance as
In hinspheres, the radial HI abundance is parameterized in discrete form.
The spin temperature follows a Plummer-like profile, which offers the flexibility to describe a wide range of temperature gradients, from centrally heated cores () to externally heated shells ():
where is the central temperature, is the ambient temperature, is the transition radius, and is used by default. Throughout this paper, in temperature profiles denotes the HI spin temperature, defined by the ratio of the hyperfine level populations. The spin temperature and the kinetic temperature have under the assumption of local thermodynamic equilibrium (LTE).
The model includes both infall and rotational velocity fields. The free-fall velocity at radius is
where is the enclosed mass within radius :
with the mean gas mass per H nucleus ([27]). The actual infall velocity is , where is a free parameter (). For a line of sight at impact parameter , the radial infall velocity is projected onto the line of sight:
where and is the depth along the line of sight ( toward the observer). Rigid-body rotation at angular velocity is included as an additional velocity component:
where PA (position angle) is the orientation of the rotation axis on the sky.
The peak line-center optical depth of a layer with HI column density , spin temperature , and velocity dispersion is
where is the Einstein spontaneous transition probability for the 21 cm transition [12], is the line frequency, and the column density is in and in cm/s. The local velocity distribution is assumed to be Gaussian:
where is the layer’s center-of-mass velocity projected onto the line of sight. The total local velocity dispersion is the quadrature sum of thermal and turbulent contributions:
where and is a free parameter. In the dense, well-shielded interiors of molecular clouds, collisional coupling and Wouthuysen–Field pumping by Ly photons drive the HI spin temperature close to the gas kinetic temperature [30] (G. B. Field 1958). In the low-density envelope, spin temperature may differ from , but the HI column density there is small, so its contribution to the modeled spectrum is limited. Therefore, we adopt the approximation .
We model the observed HI spectrum as background emission transmitted through the layered cloud. The background brightness temperature enters the far side of the cloud and is attenuated and re-emitted by each layer in turn. Denoting the brightness temperature after passing through layer as , the radiative transfer is solved iteratively from the far side to the observer:
with the initial condition . The iteration proceeds from the far side of the cloud toward the observer (), so that each layer receives the emergent brightness from all layers behind it. After the last layer the emergent brightness equals the predicted observed spectrum, which is . The HI absorption spectrum is defined as
where positive values indicate absorption. Because the cloud has a temperature gradient (warm outer layers and a cold interior), the result is not necessarily pure absorption: when the outer layers are warmer than , they contribute emission that can partially fill in or even reverse the absorption dip [11].
Workflow of hinspheres
Data Preparation
The radiative-transfer fitting loop in hinspheres requires two observed data cubes as inputs: the HI brightness-temperature cube and the background HI emission cube . The user may supply both cubes directly (e.g. from an independent background extraction), or provide only the observed data cube and use the built-in tool of hinspheres to extract the background.
In the built-in background extraction tool, the background is estimated pixel-by-pixel by fitting a high-order polynomial (default order 5) to the line wings outside the HINSA velocity range. The velocity mask that defines the absorption region is selected interactively by the user: a single pair of velocity bounds may be chosen for the entire data cube, or, for clouds with more complex kinematics, the user may pick multiple anchor positions on a 2D map and the program automatically interpolates smooth per-pixel mask boundaries by distance weighting. In addition, the user may mark extra velocity ranges to mask out other complex HI structures along the line of sight (e.g. unrelated HINSA components on the Galactic plane). Channels falling inside the HINSA mask, together with any additional excluded spectral ranges, are omitted when performing the polynomial fit. The resulting background estimate is saved as a FITS file for use by the fitting pipeline.
Fitting Algorithm
In hinspheres, the fitting process uses the background HI emission cube as a reference. It iteratively adjusts the parameters of the spherical cloud to generate simulated data cubes, which are then fitted against the observed data cube. The fitting pipeline jointly determines the cloud structure, kinematics, and HI abundance profile by minimizing the discrepancy between the model and the observed data cube. All physical parameters are normalized to before optimization. This ensures that all parameters contribute equally regardless of their physical scales, which span several orders of magnitude.
In a 2D projected map of a spherically symmetric cloud, the pixels in an annulus at impact parameter occupy an area proportional to , so equal-per-pixel weighting would result in the outer annuli dominating the cost function. We instead apply a radial weight to the squared residuals, normalized by the total weight so that the cost is independent of map size:
where is the residual at pixel (model minus observation in brightness temperature). This gives every radial annulus approximately equal statistical weight. The central pixel is assigned the weight of the innermost pixel (impact parameter set to one pixel). In hinspheres we minimize , where is the noise level of the data. The weighted residual and are computed within .
The HI abundance profile supports two encoding modes. In direct mode, each shell has an independent value, yielding free parameters. In parametric mode, the profile is unimodal: the abundance peaks at a shell with value and decreases monotonically via multiplicative factors (, one factor per shell boundary, factors in total) on both sides of the peak. This peaked structure is physically motivated: in molecular clouds, far-UV radiation photodissociates into HI at the cloud surface, while the interior is shielded and dominated by , producing a radial HI abundance profile that naturally peaks between the fully dissociated surface and the fully molecular core. The parametric mode yields continuous abundance parameters ( plus the multipliers) and a discrete peak-shell index, trading a modest increase in parameters for a physically regular profile. The algorithm performs an exhaustive grid scan, each candidate peak shell triggers an independent optimization over the continuous parameters, and the overall best solution is selected. Global optimization is performed with the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) ([13]), a derivative-free method well suited to non-convex landscapes with multiple local minima. Convergence is assessed from the step size and function-value tolerance.
Parameter Degeneracies
To illustrate the inherent parameter degeneracies of the spherical HINSA model, we run Markov chain Monte Carlo (MCMC) on a synthetic yr core whose density, temperature, and kinematic parameters are listed in Table 1. To minimize the impact of spatial smearing on the degeneracy geometry, we use a beam size of 1.0 arcmin and a pixel scale of 0.5 arcmin. The velocity resolution is 0.2 km/s. Gaussian noise with a root-mean-square (RMS) of K per channel (the noise level of the CRAFTS survey, [5]) is added to the data.
| Category | Parameter | Value |
| *Density | (cm) | |
| (pc) | 0.146 | |
| 2.0 | ||
| *Temperature | (K) | 10.0 |
| (K) | 58.0 | |
| (pc) | 0.73 | |
| *Others | (pc) | 1.46 |
| 7 | ||
| *Kinematics | (km/s) | 0.2 |
| 0.1 | ||
| (km/s) | 0.2 | |
| PA (deg) | 45.0 | |
| *Observation | Distance (pc) | 300 |
| Beam (arcmin) | 3.0 | |
| Pixel scale (arcmin) | 1.5 | |
| Velocity resolution (km/s) | 0.2 | |
| Angular radius of † (arcmin) | 16.7 | |
| Angular radius of † (arcmin) | 1.67 | |
| *Ages | (yr) | , , , |
Table 1. Physical and observational parameters of the synthetic cores.
We fix the density to the synthetic input values (, , ) and fit the remaining free parameters with MCMC. The resulting corner plot (Figure 2) uses 48 walkers and iterations, discarding a burn-in of roughly 1700 steps per walker. The Gelman–Rubin statistic satisfies for all free parameters. We use a seven-shell model in the fitting. For clarity, only the HI abundances of shells 1, 4, and 7 are shown. The three temperature parame† Angular radii are computed as at the adopted distance of 300 pc.
Figure 2. Corner plot for the 5 × 10^6 yr synthetic core. During the MCMC fitting, the density parameters are fixed to their true value. For clarity, only layers 1, 4, and 7 of the seven-layer HI abundance are shown.
, , are positively correlated. A higher or can be compensated by a larger to produce a similar overall temperature structure. Some parameters also correlate with temperature, for example is positively correlated with and is positively correlated with . It is because a joint change in temperature and HI density can maintain the same optical depth. Apart from the correlations mentioned above, most free parameters exhibit near-circular contours in the joint probability distributions, suggesting no strong degeneracy among them.
Validation on Synthetic Data
Synthetic cores and their fitting results
To validate our fitting framework, we generate 7-shell synthetic cores as in Table 1 and fit them with hinspheres. The density, temperature, and HI abundance profiles of these cores are shown in Figure 1. The four cores share the same density, temperature, and kinematic parameters. The central density and the total radius are adopted from Model 1 of P. F. Goldsmith et al. [11], while the ambient temperature K follows the interstellar radiation field (ISRF) model of J. Le Bourlot et al. [19]. The four cores have different ages, and their HI abundance follows the time-dependent chemical model of P. F. Goldsmith & D. Li [10]:
where cm s is the H formation rate coefficient on grains, s is the cosmic-ray H dissociation rate (F. F. S. van der Tak & E. F. van Dishoeck 2000), and is the local HI-to-H conversion timescale. Panel (d) of Figure 1 shows the resulting for four ages, produced by the four evolutionary stages summarized in Table 1.
We adopt an angular resolution of 3′ and a velocity resolution of 0.2 km/s, approximately matching the FAST beam and the CRAFTS survey channels [5] (D. Li et al. 2018). At the adopted distance of 300 pc, the Plummer core radius pc subtends 1.7′, marginally resolved by the 3′ beam. To mimic realistic observing conditions, we do not use a uniform constant background. Instead, the synthetic HI background is taken from an off-position spectrum in the L1574 region [43], re-gridded to the same spatial and velocity grid. This single fixed background spectrum is used for all four evolutionary ages. A CRAFTS level of noise ( K RMS per 0.2 km/s channel, [5] is added to the synthetic cores. Figure 3 shows the spatial and spectral structure of the synthetic cores. The synthetic HI spectra vary strongly with age. At the youngest stage ( yr) the HI abundance is high throughout the core, producing a deep absorption line whose central optical depth is strongly saturated, and the projected infall velocity gradient along the line of sight gives the profile a double-peaked, non-Gaussian shape. At yr the absorption remains non-Gaussian but weaker, and by and yr the declining HI abundance brings the line shape close to a single Gaussian at the CRAFTS noise level. As evolution proceeds, the HINSA absorption depth decreases, making the core appear progressively fainter in the averaged absorption map.
Figure 3. HINSA spectra and averaged absorption maps of the four synthetic cores. (a) HINSA spectra at the center (solid) and at the on the eastern side (dashed) of the simulated cores. The corresponding HINSA-free background spectra at these two positions are shown as dotted lines. (b) Averaged absorption over km/s for each synthetic core. White ‘+’ symbols mark the center and the positions.
The degeneracy between and the HI abundance arises because the HINSA optical depth only constrains the product (Equation (9)). An independent measurement of the total hydrogen column density , for instance, from dust continuum or extinction data, breaks this degeneracy by fixing the overall density normalization. To more realistically assess the potential errors of hinspheres in practical applications, we construct a synthetic map from the true density profile, add Gaussian noise mimicking the Planck 353 GHz thermal dust optical depth observations ([28]), and then fit the Plummer parameters from the noisy map. The fitted values of , , and are subsequently fixed in the hinspheres fitting. Specifically, the total hydrogen column is , with being the dust absorption cross-section per H nucleon at 353 GHz for the diffuse ISM ([28], Fig. 21). We generate a synthetic map (20 20 pixels, 3 3 pc) by projecting the Plummer density profile, convolving it to the Planck beam, and adding Gaussian noise with per-pixel , a typical value for diffuse high-latitude ISM from the Planck modified blackbody fit uncertainty maps ([28]). This corresponds to . The obtained noisy map is shown in panel (c) of Figure 1. As in Table 2, fitting this noisy map recovers all three Plummer parameters within 10% errors. The resulting density parameters are then used as fixed inputs in the subsequent hinspheres fitting.
| Parameter | Input | Fitted | 68% CI | Error |
| () | 1.60 | 1.74 | [1.44, 2.45] | +9% |
| (pc) | 0.146 | 0.143 | [0.112, 0.164] | −2% |
| 2.00 | 2.08 | [2.00, 2.14] | +4% |
Table 2. Recovery of Plummer density parameters from the synthetic map with Planck-like noise.
With the density parameters fixed, we fit the remaining 15 parameters, including three temperature parameters, peak HI abundance , six abundance multipliers, infall fraction , turbulent velocity , velocity offset , rotation velocity , and rotation position angle PA, together with the discrete peak-shell index (grid-scanned, see § 3.2). We use 50 candidate solutions per generation and at most generations for the CMA-ES fitting in hinspheres. Recovery errors for the abundance profile are reported as the unweighted mean over the seven shells of the per-shell relative errors, . The all-parameter diagnostic extends the same to the mean relative error over the seven shell abundances together with the eight scalar temperature and kinematic parameters (, , , , , , , PA).
Table 3 summarizes the fitting results. With the opacity calibration and the beam convolution included self-consistently in the forward model, the abundance profile is recovered without pathological shell errors at any stage. The all-parameter diagnostic ranges over –6.8% across the four stages, lowest for the mid-age stages (4.6% and 4.9% at and yr) and slightly higher for the young (6.8%) and oldest (6.3%) stages. The shell-averaged abundance errors grow with age, ( yr) rising to 10.4% ( yr), with the largest per-shell errors in the outer shells of the older stages (up to at yr). For the yr stage the innermost shell is recovered to within 5.4% (fitted 42.4% against the true 44.8%), the largest relative error being 13.6% in shell 3. The temperature parameters are also recovered well. The errors are 38.8%, 7.0%, 7.9%, and 2.6% for the four cores, respectively. is recovered to within 4% except for the youngest stage (13.3%), which is because of the strong optical-depth saturation in the young core center. is recovered to within 3.4% in all cases. The infall fraction , turbulent velocity , and rotation parameters are reliably recovered across all stages (). At the three older stages, the best-fit residual is 0.0285, consistent with the RMS of K of our data. The yr stage shows a higher residual (0.0784, RMS K). It is the only stage whose residual substantially exceeds the noise level.
| Stage | (%) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Temperature (K) | (K) | (pc) | (km/s) | (km/s) | (km/s) | PA (°) | (%) | (%) | Residual (K²) | |
| yr | True | 44.83 | 80.52 | 91.57 | 95.45 | 97.18 | 98.09 | 98.62 | 10.00 | 58.00 | 0.73 | 0.20 | 0.00 | 0.10 | 0.20 | 45.00 | |||
| Fitted | 42.39 | 78.99 | 79.07 | 97.09 | 99.80 | 99.90 | 100.00 | 6.12 | 56.01 | 0.63 | 0.23 | 0.00 | 0.10 | 0.20 | 45.08 | 4.1 | 6.8 | 0.0784 | |
| yr | True | 0.02 | 0.08 | 1.39 | 9.96 | 24.13 | 38.28 | 50.10 | 10.00 | 58.00 | 0.73 | 0.20 | 0.00 | 0.10 | 0.20 | 45.00 | |||
| Fitted | 0.02 | 0.08 | 1.45 | 10.83 | 26.74 | 43.39 | 57.15 | 9.30 | 57.71 | 0.71 | 0.20 | 0.00 | 0.10 | 0.20 | 45.02 | 7.9 | 4.6 | 0.0285 | |
| yr | True | 0.02 | 0.08 | 0.20 | 1.28 | 6.15 | 14.98 | 25.40 | 10.00 | 58.00 | 0.73 | 0.20 | 0.00 | 0.10 | 0.20 | 45.00 | |||
| Fitted | 0.02 | 0.08 | 0.20 | 1.40 | 6.81 | 17.07 | 29.14 | 9.21 | 57.94 | 0.72 | 0.20 | 0.00 | 0.11 | 0.20 | 45.10 | 7.6 | 4.9 | 0.0285 | |
| yr | True | 0.02 | 0.08 | 0.19 | 0.35 | 0.57 | 0.84 | 1.17 | 10.00 | 58.00 | 0.73 | 0.20 | 0.00 | 0.10 | 0.20 | 45.00 | |||
| Fitted | 0.02 | 0.08 | 0.20 | 0.40 | 0.64 | 1.00 | 1.35 | 9.74 | 57.61 | 0.70 | 0.19 | 0.00 | 0.11 | 0.20 | 45.90 | 10.4 | 6.3 | 0.0285 | |
| L1574 | Fitted | 0.03 | 0.15 | 0.22 | 0.22 | 21.79 | - | - | 0.98 | 0.54 | -0.27 | 0.00 | -0.20 | 57.98 | 7.2551 | ||||
| L1544 | Fitted | 0.00 | 0.02 | 0.03 | 0.03 | 0.77 | - | - | 11.50 | 52.85 | 0.00 | -0.10 | 0.00 | -0.27 | 64.73 | 2.0356 |
Table 3. Best-fit parameter recovery with density constraint for the synthetic cores, L1574, and L1544.
Combined Resolution–Noise Analysis
To assess how observational conditions affect parameter recovery, we perform a joint two-dimensional sweep over beam size and noise level with the density parameters fixed. We use the yr synthetic core and set , , and to the values derived in § 4.1. All remaining 15 continuous parameters are left free. We sweep seven beam sizes (, , , , , , ) and seven noise levels (0.0, 0.05, 0.10, 0.17, 0.30, 0.60, 1.0 K RMS). Since the synthetic cloud is placed at 300 pc, these beam sizes are equivalent to observing the same cloud at distances from 0.1 to 3 kpc with a fixed beam. At each beam size, the data are regridded to a pixel scale of half the beam full width at half maximum (FWHM), and the velocity channels are interpolated to 0.2 km/s. Each combination of beam and noise is run with 20 different random seeds, giving total fits.
Figure 4 shows the median relative error over all 15 fitted parameters across the 20 seeds. In Figure 5, we show the median relative errors separately for the three temperature parameters, the seven HI abundance layers, and the other parameters (collectively referred to as kinematic parameters). Overall, the parameters recovered by hinspheres show relatively low sensitivity to beam size and noise level. For a typical FAST angular resolution and a core with pc located within 1 kpc, the median error over all 15 parameters remains below 34%. For common HINSA targets with RMS noise below 0.2 K, the median error is expected to be less than 16%. The median relative error exceeds 50% only for beams of at noise levels of 0.6 K and above, or at nearly independently of the noise level (equivalent to observing the same core at distances beyond 2 kpc with FAST). With the density fixed, the temperature structure is tightly constrained at high resolution: the median error is at and stays below 8% up to and below 13% up to at CRAFTS noise, rising to 20–59% at –. The kinematic parameters are less affected by noise and resolution. They are recovered to 1–2% for beams up to at CRAFTS noise, and degrade to 20–39% at – under 1 K noise. The shell-averaged abundance error is most influenced by noise and beam sizes. Its median error is 8–9% at the fully resolved beam and grows with beam size, reaching 69–136% at depending on the noise level. Higher noise causes earlier degradation. At 0.6–1 K the error already reaches 25–30% at and rises to 40–136% at –. Even at , the error does not drop to zero but saturates at about 8%. This floor stems from the density–abundance degeneracy: because the density profile is fixed to the -map derived values (which deviate slightly from the true profile), the fit compensates for the incorrect column by adjusting and the shell multipliers. This compensation is bounded by the constraints of the fitted spectrum and cannot be fully removed.
Figure 4. Median relative recovery error averaged over all 15 fitted parameters, as a function of beam FWHM and noise RMS. The result is obtained from the yr synthetic core with the density profile fixed to the -map derived values. 20 random noise realizations are used in the calculation.
Figure 5. Same as Figure 4 but grouped by parameter family: (a) temperature structure (, , ), (b) HI abundance (seven shells), (c) kinematic parameters (, , , , PA).
Effects of Density and Temperature Constraints
As discussed in the subsections above, the strong degeneracy between total hydrogen density and HI abundance in the fitting of HI radiative transfer necessitates external constraints on the density. Moreover, the inherent degeneracy between temperature and density suggests that imposing a temperature prior may also improve the fit. In the previous analysis, we broke the density–abundance degeneracy by fixing the density parameters to values derived from the total hydrogen column density map, which successfully stabilized the hinspheres fitting but inevitably introduced systematic
errors. In this subsection, we use the yr synthetic core in Table 1 to systematically investigate how different levels of constraints on the density and temperature parameters affect the hinspheres recovery.
We consider three density constraint schemes: (i) unconstrained; (ii) constrained, where the three density parameters , , and are restricted to the intervals obtained from the map fit; and (iii) fixed, where , , and are set to the best-fit values from the map fit (identical to the approach used in the previous subsections). For temperature, we test two configurations: (i) unconstrained; and (ii) fixed , with held at its true value of 10 K for the synthetic core. In real observations, such an external constraint on could be provided by independent chemical tracers. For example, by assuming that the excitation temperature of or is representative of the core center. We thus evaluate a total of scenarios, each scenario with રસ 10 random seeds of noise realization, and summarize the results in Table 4.
| free | fixed to 10 K | |||||
| Density constraint | None | Fixed | None | Fixed | ||
| error | 95.8% | 18.0% | 9.0% | 72.0% | 8.1% | 9.0% |
| error | 409.0% | 13.4% | 2.3% | 96.7% | 10.7% | 2.3% |
| error | 69.2% | 4.4% | 4.0% | 53.9% | 3.0% | 4.0% |
| error | 16.6% | 5.4% | 6.2% | — | — | — |
| error | 0.5% | 0.2% | 0.3% | 0.2% | 0.1% | 0.1% |
| error | 40.6% | 11.3% | 3.6% | 49.5% | 9.5% | 3.2% |
| error | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% |
| 182.0% | 21.9% | 9.0% | 66.4% | 15.7% | 8.4% | |
| Residual | 0.0288 | 0.0288 | 0.0289 | 0.0288 | 0.0288 | 0.0288 |
Table 4. Recovery errors for the yr core under different density and temperature constraints. Errors are median across 10 random noise realizations. is the unweighted mean of per-shell relative errors.
The strength of the density constraint is the dominant factor governing the recovery of all physical parameters. Without any constraint, the errors on , , and are as large as 96%, 409%, and 69%, respectively, and the fit wanders wildly across the broad priors. Introducing the loose constraint reduces these errors dramatically to 18%, 13%, and 4.4%, while simultaneously the free-fall coefficient drops from 40.6% to 11.3%, and the shell-averaged abundance deviation plummets from 182% to 21.9%. This confirms that even approximate column-density priors effectively break the density–abundance degeneracy. Fixing the density exactly further reduces the abundance deviation from 21.9% to 9.0%.
The temperature constraint provides a secondary but quantifiable improvement, particularly when the density prior is only loose. Fixing to its true value, in the density-constrained case, reduces the error from 18% to 8.1%, from 4.4% to 3.0%, from 11.3% to 9.5%, and from 21.9% to 15.7%. When the density is already fixed exactly, the additional improvement from fixing is much smaller (e.g., the abundance deviation only drops from 9.0% to 8.4%), implying that the temperature prior is most valuable when the density prior is not exact. When is left free, it is recovered to within as long as the density is constrained (compared to 16.6% without a density constraint), while the outer temperature is recovered to within 0.5% in all cases (and to 0.1–0.2% when is fixed). This shows that the absorption spectrum alone provides substantial constraints on the temperature structure. The residuals remain constant at 0.0288–0.0289 across all scenarios, equal to the square of the 0.17 K RMS noise, confirming that the forward model compensates for an incorrect density by adjusting the abundance profile.
In practical applications of hinspheres, we therefore recommend that users prioritize applying density constraints. Even an approximate column-density prior derived from dust continuum or far-infrared emission (e.g., the intervals used here) suffices to reduce the recovery errors in density parameters and abundance profiles from several hundred percent to about twenty percent, representing the most critical step in breaking the density–abundance degeneracy. If a reliable independent density estimate is available, fixing the density value is also a viable option. Regarding temperature priors, constraining via excitation temperatures from chemical tracers can provide a secondary improvement when the density constraint is loose.
Effect of Rout Misestimation
The total radius of the core can be hard to constrain in observations, yet it affects the radiative-transfer calculation by setting the shell boundaries. To quantify the impact of an incorrect estimate , we run hinspheres on the yr synthetic core (true pc), sampling from to . The density profile is fixed to the -map derived values from Section 4.1 (, pc, ). For each trial, we generate 10 independent noise realizations and perform a full CMA-ES optimization.
Table 5 summarizes the median relative errors and spreads across seeds for each trial . With the correct (1.46 pc), all parameters recover to within of truth, matching the baseline results. Underestimating by more than ( pc) raises the residual within the assumed radius from 0.029 to 1.38–5.81 and produces qualitatively incorrect fits: the errors in , , and all exceed 30%. Overestimating by 23–71% (1.80–2.50 pc) yields moderate residuals (0.11–0.27), but the retrieved parameters are also systematically biased, especially , which is overestimated by 23–62%.
| (pc) | 0.73 | 1.00 | 1.20 | 1.46 | 1.80 | 2.00 | 2.50 |
| error | 133.3% 4.4% | 76.4% 39.4% | 111.1% 104.7% | 4.9% 4.8% | 62.1% 16.8% | 49.5% 1.8% | 23.3% 10.1% |
| error | 82.8% 0.0% | 33.2% 0.0% | 29.6% 0.0% | 0.8% 0.6% | 4.9% 4.6% | 1.9% 0.3% | 4.6% 0.9% |
| error | 62.3% 4.0% | 98.6% 0.0% | 97.7% 2.0% | 2.1% 3.0% | 23.9% 9.3% | 11.4% 0.7% | 11.9% 3.7% |
| error | 262.1% 4.3% | 128.4% 4.5% | 99.6% 2.7% | 5.3% 2.0% | 2.2% 9.7% | 1.0% 1.4% | 3.0% 2.0% |
| Residual | 5.8133 0.0214 | 2.4612 0.0122 | 1.3793 0.0058 | 0.0288 0.0006 | 0.2713 0.1027 | 0.1086 0.0014 | 0.1135 0.0013 |
Table 5. Parameter recovery under misestimation. Errors are median across 10 realizations.
Figure 6 compares the recovered temperature (top) and HI abundance (bottom) profiles against the true ones. The true abundance increases from shell 1 () to shell 7 (), as expected for a yr core with our Plummer-like density profile. When is underestimated ( pc), the fitter pushes the abundance peak to the outermost available shell, concentrating essentially all HI at the cloud edge while the inner shells become nearly empty (). Concurrently, the inner temperature is overestimated by a factor of 2–4 to compensate for the missing absorption, effectively erasing the expected central-cold, outer-warm temperature gradient. With the correct (1.46 pc), both profiles closely track the true curves. Overestimation ( pc) shifts the abundance peak inward to the shell near 1.46 pc. The fitted profile matches the true one for pc but drops sharply beyond, creating an additional low- envelope outside that region.
Figure 6. Temperature and HI abundance profiles recovered under different assumptions, compared to the true profiles (dashed black curves). Each profile is the median across 10 noise realizations.
The above results expose a clear asymmetry. Underestimating severely compresses the available volume, causing the temperature gradient within the true cloud radius to be flattened and forcing all HI into the outermost shell. It destroys the physical temperature structure that the HINSA diagnostic relies on. In contrast, overestimating preserves the inner temperature gradient to within a smaller error, and the extra shells beyond 1.46 pc contribute limited absorption, so the internal solution remains largely intact. Therefore, in practice, when is uncertain, we recommend that users adopt a generous upper bound rather than a tight lower bound, as underestimating the outer radius is far more damaging than overestimating it.
Application to Observational Data
We apply the hinspheres pipeline to two dark cores observed in HINSA: L1574 and L1544. We selected these two sources because their HI centers coincide with their dust centers, their HINSA structures have been carefully studied in previous works ([10, 43]), while no ring-like HI abundance distribution analogous to that of B227 was identified in either of them.
L1574 (or L1574b) is a low-mass dark core located at a distance of pc ([16]). It exhibits clear HINSA features at around 0 km/s ([10]), who found that its spectral profiles are highly consistent with those of the , , and OH molecular emission in both velocity and line width. This consistency suggests that cold HI is well mixed with the molecular gas within the core. They obtained an observed HI abundance of approximately , implying a core age on the order of to years. The core was mapped with the Arecibo 305 m telescope’s ALFA feed array as part of the observations by P. Zuo et al. [43]. Although it is located close to B227 on the plane of the sky, P. Zuo et al. [43] did not detect the central HI abundance depression seen in B227. Here, we utilize their destriped three-dimensional HI data cube (beam size 3.83′, velocity resolution 0.184 km/s). The per-channel noise we measured from line-free channels is mK.
L1544 is a well-studied prestellar core located at pc [9]. The core exhibits extremely low gas temperatures in its inner regions, with interferometric NH observations resolving a gas temperature drop from 12 K to 5.5 K within the innermost AU at the center [7]. L1544 possesses an exceptionally rich molecular line spectrum. CO isotopologues are heavily depleted toward the center, with a depletion factor of at the dust peak [4]. In contrast, species such as NH and ND remain in the gas phase throughout the core, exhibiting a high deuterium fraction [6]. L1544 hosts a variety of complex organic molecules [37, 15]. Additionally, carbon-chain molecules and cyanopolyynes have been detected, revealing the chemical complexity of the source [31, 2]. The chemical age of L1544 has been estimated using various molecular tracers and modeling approaches, yielding a wide range of values. Early estimates based on CO depletion suggested a young age of yr [4]. A. I. Vasyunin et al. [39] employed a multilayer gas-grain chemical model and found that the peak abundances of COMs in L1544 are reached at timescales of yr, corresponding to the epoch when the modeled CO depletion factor matches the observed value. In contrast, sulfur chemistry modeling by C. Vastel et al. [38] yielded a best-fit age of – yr. P. F. Goldsmith & D. Li [10] carried out a multi-species study of L1544, combining HINSA, OH, CO, CO, and CI observations. The spatial distributions of HINSA, CO, and CO are found closely correlated. Using a triaxial Gaussian model, they obtained an HI abundance of –, from which they inferred a cloud age of – yr as a lower limit. For L1544, we use HI data cube from the FAST CRAFTS survey. The data have an angular resolution of and a velocity resolution of 0.201 km/s. The nominal RMS noise of the CRAFTS data is expected to be 0.17 K [5]. However, the per-channel noise measured from line-free channels is mK. We therefore adopt this measured value.
For L1574 and L1544, we construct the total hydrogen column density map from the Planck 353 GHz dust optical depth map ( cm; Planck Collaboration et al. [28]). We then fit the map to get the Plummer density parameters (, , ; Table 6). and central coordinates of the two cores are determined from both the map and the HI data. are set to be 1.3 and 0.7 pc, respectively. The background HI emission cube was extracted using the built-in background extraction tool of hinspheres in its simple mode. For L1574, we mask -2.12–1.93 km/s and model the background by fitting a default fifth-order polynomial over a range of km/s around the line center. For L1544, we mask 5.24–7.35 km/s. Because the line-of-sight velocity structure toward L1544 is complex, to avoid contamination from the component at 3.0 km/s, we instead perform a third-order polynomial background fit over km/s around the line center. The mean HI intensity maps and line-center spectra for both cores are shown in Figure 7. We then fix the density profile and optimize the remaining parameters. In the fits, we used five radial shells for both cores.
| Core | (h m s) | (° ′ ″) | (pc) | (km/s) | (pc) | Beam (′) | (km/s) | (mK) | (cm) | (pc) | |
| L1574 | 06:08:05.0 | +18 33 36 | 300 | 0.0 | 1.3 | 3.83 | 0.184 | 50 | 0.339 | 2.63 | |
| L1544 | 05:04:17.2 | +25 12 36 | 170 | 7.0 | 0.7 | 2.9 | 0.201 | 91 | 0.078 | 2.55 |
Table 6. Observational and fitted density parameters adopted for L1574 and L1544.
Figure 7. Central-beam spectra (left) and line-center channel-averaged maps (middle and right) for L1574 (top) and L1544 (bottom). Left: observed, best-fit model, and polynomial background spectra extracted as the Gaussian-weighted mean over the synthesized beam centered on the core (3.83′ for L1574 and 2.9′ for L1544). Middle and right: observed and model cubes averaged over km/s around the fitted line-center velocity. Each map is centered on the adopted core center. The white dashed circle marks .
The best-fit parameters for both cores are listed in Table 3, and the obtained radial profiles are shown in Figure 8. On scales from 0.1 pc to , L1544 exhibits a steeper density profile than that of L1574. Its central density, cm is high, while pc remains below the data’s resolution of 0.14 pc. Therefore, its density profile is overall power-law-like, and is not sufficiently constrained. In contrast, the density profile of L1574 is closer to a Bonnor-Ebert profile, with close to its resolution of 0.33 pc. Table 3 shows that the central temperature and the envelope temperature of L1574, and the temperature transition radius of L1544, lie at the boundaries of our adopted parameter ranges (: 5–30 K, : 10–100 K, : 0.01 pc to , marked by †). The upper bound of is set to so that the temperature transition occurs inside the modeled cloud. These boundary values are formal parameters of the parametric profile rather than temperature measurements, and the physical temperature structure is the resolved profile within shown in Figure 8. From the resolution limit to , the temperatures are approximately 15.0–65.8 K for L1574 and 13.2–32.2 K for L1544. Both cores exhibit radial temperature profiles with lower values in central regions. Because the beam sizes of the two data sets are 3.8′ for L1574 and 2.9′ for L1544, corresponding to physical scales of 0.33 and 0.14 pc at their respective distances, the data constrain the temperature profile only on scales larger than the beam. Values at smaller radii, including the formal central temperature , are extrapolations of the parametric form. For example, the fitted temperature of L1544 at its 2.9′ beam, 13.2 K, represents an average over a region about 6 times larger than the innermost AU, where A. Crapsi et al. [7] resolve gas at only a few K, and is therefore not directly comparable to their value. We obtain HI abundance profiles with lower central abundances in both cores, similar to the case of B227 reported by P. Zuo et al. [43]. Previous HINSA studies (P. F. Goldsmith & D. Li [10]; P. Zuo et al. [43]) failed to detect this phenomenon in these two cores, demonstrating the necessity of our hinspheres framework. The peak HI shells lie at the outermost radius, qualitatively consistent with the inside-out HI-to-H transition picture of P. F. Goldsmith et al. [11]. For these two cores, the fitted abundance profiles span about three orders of magnitude. Among them, L1544 shows a lower central HI abundance, reaching 0.003%. Neither of these two cores shows significant infall. In the fitting, we simply set to 0.0 and 7.0 km/s. Combined with the fitted , we derive HINSA line-center velocities of −0.27 and 6.90 km/s for the two cores, respectively. The residuals of the two fits are not dominated by noise. For both cores, uncertainties in the polynomial background extraction introduce additional residuals. Moreover, as shown in Figure 7, L1574 exhibits a more elliptical morphology, which leads to a larger residual.
Figure 8. Radial density, temperature, and HI abundance profiles recovered for L1574 and L1544.
We use the fitted radial density and HI abundance profiles to calculate the chemical age of each core. Following P. F. Goldsmith & D. Li [10], the age of a shell with measured HI abundance can be obtained by inverting Equation (15). The age is finite only for , where is the equilibrium abundance. Shells with have already reached chemical equilibrium and yield only a lower limit on the age.
For L1574, all five shells have abundances above the equilibrium values, yielding chemical ages of , , , , yr, respectively. Given that each shell of a given core is expected to share a common chemical age, and that a direct arithmetic average of the shell-by-shell ages would be overly weighted by extreme values, we choose not to adopt the simple average ( yr for L1574) as the derived age. Instead, we fit a single common age to the entire radial HI abundance profile by minimizing over all shells, where is Equation (15) evaluated at the density of shell . This logarithmic objective weights every shell equally in relative terms, and is restricted to the range – yr. The quoted interval is the 16th–84th percentile range of 2000 bootstrap realizations, each of which perturbs the shell abundances by the fit residual rms in log space. The fit yields a chemical age of yr () for L1574. This value is in good agreement with the – yr range derived by P. F. Goldsmith & D. Li (2005). For L1544, not all shells are above the equilibrium abundance: the two innermost shells give ages of and yr, shell 3 has reached chemical equilibrium and yields only a lower limit of yr, shell 4 lies far below the equilibrium abundance and gives no useful age constraint, and the outermost shell gives yr. Applying the same single-age fitting method to the L1544 profile gives an overall chemical age of yr, indicating that the core is still in the HI-to-H transition phase.
Discussion
Non-Gaussianity of HINSA Profiles
The HINSA absorption profile is not intrinsically Gaussian. In the multi-layer radiative transfer framework of hinspheres, each shell absorbs and re-emits at its own spin temperature, so the effective excitation temperature seen by the observer is in general a function of velocity. When the cloud has a radial temperature gradient and the line-of-sight optical depth is non-negligible, the resulting deviates from a single Gaussian. Two independent physical effects contribute to this non-Gaussianity. First, an inward velocity field projects onto the line of sight as a radial velocity gradient, causing the HINSA to be distributed over a wider velocity range. For the moderate infall fraction adopted here (), this effect is small. Second, when the optical depth at the core center is large, the warm foreground layers no longer act as absorbers in the radiative transfer. Instead, their own emission fills in the line center, turning the single-dip absorption into a double dip [11].
To quantify the degree of non-Gaussianity across evolutionary stages, we generate noise-free synthetic cubes at ages between and yr, using the same fiducial cloud parameters as in Table 1. For each age we extract the central-beam spectrum and fit a single Gaussian to in the velocity range km/s, measuring the residual as the normalized RMS difference . We use this residual to represent the deviation of the HINSA profile from a Gaussian.
Figure 9 shows the results. For the youngest cores, the saturation-flattened spectra with double-peaked features produce a deviation of . As the cloud ages and the HI abundance decreases, the line saturation weakens and the profile becomes more Gaussian. The slight rise beyond yr is a normalization artifact: the absolute residual remains nearly constant while the peak continues to decrease toward its steady-state value, inflating the ratio. Overall, at ages greater than yr, the deviation drops to , making it possible to describe HINSA with a single Gaussian.
Figure 9. Deviation of the HINSA absorption profile from a single Gaussian as a function of chemical age. The normalized RMS residual between the central-beam spectrum and its best-fitting single Gaussian is used as a measure of this deviation, computed for ages from to yr. Vertical dashed lines mark the ages of our synthetic cores.
These results show that the younger cores undergoing the HI-to-H transition are precisely those whose profiles deviate most strongly from a single Gaussian. Given that these younger cores are the key targets for studying the HI-to-H transition in molecular clouds, the need for our hinspheres tool is clear. By contrast, for clouds near or at chemical equilibrium, where the HI abundance is low and the profile approaches a Gaussian, the conventional approach remains applicable.
Pixel-by-Pixel Gaussian Fitting
Using the synthetic cores in § 4.1, we compare the hinspheres results with the pixel-by-pixel Gaussian fitting approach widely used in HINSA studies (D. Li & P. F. Goldsmith 2003). For each pixel, the absorption spectrum is fitted with a Gaussian profile to extract the peak amplitude , central velocity , and velocity dispersion . Unlike D. Li & P. F. Goldsmith (2003), who have to re-construct by fitting a polynomial across the narrow absorption feature, the background is known exactly from the setup for our synthetic cores. This constitutes a best-case baseline for the pixel-by-pixel Gaussian method. Later improvements (M. Krčo et al. 2008) use molecular-line templates and second-derivative spectra to constrain the background, reducing the ambiguity inherent in the polynomial fit, but the underlying inversion of the absorption profile, in which the HINSA feature is treated as a single Gaussian component, remains the same.
Since there is no foreground component for our synthetic cores, we apply two-component radiative transfer fitting to every pixel of these cores. Under the two-component radiative transfer comprising only the background HI emission and the dark cloud, the observed brightness temperature at velocity is
where is the HI spin temperature. Rearranging gives the optical depth at the line center,
We adopt K, a representative value for cold HINSA gas within the 10–25 K range reported by D. Li & P. F. Goldsmith (2003). The HI column density is then obtained from
with , the Gaussian FWHM (D. Li & P. F. Goldsmith 2003, Equation 13). This formula is equivalent to the standard relation evaluated for a Gaussian line profile: since and , the coefficient becomes .
Combining the resulting map with our derived map (see § 4.1) yields the two-dimensional projected abundance , where is the total hydrogen column. For studies using the pixel-by-pixel 2D fitting approach, it is usually difficult to recover the three-dimensional abundance . Therefore, they typically treat as the derived HI abundance for subsequent analysis [34, 43] (D. Li & P. F. Goldsmith 2003; M. Krčo et al. 2008; M. Krčo & P. F. Goldsmith 2010). Using the resulting distribution, we derive the radial abundance profile and present it in Figure 10. The figure also shows the true 3D radial abundance and the hinspheres-recovered 3D profile for all four evolutionary stages.
Figure 10. True and fitted radial abundance profiles for the four synthetic cores. Here the 3D volume abundance is and the 2D projected column abundance is , where and are the total hydrogen-nucleus volume and column densities. Black solid lines show the true 3D volume abundance. Gray lines show the 3D volume abundance obtained with hinspheres. Blue solid lines show from pixel-by-pixel single-Gaussian fitting, and blue dashed lines show its inverse-Abel deprojection back to the 3D volume abundance.
As shown in the figure, the pixel-by-pixel Gaussian approach systematically underestimates the peak abundance and smooths the radial gradient. For the youngest core, the true abundance rises from at the innermost shell to near unity at 1.46 pc. The radially averaged 2D abundance peaks at only at the outermost bin, which is a factor of 13 below the true value at the same radius. At the oldest stage, the HI abundance spans two orders of magnitude, from at the core to in the outermost shell. The 2D profile, however, is only – and is much flatter than the true profile, overestimating the abundance in the central part and underestimating it in the outermost shell. In real observations, owing to the complex morphology of the core, relatively high noise, and background-fitting errors, this tiny 0.001–0.003 abundance gradient can easily be washed out, making it impossible to observe the ring-like distribution of HI abundance. By contrast, the fitting results of hinspheres recover the full radial trend. Even the innermost shell of the yr core, whose line-center opacity is the largest of any shell, is recovered to within .
The systematic bias of the 2D method has three physical origins. The first is saturation. In young cores the inner shells have high HI density ( for the yr core), giving a cumulative line-center optical depth toward the center. Each layer along the line of sight both absorbs and re-emits at its own spin temperature. The cold, optically thick interior absorbs a significant part of the background radiation and lowers the brightness temperature transmitted to the foreground layers. The warm, optically thinner foreground layers can then contribute net emission if their spin temperature exceeds this transmitted brightness temperature, partially filling in the absorption dip. The observed line-center brightness is therefore a mixture of the transmitted background and the foreground emission, rather than the pure absorption signal of the gas.
The pixel-by-pixel method models the cloud as a single isothermal slab ( K) and inverts the measured amplitude through Equation (17). Because the warm foreground raises the observed brightness above what the cold interior alone would produce, the absorption dip is shallower than the single-slab model expects. As a result, the maximum recoverable from Equation (17) is at K ( at K, at K), regardless of the true value. The derived column density therefore saturates at –, far below the Planck , keeping below at all radii.
Even when the optical depth is moderate and the line shape is close to Gaussian, the 2D projected abundance is a column-weighted average over all shells along each line of sight. For a sight line through the cloud center, the HI-rich outer layers contribute long path lengths at every impact parameter, pulling the recovered abundance at inner radii up toward the high outer-shell values. At the largest impact parameters the sight line reaches only the outermost shell and projection contamination is negligible. The residual underestimate there is set by the single- assumption discussed below.
The pixel-by-pixel method assumes a single representative (here K) for all velocity channels. In a cloud with a radial temperature gradient, the spin temperature of the absorbing column is in fact velocity-dependent: line-center channels probe deeper, colder layers while the wings sample warmer outer gas. The assumed therefore does not represent the true radially varying excitation, introducing a systematic offset in the derived and . This effect is secondary compared with saturation and projection mixing, but it contributes to the residual underestimate at large impact parameters where the optical depth is moderate.
The 2D projected abundance can in principle be improved by deprojection. The inverse Abel transform converts the projected column profile of a spherically symmetric cloud into a volume profile without assuming a particular radial functional form ([29, 42]). We apply it separately to and and combine into (blue dashed line in Figure 10). The deprojection does sharpen the radial gradient compared with the flat 2D profile, but it cannot fully recover the true abundance because the input map itself is already compromised by saturation and the single- assumption. For the yr core, the deprojected inner abundance remains a factor of below the true value. For the yr core, the recovered profile stays flat at – (shell-averaged relative error ), barely changed from the 2D result. The Abel formula is also ill-conditioned: the volume density depends on the derivative over all , so noise and truncation errors at large radii propagate toward the center where the signal is weakest.
To assess how these systematic biases translate into errors on the inferred chemical age, we compare the ages derived from hinspheres and the Gaussian-based methods with the true ages of the synthetic cores in Figure 11. We consider a shell to have reached equilibrium when at least of its convertible HI at the corresponding density has been converted. For the hinspheres results in the three older cores, the method reasonably well recovers the corresponding HI abundances regardless of whether a specific shell reached equilibrium. Consequently, the inferred ages of the various shells within the same core remain similar to the true age. In the outer shells of the oldest core, the fitted abundances lie above the plotted curves (up to above the true abundances, see Table 3), yet these shells are still at equilibrium. The reason is that our hinspheres fitting adopts densities derived from our -map. Density errors from fitting this map result in adopted densities being lower than the true values at the outer shells. Since the equilibrium HI abundance scales as (see Equation (15)), both the fitted abundance and the equilibrium value are raised. Thus, this offset merely shifts the data point vertically relative to the true-density curve without changing its equilibrium status. For the yr core, because its is relatively close to 1, hinspheres yields underestimated ages for the three outermost shells, while the ages calculated for the four inner shells remain close to yr. The pixelby-pixel Gaussian method yields large age errors for the three younger cores, with inferred ages spreading over – yr regardless of their true ages, making the age inference for these cores highly uncertain. The inverse Abel correction narrows this spread slightly. However, for the yr core, both Gaussian-based methods correctly identify the fact that the core has reached equilibrium.
Figure 11. HI abundance evolution and inferred chemical ages derived from hinspheres and two Gaussian-based methods. (a) HI abundance evolution at the densities of the seven shells of our fiducial model. Colored dashed vertical lines mark the true ages of the four synthetic cores, and colored symbols show the hinspheres results. Curves and symbols sharing the same shell index refer to the same shell at different densities: curves use the true density, while fitted abundances reference the -map density adopted in the fit. This leads to a small vertical offset between the curves and the symbols due to the density normalization. Circles denote shells with an invertible age, right-pointing triangles denote shells that have reached equilibrium ( of convertible HI converted), and left-pointing triangles denote shells with ( converted). For clarity, right-pointing triangles for shells that truly reached equilibrium are plotted at their corresponding true ages. (b) Inferred chemical age for each core and method (hinspheres, Gaussian, and Gaussian after inverse Abel correction). All shells of a given core and method share the same horizontal position, with more transparent circles indicating lower-density shells. Shells correctly identified as equilibrium are shown as up-triangles at the core’s true age. Shells claimed to be at equilibrium but not truly reached appear in the upper row. Shells with appear as down-triangles in the lower row. Dashed horizontal segments mark the true age of each core, and numbers indicate the shell counts when triangle markers overlap.
In summary, the pixel-by-pixel Gaussian method’s bias is dominated by optical-depth saturation at young stages and by projection mixing at later stages, with the single- assumption playing a secondary role throughout. More fundamentally, this approach presupposes that the HINSA feature is a pure absorption dip, whereas in reality each layer both absorbs and re-emits. The conventional approach is therefore reliable only when the HINSA profile is close to Gaussian, that is, when the cloud is near chemical equilibrium and the line-center optical depth is small. In practice, observers can assess this by inspecting the absorption profile: a clean, symmetric single-dip shape indicates that the single-Gaussian inversion is applicable, while a double-peaked, flattened, or otherwise non-Gaussian profile signals serious bias. For such sources, forward multi-shell radiative-transfer fitting as implemented in hinspheres is necessary.
Applicability and Limitations
The comparisons above demonstrate that multi-shell radiative-transfer fitting substantially improves over the single-Gaussian inversion, particularly for young cores where the HINSA profile departs strongly from a Gaussian shape. hinspheres achieves this by modeling the cloud as a spherically symmetric, multi-layer system with parametric density and temperature profiles. These assumptions enable efficient, physically motivated fitting, but they also define the regime in which the results can be trusted. Real cores may deviate from spherical geometry, and the density–abundance degeneracy and the sensitivity to the outer radius impose further constraints.
Our forward model assumes spherical symmetry (§ 2). L1574 and L1544 approximately satisfy this criterion, though L1574 shows mild ellipticity. Both these cores are relatively isolated, low-mass cores with centrally concentrated HINSA structures. The pipeline recovers physically meaningful radial profiles for them, and the chemical ages derived from the abundance profiles are reasonable. The clearest counter-example is B227, where the dust-emission peak and the ring-like HINSA center are offset by several arcmin [43 {xrefext}]Fig. 1), making a single spherically symmetric model inappropriate. This prevents us from fitting B227 with hinspheres, even though P. Zuo et al. [43] has already identified its ring-like HI abundance structure using a pixel-by-pixel single-Gaussian approach. In addition to cases where the dust emission peak and the HI core are offset, cores with pronounced morphological asymmetry (e.g., elongated or filamentary morphology) or those in complex environments (e.g., a one-sided illuminating radiation field) also break the spherical-symmetry assumption and therefore cannot be well described by the parametric model implemented here.
Beyond the geometric requirement, the density-abundance degeneracy is the dominant source of parameter uncertainty. In § 4.3, without any density prior, reaches , while even a loose Planck constraint reduces this to . This degeneracy is intrinsic to the radiative transfer of the HI line. The density profile must therefore be anchored by dust continuum, dust extinction, or CO isotopologue data before the HI abundance can be recovered meaningfully.
Finally, the outer radius must be correctly estimated. § 4.4 showed that underestimating by more than is catastrophic, while overestimating by up to produces only moderate biases. When is uncertain, a generous upper bound should therefore be adopted.
If one or more of these conditions is violated, the fit residuals increase and the derived abundance profiles become unreliable. For such sources, axially symmetric or fully three-dimensional models, potentially coupled with non-LTE line transfer, would be more appropriate. When all of these conditions are satisfied, however, hinspheres can yield reasonably reliable results.
Summary
We have presented hinspheres, an open-source Python pipeline for spherically symmetric radiative transfer modeling and fitting of HINSA. The package models a cloud as concentric shells with parametric Plummer density and temperature profiles, a discrete radial HI abundance distribution, and optional infall and rigid-body rotation velocity fields. Layer-by-layer radiative transfer is solved through a three-dimensional data cube, and a derivative-free CMA-ES optimizer jointly determines the cloud structure, kinematics, and HI abundance profile by minimizing a radially weighted residual between the model and observed data cube.
The pipeline is validated on synthetic HINSA spectra generated from time-dependent chemical models of four evolutionary stages spanning to yr. Application to the real dark cores L1544 and L1544 demonstrates recovery of radially varying HI abundance profiles and chemical ages consistent with independent estimates. Key results include:
With an independent column-density constraint from column density mapping, the Plummer density parameters are recovered within , and the CMA-ES fit recovers the remaining 15 parameters (temperature structure, seven-shell HI abundance, kinematics) with a mean relative error of – across the four evolutionary stages.
A combined resolution–noise grid with beam–noise combinations and 980 total fits shows that for a core within 1 kpc observed at FAST resolution, the median recovery error of all 15 parameters remains below 16% for RMS K under our synthetic conditions, and only exceeds 50% for beams of or larger at RMS K, or at nearly independently of the noise level.
A systematic study of density and temperature constraint schemes demonstrates that the density–abundance degeneracy is the dominant source of uncertainty. Without any density prior, reaches 182%, while even a loose Planck constraint reduces it to , and fixing the density reduces it further to . A temperature prior provides secondary improvement, most valuable when the density constraint is only approximate.
Underestimating the total cloud radius by more than is catastrophic, while overestimating by up to 71% produces only moderate biases. When is uncertain, a generous upper bound should therefore be adopted.
HINSA profiles of young, HI-rich cores ( yr) deviate strongly from a single Gaussian due to line-center saturation and the projected velocity gradient, rendering single-Gaussian analysis unreliable for these objects.
A comparison with the conventional pixel-by-pixel single-Gaussian method reveals that the two-dimensional approach suffers from three systematic biases. Optical-depth saturation caps the recoverable column density when the line center is optically thick. Projection mixing causes shells of different abundances to be superposed along each line of sight. The single spin-temperature assumption ignores the velocity-dependent excitation structure. The method remains applicable when the cloud is near chemical equilibrium and the HINSA profile is close to Gaussian, but for young, HI-rich cores whose profiles deviate strongly from a Gaussian, forward multi-shell radiative transfer fitting as implemented in
hinspheresis necessary.
Application of
hinspheresto L1574 and L1544 yields HI abundance profiles spanning about three orders of magnitude and single-age chemical fits of yr and yr, respectively, both consistent with the inside-out HI-to-H transition picture.
hinspheres is publicly available at https://github.com/olozhika/hinspheres under the MIT license.
Acknowledgments
This work is supported by National Natural Science Foundation of China (NSFC) grants Nos. 12588202. We thank Professor Diego Mardones for his insightful discussions.
References
- [1]Bergin, E. A., & Tafalla, M. 2007, ARA&A, 45, 339, doi: 10.1146/annurev.astro.45.071206.100404DOI
- [2]Bianchi, E., Remijan, A., Codella, C., et al. 2023, ApJ, 944, 208, doi: 10.3847/1538-4357/acb5e8DOI
- [3]Bolatto, A. D., Wolfire, M., & Leroy, A. K. 2013, ARA&A, 51, 207, doi: 10.1146/annurev-astro-082812-140944DOI
- [4]Caselli, P., Walmsley, C. M., Tafalla, M., Dore, L., & Myers, P. C. 1999, ApJL, 523, L165, doi: 10.1086/312280DOI
- [5]CHINA Survey Team. 2024, The CRAFTS HI Narrow All-sky (CHINA) Survey,, http://groups.bao.ac.cn/ism/CRAFTS/202404/t20240411_774079.html
- [6]Crapsi, A., Caselli, P., Walmsley, C. M., et al. 2005, ApJ, 619, 379, doi: 10.1086/426472DOI
- [7]Crapsi, A., Caselli, P., Walmsley, M. C., & Tafalla, M. 2007, A&A, 470, 221, doi: 10.1051/0004-6361:20077613DOI
- [8]Draine, B. T. 2011, Physics of the Interstellar and Intergalactic Medium Field, G. B. 1958, Proceedings of the IRE, 46, 240, doi: 10.1109/JRPROC.1958.286741
- [9]Galli, P. A. B., Loinard, L., Bouy, H., et al. 2019, A&A, 630, A137, doi: 10.1051/0004-6361/201935928DOI
- [10]Goldsmith, P. F., & Li, D. 2005, ApJ, 622, 938, doi: 10.1086/428032DOI
- [11]Goldsmith, M. F., Li, D., & Krčo, M. 2007, ApJ, 654, 273, doi: 10.1086/509067DOI
- [12]Gould, R. J. 1994, ApJ, 423, 522, doi: 10.1086/173830DOI
- [13]Hansen, N. 2016, in arXiv:1604.00772, doi: 10.48550/arXiv.1604.00772
- [14]Hollenbach, D., & Salpeter, E. E. 1971, ApJ, 163, 155, doi: 10.1086/150754DOI
- [15]Jiménez-Serra, I., Vasyunin, A. I., Caselli, P., et al. 2016, ApJL, 830, L6, doi: 10.3847/2041-8205/830/1/L6
- [16]Kawamura, A., Onishi, T., Yonekura, Y., et al. 1998, ApJS, 117, 387, doi: 10.1086/313119DOI
- [19]Le Bourlot, J., Pineau Des Forets, G., Roueff, E., & Flower, D. R. 1993, A&A, 267, 233
- [22]Li, Y., Xu, Y., Xu, J.-L., et al. 2022, ApJL, 933, L26, doi: 10.3847/2041-8213/ac7b7cDOI
- [23]Liu, B., Li, D., Staveley-Smith, L., et al. 2019, ApJ, 887, 242, doi: 10.3847/1538-4357/ab54cdDOI
- [24]Liu, X., Wu, Y., Zhang, C., et al. 2022, A&A, 658, A140, doi: 10.1051/0004-6361/202141477DOI
- [25]Luo, G., Li, D., Zhang, Z.-Y., et al. 2024, A&A, 685, L12, doi: 10.1051/0004-6361/202450067DOI
- [26]Marsh, K. A., Griffin, M. J., Palmeirim, P., et al. 2014, MNRAS, 439, 3683, doi: 10.1093/mnras/stu219DOI
- [27]McKee, C. F., & Ostriker, E. C. 2007, ARA&A, 45, 565, doi: 10.1146/annurev.astro.45.051806.110602DOI
- [28]Planck Collaboration, Abergel, A., Ade, P. A. R., et al. 2014, A&A, 571, A11, doi: 10.1051/0004-6361/201323195
- [29]Roy, A., André, P., Palmeirim, P., et al. 2014, A&A, 562, A138, doi: 10.1051/0004-6361/201322236DOI
- [30]Shaw, G., Ferland, G. J., & Hubeny, I. 2017, ApJ, 843, 149, doi: 10.3847/1538-4357/aa7747DOI
- [31]Snell, R. L., Schloerb, F. P., Young, J. S., Hjalmarson, A., & Friberg, P. 1981, ApJ, 244, 45, doi: 10.1086/158683DOI
- [32]Sun, S., Wang, K., Liu, X., & Xu, F. 2024, ApJL, 973, L27, doi: 10.3847/2041-8213/ad77ceDOI
- [33]Tafalla, M., Myers, P. C., Caselli, P., & Walmsley, C. M. 2004, Ap&SS, 292, 347, doi: 10.1023/B:ASTR.0000045036.76044.bdDOI
- [34]Tang, N.-Y., Zuo, P., Li, D., et al. 2020, Research in Astronomy and Astrophysics, 20, 077, doi: 10.1088/1674-4527/20/5/77DOI
- [35]Tielens, A. G. G. M. 2005, The Physics and Chemistry of the Interstellar Medium
- [37]Vastel, C., Ceccarelli, C., Lefloch, B., & Bachiller, R. 2014, ApJL, 795, L2, doi: 10.1088/2041-8205/795/1/L2DOI
- [38]Vastel, C., Quénard, D., Le Gal, R., et al. 2018, MNRAS, 478, 5514, doi: 10.1093/mnras/sty1336DOI
- [39]Vasyunin, A. I., Caselli, P., Dulieu, F., & Jiménez-Serra, I. 2017, ApJ, 842, 33, doi: 10.3847/1538-4357/aa72ecDOI
- [40]Xia, J., Tang, N., Bisbas, T. G., et al. 2026, Science China Physics, Mechanics, and Astronomy, 69, 269513, doi: 10.1007/s11433-025-2940-7DOI
- [41]Xing, Y., Li, D., Yue, N., et al. 2026, MNRAS, 550, stag1311, doi: 10.1093/mnras/stag1311DOI
- [42]Zhang, Y., Liu, Z., An, W., Ping, Y., & Zhong, J. 2023, ApJ, 952, 83, doi: 10.3847/1538-4357/acd75eDOI
- [43]Zuo, P., Li, D., Peek, J. E. G., et al. 2018, ApJ, 867, 13, doi: 10.3847/1538-4357/aad571DOI










