Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SJICube.wcs.pixel_to_world() always returns SkyCoord in the Helioprojective frame at the beginning of the observation #43

Open
yjzhu-solar opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yjzhu-solar
Copy link

The pixel_to_world() method returns SkyCoord defined in the Helioprojective frame when the observation started instead of the Helioprojective frames when individual exposures were made.

irispy_cube = irispy.io.read_files("../../src/IRIS/20221024/1904/iris_l2_20221024_190447_3643101203_SJI_1400_t000.fits")
irispy_cube.wcs.pixel_to_world(182,193,230)

returns

[<SkyCoord (Helioprojective: obstime=2022-10-24T19:04:49.770, rsun=695700.0 km, observer=<HeliographicStonyhurst Coordinate for 'earth'>): (Tx, Ty) in arcsec
     (-415.14377593, 193.85138739)>,
 <Time object: scale='utc' format='isot' value=2022-10-24T19:21:32.420>]

Note that the exposure was made at 2022-10-24T19:21:32.420 but the Helioprojective frame was defined at 2022-10-24T19:04:49.770.

@nabobalis nabobalis added the bug Something isn't working label Apr 24, 2024
@Cadair
Copy link

Cadair commented Apr 30, 2024

I am not actually sure there is a way to do this at the moment. We have the same issue with the DKIST WCSes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants