README

This repository contains the plotting and data processing codes used to reproduce the figures in the main text of our paper.

Data Access & Contact:
If you require the relevant data from the Supplementary Information, please contact us via email at guozx@nao.cas.cn.

========================================================================
CODE DESCRIPTIONS
========================================================================

1. plotfig1.ipynb
- This code is used to plot our observational data.

2. plotfig2.ipynb
- In this figure, we compare different models, including three morphologies and two metallicity profiles.
- The data for this plot is generated by running plotfig3.ipynb, sim_bulge.ipynb, and sim_rot.ipynb. Please ensure those are executed first.

3. plotfig3.ipynb
- This code processes our fiducial model using the data file "sim-disk.hdf5" (located in the data directory).
- Because this code involves random processes, the results may vary each time it is run. But it cannot make the [Fe/H]-Ly correlation disappear.

4. plotfig4.ipynb
-  We only provide the metallicity profiles for three galaxies here.
-  If you need the original MaNGA data, please feel free to contact us.

5. sim_bulge.ipynb and sim_rot.ipynb
- These files function similarly to plotfig3.ipynb.
- They are used to process the model files "sim_bulge.hdf5" and "sim_rot.hdf5" respectively.

========================================================================
DATA DESCRIPTIONS
========================================================================
1. Sgr_members.csv
-If you use our Sgr catalog, please cite both this paper and the following reference:
  Yang (2019), Astrophys. J. 886, 154.

2. disk_ini.hdf5, bulge_ini.hdf5, rot_ini.hdf5
- These are the initial condition files of our simulations. 
- No rotation or translation has been applied to the particles in these files.

3. sim_disk.hdf5, sim_bulge.hdf5, sim_rot.hdf5
- These files represent specific snapshots from our simulation data. 
- At these snapshot steps, the position and velocity of the simulated core are close to the observed position and velocity of the Sgr (Sagittarius) core.

4. potential_static.ini
- This is the parameter file containing the Milky Way (MW) gravitational potential used in our simulations.