Metview's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

This icon takes data from a GRIB source and performs a variety of operations on it, including spectral to grid conversion, regridding using a large variety of powerful and flexible interpolation techniques, and special consideration of wind fields.

The macro/python language equivalent is regrid(). The listed parameters can all be supplied as named parameters with the spaces replaced by underscores, e.g. nearest_method='sorted_sample'.

The Regrid Editor

Data input parameters


Input data may be specified either by giving a path in the Source parameter or by giving a GRIB-based data object in the Data parameter. Note that you should specify either Source or Data, not both.

Source

Specifies the GRIB file path.

Data

Drop a MARS Retrieval or a GRIB file icon inside this icon field. In Python or Macro, supply a Fieldset object.

Output Grid definition parameters


Grid Definition Mode

Select a method for specifying the output grid.

  • Grid: supply a valid string or list of numbers in the Grid parameter
  • Template: supply a template GRIB file, whose grid structure will be used to generate the output GRIB; use either Template Source or Template Data to specify the template
  • Lambert Conformal: supply details of the output grid in the set of Lambert grid definition parameters
  • Lambert Azimuthal Equal Area:  supply details of the output grid in the set of Lambert grid definition parameters
  • Filter: QQQ

Template Source

If Grid Definition Mode is set to Template, supply the path to a template GRIB file; the output GRIB will use the same grid as the template.

Template Data

If Grid Definition Mode is set to Template, supply a GRIB-based data object in the Data parameter; the output GRIB will use the same grid as the template.

Grid

Supply a grid definition as described here: grid - keyword in MARS/Dissemination request.

Examples of valid grid definitions:

GUIPython / MacroResult
1/1[1, 1]A regular lat/lon grid with 1x1 degree point spacing
0.25/0.25[0.25, 0.25]A regular lat/lon grid with 0.25x0.25 degree point spacing
O1280"O1280"An octahedral reduced Gaussian grid, octahedral with 1280 latitude lines between the pole and equator
N640"N640"An 'original' reduced Gaussian grid, with 640 latitude lines between the pole and equator
F400"F400"A regular Gaussian grid, with 400 latitude lines between the pole and equator

Area

Needs to be checked!

Specifies a geographical area over which to carry out the interpolation, the default being for the whole globe. Enter coordinates (lat/lon) of an area separated by a "/" (North/West/South/East), or in Macro or Python provide a list, e.g. [north, west, south, east]; alternatively, use the assist button to define the area graphically. 

Rotation

Needs to be checked!

Rotation is specified by selecting a new coordinate for the South pole. In Python or Macro, enter [lat, lon]; in the GUI, enter lat/lon or use the coordinate assist button to graphically select the point.

Output Lambert grid definition parameters


These parameters are available if Grid Definition Mode is set to Lambert Conformal or Lambert Azimuthal Equal Area. The names follow the naming convention in the descriptions of these projections here:

First Point

Dx In Metres

Dy In Metres

Lad In Degrees

Lov In Degrees

Standard Parallel In Degrees

Central Longitude In Degrees

Latin 1 In Degrees

Latin 2 In Degrees

Ni

Nj

Spectral to grid definition parameters


If the input files are spectral, the following parameters are used to fine-tune the conversion to grid points.

Truncation

Describes how to treat the incoming spherical harmonics before the transformation to grid points. For more details, see truncation - keyword in MARS/Dissemination request. Possible values are AutomaticNone or a number describing the spectral truncation to be applied.

Intgrid

Describes the intermediate grid to which the transform is performed. For more details, see intgrid - keyword in MARS/Dissemination request. Possible values are Automatic , None , Source  or the name of the desired intermediate grid.

Extra processing parameters


Frame

Q: Should this only be available if Area is specified?

Specifies the width of a frame within a given sub-area. The width of the frame is specified as an integer number of grid points inwards from a given area. See also frame - keyword in MARS/Dissemination request.

Wind Processing

Activates processing that is particular to wind fields. Possible options are:

  • UV To UV: assumes that the input files come in pairs of U/V. The resulting values will be scaled by the cosine of their latitudes.
  • VOD To UV: assumes that the input files come in pairs of vorticity and divergence. The resulting values will be scaled by the cosine of their latitudes.

By default, this module will assume there are no wind fields in the input, and it will not automatically scan for pairs of U/V fields - it is up to the user to know that their input consists of wind fields and to use this setting in order to perform the correct processing.

Nabla

Activates a nabla (differential) operator processing on the fields. Possible functions are:

  • Scalar Gradient: QQQ
  • Scalar Laplacian: QQQ
  • UV Divergence: QQQ
  • UV Gradient: QQQ
  • UV Vorticity: QQQ
  • Off: do not perform any nabla operation

