Commit 11ef98eb authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

smooth: added docu.

parent 52e92767
......@@ -3,6 +3,10 @@
* using CDI library version 1.7.2
* Version 1.7.2 released
2016-04-26 Uwe Schulzweida
* New operator: smooth - Smooth grid points
2016-04-25 Uwe Schulzweida
* New operator: ap2hl - Air pressure to height level interpolation
......@@ -45,7 +49,7 @@
2016-03-18 Uwe Schulzweida
* New operator: settbounds - Set time bounds
* New operator: settbounds - Set time bounds settbounds - Set time bounds
2016-03-17 Uwe Schulzweida
......
CDO NEWS
--------
Version 1.7.2 (25 June 2016):
New operators:
* smooth: Smooth grid points
* ap2hl: Air pressure to height level interpolation
* ngrids: Show number of grids
* ngridpoints: Show number of gridpoints per variable
* reducegrid: Select gridpoints wrt. given mask
* settbounds: Set time bounds
Fixed bugs:
* Installation error with OpenMP [Bug #6523]
* shaded, contour, grfill: set NAN missvals to -9e33 [Bug: #6677]
Version 1.7.1 (25 February 2016):
New features:
......
......@@ -518,6 +518,7 @@ Operator catalog:
Filter highpass Highpass filtering
Gridcell gridarea Grid cell area
Gridcell gridweights Grid cell weights
Smooth smooth Smooth grid points
Smooth smooth9 9 point smoothing
Replacevalues setvals Set list of old values to new values
Replacevalues setrtoc Set range to constant
......
@BeginModule
@NewPage
@Name = Derivepar
@Title = Sea level pressure
@Section = Miscellaneous
......
@BeginModule
@NewPage
@Name = Replacevalues
@Title = Replace variable values
@Section = Miscellaneous
......
@BeginModule
@NewPage
@Name = Smooth
@Title = 9 point smoothing
@Title = Smooth grid points
@Section = Miscellaneous
@Arguments = ifile ofile
@Operators = smooth9
@Operators = smooth smooth9
@BeginDescription
Smooth all grid points of a horizontal grid.
@EndDescription
@EndModule
@BeginOperator_smooth
@Title = Smooth grid points
@Parameter = [params]
@BeginDescription
Performs a N point smoothing on all input fields. The number of points used depend
on the search radius (radius) and the maximum number of points (maxpoints).
Per default all points within the search radius of 1degree are used.
The weights for the points depend on the form of the curve and the distance.
The implemented form of the curve is linear with constant default weights of 0.25
at distance 0 (weight0) and at the search radius (weightR).
@EndDescription
@EndOperator
@BeginOperator_smooth9
@Title = 9 point smoothing
......@@ -24,3 +42,19 @@ be missing. Thus the final result may be the result of an averaging with less
than 9 points.
@EndDescription
@EndOperator
@BeginParameter maxpoints
@Item = nsmooth
INTEGER Number of times to smooth, default nsmooth=1
@Item = radius
STRING Search radius, default radius=1deg (units: deg, rad, km, m)
@Item = maxpoints
INTEGER Maximum number of points, default maxpoints=2147483647
@Item = form
STRING Form of the curve, default form=linear
@Item = weight0
FLOAT Weight at distance 0, default weight0=0.25
@Item = weightR
FLOAT Weight at the search radius, default weightR=0.25
@EndParameter
libcdi @ 6e1df024
Subproject commit 3aa304420091c0415719abedf209287e73023454
Subproject commit 6e1df02415843f561d943d55cbc1860ddef5b0da
......@@ -4561,22 +4561,42 @@ static const char *GridcellHelp[] = {
static const char *SmoothHelp[] = {
"NAME",
" smooth9 - 9 point smoothing",
" smooth, smooth9 - Smooth grid points",
"",
"SYNOPSIS",
" smooth[,params] ifile ofile",
" smooth9 ifile ofile",
"",
"DESCRIPTION",
" Performs a 9 point smoothing on all fields with a quadrilateral curvilinear grid.",
" The result at each grid point is a weighted average of the grid point plus",
" the 8 surrounding points. The center point receives a weight of 1.0, the ",
" points at each side and above and below receive a weight of 0.5, and corner ",
" points receive a weight of 0.3.",
" All 9 points are multiplied by their weights and summed, then divided by ",
" the total weight to obtain the smoothed value. Any missing data points are ",
" not included in the sum; points beyond the grid boundary are considered to ",
" be missing. Thus the final result may be the result of an averaging with less ",
" than 9 points.",
" Smooth all grid points of a horizontal grid.",
"",
"OPERATORS",
" smooth Smooth grid points",
" Performs a N point smoothing on all input fields. The number of points used depend",
" on the search radius (radius) and the maximum number of points (maxpoints).",
" Per default all points within the search radius of 1degree are used.",
" The weights for the points depend on the form of the curve and the distance.",
" The implemented form of the curve is linear with constant default weights of 0.25",
" at distance 0 (weight0) and at the search radius (weightR).",
" smooth9 9 point smoothing",
" Performs a 9 point smoothing on all fields with a quadrilateral curvilinear grid.",
" The result at each grid point is a weighted average of the grid point plus",
" the 8 surrounding points. The center point receives a weight of 1.0, the ",
" points at each side and above and below receive a weight of 0.5, and corner ",
" points receive a weight of 0.3.",
" All 9 points are multiplied by their weights and summed, then divided by ",
" the total weight to obtain the smoothed value. Any missing data points are ",
" not included in the sum; points beyond the grid boundary are considered to ",
" be missing. Thus the final result may be the result of an averaging with less ",
" than 9 points.",
"",
"PARAMETER",
" nsmooth INTEGER Number of times to smooth, default nsmooth=1",
" radius STRING Search radius, default radius=1deg (units: deg, rad, km, m)",
" maxpoints INTEGER Maximum number of points, default maxpoints=2147483647",
" form STRING Form of the curve, default form=linear",
" weight0 FLOAT Weight at distance 0, default weight0=0.25",
" weightR FLOAT Weight at the search radius, default weightR=0.25",
NULL
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment