Hi,
I'm using the following versions of sunpy and astropy
print(sunpy.__version__)
3.1.5
print(astropy.__version__)
5.0.2
print(matplotlib.__version__)
3.5.1
I have SDO AIA 193 and Hinode XRT Be Thick fits files for a limb event. My aim is to over-plot the two and I seem to have hit a problem.
The steps I've followed are as follows:
Tested composite map creation and over-plotting using the sunpy sample data (AIA and RHESSI). Everything worked as expected.
Checked the metadata of the sunpy sample RHESSI data and compared with the Hinode XRT data I downloaded. The metadata were compared because there was no sunpy sample data for XRT and I wanted to make sure that I had included all the necessary information before attempting any plotting.
I saw that I needed to add a few keywords to the Hinode XRT header, which I did [this is after prepping both AIA and XRT in SSWIDL using "aia_prep" and "xrt_prep", respectively]:
Header keywords that were missing from the Hinode XRT fits and were subsequently included are dsun_obs, hglt_obs, hgln_obs, crln_obs, crlt_obs, rsun_obs, rsun_obs, rsun_ref
Created the respective maps
Selected a set of coordinates for an ROI
xlims_world = [797, 905]*u.arcsec
ylims_world = [-468, -356]*u.arcsec
Bottom Left and Top Right coords for each of the maps
blc1 = SkyCoord(xlims_world[0],ylims_world[0], frame=mapBeThick.coordinate_frame)
trc1 = SkyCoord(xlims_world[1],ylims_world[1], frame=mapBeThick.coordinate_frame)
blc2 = SkyCoord(xlims_world[0],ylims_world[0], frame=map193.coordinate_frame)
trc2 = SkyCoord(xlims_world[1],ylims_world[1], frame=map193.coordinate_frame)
SubMaps
subBeThick = mapBeThick.submap(blc1, top_right=trc1)
sub193 = map193.submap(blc2, top_right=trc2)
Plotted them side-by-side [attached figure "XRT-AIA.png"]
Over-plotted (referring the example from
fig=plt.figure()
ax1 = fig.add_subplot(111, projection=subBeThick)
subBeThick.plot(axes=ax1, cmap='Blues')
sub193.plot(axes=ax1, autoalign=True,alpha=0.5)
plt.show()
The unfortunate-looking plot is attached [ " overplotXRTAIA.png " ]
The result is the same when the reference frame is changed from subBeThick to sub193
[ "overplotAIAXRT.png" ]
The other issue was these "over-plots" failed to close in the normal way and only responded to a Keyboard Interrupt.
The figures are attached.
I would really, really like some help !
Thanks !
Regards,
Sudha