Nabla Poles Missing Values

QQQ. Possible values are On and Off.

Interpolation methods and parameters


Interpolation

Specifies the type of interpolation to be used on the fields. The default is Automatic, which selects either Linear or Nearest Neighbour based on an internal table of known parameters. If the parameter is unknown, the default will be Linear. The possible interpolation methods are:

  • Linear: QQQ
  • Bilinear: QQQ
  • Conservative Finite Element: QQQ
  • Grid Box Average: QQQ
  • Grid Box Maximum: QQQ
  • K Nearest Neighbours: QQQ
  • Nearest LSM: QQQ
  • Nearest Neighbour: QQQ
  • Structured Bicubic: QQQ
  • Structured Bilinear: QQQ
  • Structured Biquasicubic: QQQ
  • Automatic: see description above.

Nearest Method

Available for any of the 'nearest' interpolation methods. Possible values are:

  • Distance: QQQ
  • Distance and nclosest: QQQ
  • Distance or nclosest: QQQ
  • Nclosest: QQQ
  • Nclosest or nearest: QQQ
  • Nearest neighbour with lowest index: QQQ
  • Sample: QQQ
  • Sorted sample: QQQ

Distance Weighting

Only available if Interpolation is K Nearest NeighboursQQQ (description)

Possible values are:

  • Climate Filter: QQQ
  • Gaussian: QQQ
  • Inverse Distance Weighting: QQQ
  • Inverse Distance Weighting Squared: QQQ
  • Nearest Neighbour: QQQ
  • No: QQQ
  • Shepard: QQQ
  • Off: QQQ

Nclosest

Only available if Interpolation is K Nearest Neighbours and Distance Weighting is one of the 'NClosest' methods. This parameter specifies the number of closest points to be considered. Default=4.

Distance

Only available if Interpolation is K Nearest Neighbours. QQQ

Distance Weighting Gaussian Stddev

Only available if Interpolation is K Nearest Neighbours. QQQ

Distance Weighting Shepard Power

Only available if Interpolation is K Nearest Neighbours. QQQ

Distance Tolerance

Only available if Interpolation is K Nearest Neighbours. QQQ

Conservative Finite Element Method Input

Only available if Interpolation is Conservative Finite Element. QQQ

Conservative Finite Element Method Output

Only available if Interpolation is Conservative Finite Element. QQQ

Non Linear

QQQ. Possible values are:

  • Missing If All Missing: QQQ
  • Missing If Any Missing: QQQ
  • Missing If Heaviest Missing: QQQ
  • Simulated Missing Value: QQQ
  • Heaviest: QQQ
  • No: QQQ

Simulated Missing Value

Only available if Non Linear is Simulated Missing Value. QQQ (description)

Simulated Missing Value Epsilon

Only available if Non Linear is Simulated Missing Value. QQQ (description)

Land-sea mask parameters


Distance Weighting With LSM

Only available if Interpolation  is Nearest LSM. Possible values are On and Off.

LSM Weight Adjustment

Only available if Distance Weighting With Lsm is not Off. QQQ.

LSM Interpolation Input

QQQ.

LSM

 Selection Input

Specifies whether the input LSM file will come from LSM Named Input (Named) or LSM File Input (File).

LSM Named Input

Provide one a of a set of predefined names of LSM inputs from the following list:

  • 1km
  • 10min
  • O1280
  • O640
  • O320
  • N320
  • N256
  • N128

LSM File Input

Provide the path to an LSM GRIB file.

LSM Value Threshold Input

QQQ.

LSM Interpolation Output

QQQ

LSM Selection Output

Specifies whether the input LSM file will come from LSM Named Output (Named) or LSM File Output (File).

LSM Named Output

Provide one a of a set of predefined names of LSM outputs from the following list:

  • 1km
  • 10min
  • O1280
  • O640
  • O320
  • N320
  • N256
  • N128

LSM File Output

Provide the path to an LSM GRIB file.

LSM Value Threshold Output

QQQ.

Output GRIB parameters


Accuracy

Provide the desired number of bits per value for the output fields. If left empty, this will take the value from the input fields. Note that if Packing  is set to ieee, then the only valid values for this parameter are 32 and 64.

Packing

Specifies the GRIB packing method for the output values. Possible values are:

  • archived_value
  • complex
  • jpeg
  • second_order
  • simple
  • ieee
  • As Input

Edition

Specifies the edition of GRIB format for the output files. Possible values are:

  • 1
  • 2
  • As Input



  • No labels