Plots#

class pia.plotting.Plots(campaign, pine_id, operation_id, manual_ice_threshold, *arg)#

Bases: object

Contains functions for plotting routines in PlotsPINE and PlotsPINEair.

Parameters:
  • campaign (str) – name of campaign

  • pine_id (str)

  • operation_id (int)

  • manual_ice_threshold (bool) – whether the ice threshold is manually set or not

  • *arg (tuple) – numbers of chambers that are used

create_error_colors(colors, name, flags_info=None, flags_warning=None, flags_error=None, flags_missing=None)#

Creates a column containing colors used for flagging in the plot.

Parameters:
  • colors (DataFrame)

  • name (str) – column name

  • flags_info (Series, optional) – Contains the info-flagged values. The default is None.

  • flags_warning (Series, optional) – Contains the warning-flagged values. The default is None.

  • flags_error (Series, optional) – Contains the error-flagged values. The default is None.

  • flags_missing (Series, optional) – Contains missing values. The default is None.

get_ticks(len_fig, ref_time)#

Creates ticks and labels for relativ time

Parameters:
  • len_fig (float) – width of the figure

  • ref_time (datetime) – Start time of operation

Returns:

  • ticks (np.array)

  • labels (np.array)

make_dir_plots()#

Creates directory for plots.