Show two cameras¶
This documentation briefly shows how to draw the data taken with two different bands. Before seeing this, we highly recommend reading the documentation for the read.FISS and align.alignOffset.
First, read two FISS data, then put these two image.dualBand. Note that you should change your matplotlib backend to an interactive backend using the magic function of '%matplotlib'.
In [ ]:
import fisspy
fa = './FISS_20140603_170841_A1_c.fts'
fb = './FISS_20140603_170901_B1_c.fts'
A = fisspy.read.FISS(fa)
B = fisspy.read.FISS(fb)
db = fisspy.image.dualBand(A,B)
0
/Users/jhkang/miniforge3/envs/fisspydocs/lib/python3.9/site-packages/fisspy/image/interactive_image.py:502: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown helpFig.show() /Users/jhkang/miniforge3/envs/fisspydocs/lib/python3.9/site-packages/fisspy/image/interactive_image.py:589: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown self.fig.show()
Then, you can check the aligned image of the data set. Similar to the FISS.imshow, you can interactively handle this figure. The table below summarizes the interactive keys.
Keys | Description |
---|---|
ctrl/cmd+h | Return to original setting position. |
right | Change the spectrograph and profile at the pixel of x+1. |
left | Change the spectrograph and profile at the pixel of x-1. |
up | Change the profile at the pixel of y+1. |
down | Change the profile at the pixel of y-1. |
ctrl/cmd+right | Show the raster image with λ+1 of the cam A. |
ctrl/cmd+left | Show the raster image with λ-1 of the cam A. |
ctrl/cmd+up | Show the raster image with λ+1 of the cam B. |
ctrl/cmd+down | Show the raster image with λ-1 of the camB. |
spacebar | Show the line profile or raster image at the mouse point |
For details of the attributes and methods please see fisspy.image.dualBand document page.