pyart.graph.RadarMapDisplay.generate_filename#

RadarMapDisplay.generate_filename(field, sweep, ext='png', datetime_format='%Y%m%d%H%M%S', use_sweep_time=False)#

Generate a filename for a plot.

Generated filename has form:

radar_name_field_sweep_time.ext

Parameters:
  • field (str) – Field plotted.

  • sweep (int) – Sweep plotted.

  • ext (str) – Filename extension.

  • datetime_format (str) – Format of datetime (using strftime format).

  • use_sweep_time (bool) – If true, the current sweep’s beginning time is used.

Returns:

filename (str) – Filename suitable for saving a plot.