This icon regrids GRIB data ...
The macro/python language equivalent is regrid()
.
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
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:
GUI | Python / Macro | Result |
---|---|---|
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
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
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:
- Lambert Conformal - https://apps.ecmwf.int/codes/grib/format/grib2/templates/3/30
- Lambert Azimuthal Equal Area - https://apps.ecmwf.int/codes/grib/format/grib2/templates/3/140
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
Gaussian Number
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 Automatic, None 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
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.
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 Neighbours. QQQ (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)