import sunpy.coordinates
causes bug in generating synthetic raster images
#3
Labels
bug
Something isn't working
Though
sunpy
is not a required package foreuispice_coreg
, I personally often use some handy functions insunpy.coordinates
, including thepropagate_with_solar_surface()
context manager. However, by importingsunpy.coordinates
, it will change the output behaviors ofWCS.pixel_to_world()
if it is in helioprojective coordinates. For example:gives the following without
sunpy.coordinates
Note that the output is a
list
with a length of 3 (x,y,t). On the other hand, withsunpy.coordinates
the output will be organized intoSkyCoord
objects, so the length of the output list becomes 2 (SkyCoord, t).This difference will cause bugs in indexing the helioprojective longitudes and latitudes in
SPICEComposedMapBuilder._prepare_spectro_data()
in line 234 ofmap_builder.py
:It would be helpful to notify the users either do not import
sunpy.coordinates
in the python file or jupyter notebook using theSPICEComposedMapBuilder
or change the code accordingly.The text was updated successfully, but these errors were encountered: