.. _mhovmoeller_area_icon: mhovmoeller_area =============================================== .. container:: .. container:: leftside .. image:: /_static/MHOVMOELLERDATA.png :width: 48px .. container:: rightside Generates a Hovmoeller diagram data unit for a given geographical area 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 average values for each field are taken along the North-South or East-West direction. 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_line`, :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_area(**kwargs) Provides input for Hovmoeller diagrams derived from a geographical area. :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 area: Specifies the coordinates of the area (as [north, west, south, east]) over which the Hovmoeller diagram is calculated. :type area: list[number], default: [30, -30, -30, 30] :param area_statistics: Specifies the type of computation performed along the `average_direction``. For "mean", "stdev" or "variance" when ``average_direction`` is "north_south" the aggregation is weighted by the cosine of the latitudes. *New in Metview version 5.18.0* :type area_statistics: {"mean", "minimum", "maximum", "stdev", "variance", "median"}, default: "mean" :param average_direction: Specifies the direction along which the computation defined in ``area_statistics`` is performed. When it is "north_south" and ``area_statistics`` is "average", "stdev" or "variance" the aggregation is weighted by the cosine of the latitudes. :type average_direction: {"east_west", "north_south"}, default: "east_west" :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_area