.. _mhovmoeller_line_icon: mhovmoeller_line =============================================== .. container:: .. container:: leftside .. image:: /_static/MHOVMOELLERDATA.png :width: 48px .. container:: rightside Generates a Hovmoeller diagram data unit for a given transect line for GRIB (:class:`Fieldset`) input. The generated data can be used to display a two-dimensional graph with latitude or longitude as one axis and time as the other. The point values for each field are interpolated along the transect line, with a spacing consistent with the resolution of the input GRIB data. The resulting data can be plotted (using a default visualisation and with the plot area based on the range of data values) or saved as a NetCDF data file using :func:`write`. If access to the computed values is not required, or for more control of the plotting, use :func:`mhovmoellerview`. .. note:: See also :func:`mhovmoeller_area`, :func:`mhovmoeller_vertical` and :func:`mhovmoeller_expand`. .. note:: This function performs the same task as the **Hovmoeller Data** icon in Metview’s :ref:`user interface `. It accepts its parameters as keyword arguments, described below. .. py:function:: mhovmoeller_line(**kwargs) Provides input for Hovmoeller diagrams derived from a transect line. :param data: Specifies the GRIB data (:class:`Fieldset`) from which to derive the Hovmeller diagram. ``data``must specify a time-series of one meteorological variable on a given level on a latitude-longitude or Gaussian grid. Multiple parameters/levels are not supported. :type data: :class:`Fieldset` :param line: Specifies the coordinates of a transect line along which the Hovmoeller diagram is calculated in [lat1, lon1, lat2, lon2] format. :type line: list[number], default: [0, -180, 0, 180] :param swap_axes: By default, the definition of the vertical and horizontal axes of the Hovmoeller diagrams follows pre-defined rules. However, if ``swap_axes`` is set to "yes" then the axes will be swapped around. :type swap_axes: {"no", "yes"}, default: "no" :param resolution: Used to interpolate the data onto a regular grid, and applies to both the horizontal and vertical axes where appropriate. This parameter is essential for creating a Hovmoeller diagram from satellite data. :type resolution: number, default: 1.0 :rtype: :class:`NetCDF` .. mv-minigallery:: mhovmoeller_line