pyarts3.plots
This module provides functions related to plotting ARTS data.
- pyarts3.plots.polar_ray_path(ray_path, planetary_radius=0.0, rscale=1000, figure_kwargs={'dpi': 300}, draw_lat_lon=True, draw_map=True, draw_za_aa=False, fig=None, axes=None)[source]
Plots a single observation in a polar coordinate system
Use the draw_* variables to select which plots are done
The polar plots’ central point is at the surface of the planet, i.e., at planetary_radius/rscale. The radius of these plots are the scaled down radiuses of the input ray_path[0].pos[0] / rscale + planetary_radius/rscale. The default radius value is thus just the altitude in kilometers. If you put, e.g., 6371e3 as the planetary_radius, the radius values will be the radius from the surface to the highest altitude
Note also that longitudes are unwrapped, e.g. a step longer than 180 degrees between ray_path points will wrap around, or rather, create separate entries of the lat-lons.
- Parameters:
ray_path (pyarts.arts.ArrayOfPropagationPathPoint) – A single propagation path object
planetary_radius (float, optional) – See
polar_ray_path_helper()
rscale (float, optional) – See
polar_ray_path_helper()
figure_kwargs (dict, optional) – Arguments to put into plt.figure(). The default is {“dpi”: 300}.
draw_lat_lon (bool, optional) – Whether or not latitude and longitude vs radius angles are drawn. Def: True
draw_map (bool, optional) – Whether or not latitude and longitude map is drawn. Def: True
draw_za_aa (bool, optional) – Whether or not Zenith and Azimuth angles are drawn. Def: False
fig (Figure, optional) – A figure. The default is None, which generates a new figure.
axes (A list of five Axes, optional) – A tuple of five axis. The default is None, which generates new axes. The order is [lat, lon, map, za, aa]
- Returns:
fig (As input) – As input.
axes (As input) – As input.
- pyarts3.plots.time_report(*, mode='plot', clear=True, scale=1.0, fig=None, mintime=None)[source]
Plots the time report.
The time report is available only when ARTS has been compiled with the CMake option
-DENABLE_ARTS_PROFILING=OFF
, which is not part of the default distribution.Nevertheless, there is enough helpful parts in being able to see the state of parallelism and report the time of internal methods that this method is part of the distribution.
- Parameters:
- Returns:
r (dict) – The time report
*out (tuple) – If mode is “plot”, returns the matplotlib figure and axis. If mode is “table”, returns a string containing the time report in Markdown table format.