plot_range_doppler#
- FRTMPlotter.plot_range_doppler(channel: str = None, frame: int = None, range_bins: int = None, doppler_bins: int = None, window: str = None, quantity_format: str = None, title: str = 'Doppler Velocity-Range', output_file: str = None, show: bool = True, show_legend: bool = True, size: tuple = (1920, 1440), figure=None)#
Create range-Doppler contour plot.
- Parameters:
- channel
str,optional Channel name. The default is
None, in which case the first channel is used.- frame
int,optional Frame number. The default is
None, in which case all frames are used.- range_bins
int,optional Number of output bins in range (frequency) dimension. If not specified, uses the original number of frequencies.
- doppler_bins
int,optional - Number of output bins in Doppler (pulse/time) dimension.
If not specified, uses the original number of CPI frames.
- window: str, optional
Type of window. The default is
None. Available options are"Hann","Hamming", and"Flat".- quantity_format
str,optional Conversion data function. The default is
None. Available functions are:"abs","ang","dB10","dB20","deg","imag","norm", and"real".- title
str,optional Title of the plot. The default is
"Range profile".- output_file
strorpathlib.Path,optional Full path for the image file. The default is
None, in which case an image in not exported.- showbool,
optional Whether to show the plot. The default is
True. IfFalse, the Matplotlib instance of the plot is shown.- show_legendbool,
optional Whether to display the legend or not. The default is
True.- size
tuple,optional Image size in pixel (width, height).
- figure
matplotlib.pyplot.Figure,optional An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes objects are created. Default is
None.
- channel
- Returns:
ansys.aedt.core.visualization.plot.matplotlib.ReportPlotterPyAEDT matplotlib figure object.
Examples
>>> from ansys.aedt.core.visualization.advanced.frtm_visualization import get_results_files >>> from ansys.aedt.core.visualization.advanced.frtm_visualization import FRTMData >>> from ansys.aedt.core.visualization.advanced.frtm_visualization import FRTMPlotter >>> output_directory = "directory.results" >>> frames_dict = get_results_files(directory) >>> for frame, data_frame in frames_dict.items(): >>> doppler_data = FRTMData(data_frame) >>> data[frame] = doppler_data >>> frtm_plotter = FRTMPlotter(data) >>> frame_number = frtm_plotter.frames[0] >>> frtm_plotter.plot_range_doppler(frame=frame_number) >>> frtm_plotter.plot_range_doppler(output_file="range_doppler.gif", animation=True, show=False)