TD map¶
This is a powerful analysis tool to draw the time-distance map for an arbitrary slit that the user selects. To properly use this module, you should change the matplotlib backend to one of the interactive backends. Then input the 3D cube. The first array of this cube data should be the time. For example, I'm going to show the example with the aligned cube data. Note that this aligned cube can more simply draw this tdmap figure using the 'imshow' method of the read.AlignCube.
In [ ]:
import fisspy
import numpy as np
import matplotlib.pyplot as plt
fac = r'D:\Data\140603\140603_alosv_A.npz'
ac = fisspy.read.AlignCube(fac)
mtd = fisspy.analysis.makeTDmap(ac.data, dx=0.16*725, dy=0.16*725, dt=20, cmap=plt.cm.RdBu_r)
The below table shows the interactive key for makeTDmap.
Keys | Description |
---|---|
right | Next frame. |
left | Previous frame. |
spacebar | Mark the slit position. |
c | Calculate TD map for marked points. # of markers=2: linear slit. # of markers=3: circular arc. #of markers>3: arbitrary slit. |
escape | remove the previous marked point. |
ctrl/cmd+h | Show help box. |
If you draw the TD map by pressing 'c' key. You can handle the TD map data. Using the below interactive key for analysisTDmap.
Keys | Description |
---|---|
right | Next frame. |
left | Previous frame. |
down | Increase the slit position. |
up | Decrease the slit position. |
spacebar on main axis | Mark the current position to calculate the velocity. |
spacebar on time-series axis | Mark the current position to measure the period. |
spacebar on distance-series axis | Mark the current position to measure the wavelength. |
c on main axis | Calculate velocity of the ridge |
v on main axis | Calculate velocity between two points |
c or v on time-series axis | Measure the period |
c or v on distance-series axis | Measure the wavelength |
escape | Remove one marked point |
cmd/ctrl+r | Clear all marked points. |
m | Show the image for the current mouse point. |
ctrl/cmd+g | Show and hide the grid lines. |
ctrl/cmd+h | Show help box. |