pyrad.graph.plot_traj#
- pyrad.graph.plot_traj(rng_traj, azi_traj, ele_traj, time_traj, prdcfg, fname_list, rad_alt=None, rad_tstart=None, ax=None, fig=None, save_fig=True)[source]#
plots a trajectory on a Cartesian surface
- Parameters:
rng_traj, azi_traj, ele_traj (float array) – antenna coordinates of the trajectory [m and deg]
time_traj (datetime array) – trajectory time
prdcfg (dict) – dictionary containing the product configuration
fname_list (list of str) – list of names of the files where to store the plot
rad_alt (float or None) – radar altitude [m MSL]
rad_tstart (datetime object or None) – start time of the radar scan
surface_alt (float) – surface altitude [m MSL]
color_ref (str) – What the color code represents. Can be ‘None’, ‘rel_altitude’, ‘altitude’ or ‘time’
fig (Figure) – Figure to add the colorbar to. If none a new figure will be created
ax (Axis) – Axis to plot on. if fig is None a new axis will be created
save_fig (bool) – if true save the figure if false it does not close the plot and returns the handle to the figure
- Returns:
fname_list (list of str or)
fig, ax (tupple) – list of names of the saved plots or handle of the figure an axes