The numerical prefixes of the code and data files are consistent with the serial numbers of the figures in the main text.  
The prefixes 1-3 represent Figures 1 to 3.
The prefixes E1-E6 represent Extended Data Figure 1-6.

The same set of data may be applied in different codes. For example, the E6 code uses the X-ray data of E4.
When running the code, all data files can be simply copied to the code folder.

To run the notebooks, the following Python packages are required.
### Required Packages
*   **numpy**: For numerical computations.
*   **matplotlib**: For plotting and visualization.
*   **scipy**: For interpolation and image processing.
*   **pandas**: For data manipulation.
*   **astropy**: For astronomical data handling (FITS, WCS, Units).
*   **naima**: For derivation of non-thermal particle distributions.

############################# The function of each code ###########################

1_map.ipynb: LHAASO skymap shown in Figure 1 of the main text. FITS files of skymaps for different energy bands plotting are located in the data/ folder and are labeled with prefix 1.

2_FluxPoint.ipynb: Gamma-ray spectrum of LHAASO J1849-0002 shown in Figure 2 of the main text. WCDA and KM2A spectrum data points are located in the data/ folder and are labeled with prefix 2.

3_Eta_distribution.ipynb: Figure 3 of the main text.

E1_EcutUplim.ipynb: Test of the high-energy cutoff energy of the spectrum shown in Extended Data Figure 1 of the main text.

E2_Xray_raidial_profile.ipynb: Chandra radial profile shown in Extended Data Figure 2 of the main text. The data points and the PSF simulation results for plotting are located in the data/ folder and are labeled with prefix E2.

Extended Data Figure 3 of the main text can be plotted using DS9 with the image file 'Chandra_map.img' located in the data/ folder. The circles marking different regions can be plotted using DS9 are provided in the 'Chandra_region_plot.reg' file located in the data/ folder.

E4_Xray_Spectrum.ipynb: X-ray spectra from different regions of the PWN shown in Extended Data Figure 4 of the main text. The X-ray data of this work and previous study (Kim et al.(2024)) located in the data/ folder and are labeled with prefix E4.

E5_Flux_absorb.ipynb: Spectrum of LHAASO J1849-0002 corrected for the absorption shown in Extended Data Figure 5 of the main text. The absorb-corrected data points are located in the data/ folder and are labeled with prefix E5.

E6_SED_fit.ipynb: Fitting to the multiwavelength spectrum of the PWN of PSR J1849-0001 shown in Extended Data Figure 6 of the main text. The data points are located in the data/ folder with prefix E6. And the data points of Kim et al.(2024) are also located in the data/ folder with prefix E4.

E7_spindown.ipynb: Extended Data Figure 7 of the main text.
