Model magnetopause construction

Model magnetopause projection

20-21/02/25
In order to verify the position of the simulated magnetopause in the pictures (the shue model with the correct parameters is not a good fit) we need to extract the 3D surface from the 3Dcubes and project it in our FOV.

1st approximation method - Principle: There is not x-ray emission inside the magnetosphere :

  1. Find 0 (1E-6) emissivity contours for z and y slices
    Pasted image 20250220143537.png|300

  2. Convert them into polar and combine in one array. We will not take into account asymmetries so we will fit for both directions at the same time. We fit the shue model and get the r0 and α for the best fit (blue line)

  3. We define a function to minimize with scipy to approximate the corresponfing bz, vx and n / Dp of the shue model parameters. We find: Bz = 10nT, vx = 800km/s and Dp = 12.29 (green line)
    Pasted image 20250221143339.png|300

  4. Insert these parameters into 3D view and recompute the shue model surface. Resulting model projection:
    Pasted image 20250221144411.png|200
    This indicated that the magnetopause may be indeed on the brightest arc or close to it. A better model of the MHD magnetopause needs to be inserted to know with percision.

Fitting the Lin model

24-28/02/25
The fit of the Shue model is not sufficient to confidently correlate the maximum emissivity with the magnetopause position (the fit is not reliable). At the same time the black line seems to be in the region between the two intensity peaks (a bit outside the maximum intensity) while the fit also overestimates the radius for many angles. This is a good indication that we need a better description of the magnetopause to accurately characterize the correlation.
We can do that by fitting the Lin model to the two slices, computing the 3D surface, and project it according to the attitude of the satellite. While trying to fit the Lin model several problem arose:

Extracting the surface from the model

Using the definitions provided in Andrew Read's paper and the code provided by here. The resulting cuts of the emissivity cubes for θ=90° and ϕ=90°, as well as the radius of the maximum emissivity is shown below:
Pasted image 20250505100458.png
To project this into the images and compare with the maximum intensity detected, we need to modify the Coordinate transformation from GSE to SXI function to work for a random numerical surface.