mvert_prof

../../_images/MVPROFILE.png

Generates a vertical profile data unit of upper air fields in GRIB format for a particular point location (or small area). For each upper air field, values are interpolated at the point location (or integrated over the small area).

The vertical profile data can be plotted using a default visualisation based on the range of data values. It can also be saved as a NetCDF data file (NetCDF) using write().

If access to the output computed values is not required, or for more control of the plotting, use mvertprofview().

Note

This function performs the same task as the Vertical Profile Data icon in Metview’s user interface. It accepts its parameters as keyword arguments, described below.

mvert_prof(**kwargs)

Generates vertical profile data.

Parameters
  • data (Fieldset) – Specifies the GRIB data from which to derive the vertical profile data. The input GRIB must specify a multi-level (pressure or model levels) upper air meteorological variable, in a latitude-longitude or Gaussian grid. If the input data is specified in model levels, you must include a Logarithm Of Surface Pressure (LNSP) field should you want the vertical axis of the plot in pressure levels rather than model levels when visualising the output. Note that the input fields should be on the same grid. If more than one time and/or forecast step is contained in data, it returns a set of vertical profiles in the resulting data, but note that currently only the first of these will be plotted with plot().

  • input_mode ({"point", "nearest_gridpoint", "area"}, default: "point") – Specifies whether to derive the vertical profile for a “point” or an “area”. Option “nearest_gridpoint” will take the nearest gridpoint to the point specified.

  • point (list[number], default: [0, 0]) – Specifies the coordinates (as [lat, lon]) of the point for which the vertical profile is calculated. Enabled when input_mode is “point” or “nearest_gridpoint”.

  • area (list[number], default: [30, -30, -30, 30]) – Specifies the coordinates of the area (as [north, west, south, east]) over which the averages composing the vertical profile are calculated. Enabled when input_mode is “area”.

  • output_mode ({"normal", "rttov"}, default: "normal") – Specifies the output extraction mode. The “rttov” option is only valid internally at ECMWF and it is used in the contex of the RTTOV Model application.

  • water_type ({"fresh_water", "ocean_water"}, default: "fresh_water") – Valid values are “fresh_water” or “ocean_water”. Available when output_mode is “rttov.

  • cloud_top_pressure (number, default: 0.0) – Pressure of the cloud top in hPa. Available when output_mode is “rttov”.

  • cloud_fraction (number, default: 0.0) – Available when output_mode is “rttov”.

Return type

NetCDF