suncast-org / pyAMPP

MIT License
0 stars 4 forks source link

A case of AR where the map is damaged #12

Open vit1-irk opened 1 month ago

vit1-irk commented 1 month ago

In some rare cases the magnetic field view has a damaged map. Take a look at this picture:

Снимок экрана от 2024-10-04 22-24-05

The code for box creation is:

#!/usr/bin/env python3

import astropy.time
from astropy.coordinates import SkyCoord
from sunpy.coordinates import Heliocentric, Helioprojective,get_earth
import astropy.units as u

from PyQt5.QtWidgets import QApplication
app = QApplication([])
from pyampp.gxbox.gxbox_factory import GxBox

time = astropy.time.Time('2023-07-13T00:20:00')
box_origin = SkyCoord(-794 * u.arcsec, 357 * u.arcsec, obstime=time, observer="earth", frame='helioprojective')
observer = get_earth(time)
box_dimensions = u.Quantity([285, 142, 90]) * u.Mm
box_res = 300*u.km

gxbox = GxBox(time, observer, box_origin, box_dimensions)
gxbox.show()
app.exec_()

I don't exactly understand what's wrong here. Tried different resolutions as well.

sageyu123 commented 1 month ago

Thanks. I think I found the bug. I’ll fix it in the next update. @vit1-irk