Plotting QC outcomes

marine_qc.latitude_longitude_plot(lat, lon, qc_outcomes, filename=None)[source]

Plot a graph of points showing the latitude and longitude of a set of observations coloured according to the QC outcomes.

Parameters:
  • lat (np.ndarray) – Array of latitude values in degrees.

  • lon (np.ndarray) – Array of longitude values in degrees.

  • qc_outcomes (np.ndarray) – Array containing the QC outcomes, with 0 meaning pass and non-zero entries indicating failure.

  • filename (str or None) – Filename to save the figure to. If None, the figure is saved with a standard name.

Return type:

Figure

Returns:

Figure – The main figure obkect created by plt.subplots().

marine_qc.latitude_variable_plot(lat, value, qc_outcomes, filename=None)[source]

Plot a graph of points showing the latitude and value of a set of observations coloured according to the QC oucomes.

Parameters:
  • lat (np.ndarray) – Array of latitude values in degrees.

  • value (np.ndarray) – Array of observed values for the variable.

  • qc_outcomes (np.ndarray) – Array containing the QC outcomes, with 0 meaning pass and non-zero entries indicating failure.

  • filename (str or None) – Filename to save the figure to. If None, the figure is saved with a standard name.

Return type:

Figure

Returns:

Figure – The main figure obkect created by plt.subplots().