Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
11ef98eb
Commit
11ef98eb
authored
Apr 26, 2016
by
Uwe Schulzweida
Browse files
smooth: added docu.
parent
52e92767
Changes
8
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
11ef98eb
...
...
@@ -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
...
...
NEWS
View file @
11ef98eb
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:
...
...
OPERATORS
View file @
11ef98eb
...
...
@@ -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
...
...
doc/tex/mod/Derivepar
View file @
11ef98eb
@BeginModule
@NewPage
@Name = Derivepar
@Title = Sea level pressure
@Section = Miscellaneous
...
...
doc/tex/mod/Replacevalues
View file @
11ef98eb
@BeginModule
@NewPage
@Name = Replacevalues
@Title = Replace variable values
@Section = Miscellaneous
...
...
doc/tex/mod/Smooth
View file @
11ef98eb
@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
src/operator_help.h
View file @
11ef98eb
...
...
@@ -4561,22 +4561,42 @@ static const char *GridcellHelp[] = {
static
const
char
*
SmoothHelp
[]
=
{
"NAME"
,
" smooth
9 - 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
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment