marine_qc.visualization package¶
Marine Quality Control plotting package.
- marine_qc.visualization.plot_latitude_longitude(lat, lon, qc_outcomes, xlim=None, ylim=None, marker_size=None, add_coastlines=False, filename=None)¶
Plot a graph of points showing the latitude and the longitude of a set of observations coloured according to flagged outcomes.
- Parameters:
lat (
numpy.ndarray) – Array of latitude values in degrees.lon (
numpy.ndarray) – Array of longitude values in degrees.qc_outcomes (
numpy.ndarray) – Array containing the QC outcomes, with 0 meaning pass and non-zero entries indicating failure.xlim (
tupleoffloatandfloat, optional) – Limits of the current x axis. If None, set to (-180.0, 180.0).ylim (
tupleoffloatandfloat, optional) – Limits of the current y axis. If None, set to (-90.0, 90.0).marker_size (
int, optional) – Marker size in points. If None, it is set to 1.add_coastlines (
bool) – If True, add coastlines on PlateCarree projection.filename (
str, optional) – Filename to save the figure to. If None, the figure is not saved but shown.
- Return type:
Figure- Returns:
Figure– The main figure object created by plt.subplots().
- marine_qc.visualization.plot_latitude_variable(lat, value, qc_outcomes, xlim=None, ylim=None, marker_size=None, add_coastlines=False, filename=None)¶
Plot a graph of points showing the latitude and the value of a set of observations coloured according to flagged outcomes.
- Parameters:
lat (
numpy.ndarray) – Array of latitude values in degrees.value (
numpy.ndarray) – Array of observed values for the variable.qc_outcomes (
numpy.ndarray) – Array containing the QC outcomes, with 0 meaning pass and non-zero entries indicating failure.xlim (
tupleoffloatandfloat, optional) – Limits of the current x axis.ylim (
tupleoffloatandfloat, optional) – Limits of the current y axis. If None, set to (-90.0, 90.0).marker_size (
int, optional) – Marker size in points. If None, it is set to 1.add_coastlines (
bool) – If True, add coastlines on PlateCarree projection.filename (
str, optional) – Filename to save the figure to. If None, the figure is not saved but shown.
- Return type:
Figure- Returns:
Figure– The main figure object created by plt.subplots().
- marine_qc.visualization.plot_variable_longitude(lon, value, qc_outcomes, xlim=None, ylim=None, marker_size=None, add_coastlines=False, filename=None)¶
Plot a graph of points showing the value and the longitude of a set of observations coloured according to flagged outcomes.
- Parameters:
lon (
numpy.ndarray) – Array of longitude values in degrees.value (
numpy.ndarray) – Array of observed values for the variable.qc_outcomes (
numpy.ndarray) – Array containing the QC outcomes, with 0 meaning pass and non-zero entries indicating failure.xlim (
tupleoffloatandfloat, optional) – Limits of the current x axis. If None, set to (-180.0, 180.0).ylim (
tupleoffloatandfloat, optional) – Limits of the current y axis.marker_size (
int, optional) – Marker size in points. If None, it is set to 1.add_coastlines (
bool) – If True, add coastlines on PlateCarree projection.filename (
str, optional) – Filename to save the figure to. If None, the figure is not saved but shown.
- Return type:
Figure- Returns:
Figure– The main figure object created by plt.subplots().
Submodules¶
marine_qc.visualization.plot_qc_outcomes module¶
Plot QC outcomes.
Some plotting routines for QC outcomes