Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
05758f4b
Commit
05758f4b
authored
Oct 08, 2016
by
Uwe Schulzweida
Browse files
expr: docu update.
parent
a340a5da
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/tex/mod/Exprf
View file @
05758f4b
...
@@ -31,7 +31,7 @@ The following operators are supported:
...
@@ -31,7 +31,7 @@ The following operators are supported:
- & subtraction & x - y & Difference of x and y
- & subtraction & x - y & Difference of x and y
* & multiplication & x * y & Product of x and y
* & multiplication & x * y & Product of x and y
/ & division & x / y & Quotient of x and y
/ & division & x / y & Quotient of x and y
\exp & exponentiation & x \exp y & Exponentiates x with y
\exp
& exponentiation & x \exp y
& Exponentiates x with y
== & equal to & x == y & 1, if x equal to y; else 0
== & equal to & x == y & 1, if x equal to y; else 0
!= & not equal to & x != y & 1, if x not equal to y; else 0
!= & not equal to & x != y & 1, if x not equal to y; else 0
> & greater than & x > y & 1, if x greater than y; else 0
> & greater than & x > y & 1, if x greater than y; else 0
...
@@ -184,6 +184,11 @@ STRING File with processing instructions
...
@@ -184,6 +184,11 @@ STRING File with processing instructions
@EndParameter
@EndParameter
@BeginNote
The expr commands sellevel(x,k) and sellevidx(x,k) are only avaiable with @oper{exprf}/@oper{aexprf}.
@EndNote
@BeginExample
@BeginExample
Assume an input dataset contains at least the variables 'aprl', 'aprc' and 'ts'.
Assume an input dataset contains at least the variables 'aprl', 'aprc' and 'ts'.
To create a new variable 'var1' with the sum of 'aprl' and 'aprc' and a variable 'var2'
To create a new variable 'var1' with the sum of 'aprl' and 'aprc' and a variable 'var2'
...
...
src/operator_help.h
View file @
05758f4b
...
@@ -1264,7 +1264,7 @@ static const char *EnlargeHelp[] = {
...
@@ -1264,7 +1264,7 @@ static const char *EnlargeHelp[] = {
" enlarge,grid ifile ofile"
,
" enlarge,grid ifile ofile"
,
""
,
""
,
"DESCRIPTION"
,
"DESCRIPTION"
,
" Enlarge all fields of ifile to a user given grid. Normally only the last "
,
" Enlarge all fields of ifile to a user given
horizontal
grid. Normally only the last "
,
" field element is used for the enlargement. If however the input and output"
,
" field element is used for the enlargement. If however the input and output"
,
" grid are regular lon/lat grids, a zonal or meridional enlargement is possible."
,
" grid are regular lon/lat grids, a zonal or meridional enlargement is possible."
,
" Zonal enlargement takes place, if the xsize of the input field is 1 and "
,
" Zonal enlargement takes place, if the xsize of the input field is 1 and "
,
...
@@ -1359,7 +1359,7 @@ static const char *ExprHelp[] = {
...
@@ -1359,7 +1359,7 @@ static const char *ExprHelp[] = {
" - & subtraction & x - y & Difference of x and y "
,
" - & subtraction & x - y & Difference of x and y "
,
" * & multiplication & x * y & Product of x and y "
,
" * & multiplication & x * y & Product of x and y "
,
" / & division & x / y & Quotient of x and y"
,
" / & division & x / y & Quotient of x and y"
,
" ^ & exponentiation & x ^y & Exponentiates x with y "
,
" ^
& exponentiation & x ^y
& Exponentiates x with y "
,
" == & equal to & x == y & 1, if x equal to y; else 0"
,
" == & equal to & x == y & 1, if x equal to y; else 0"
,
" != & not equal to & x != y & 1, if x not equal to y; else 0"
,
" != & not equal to & x != y & 1, if x not equal to y; else 0"
,
" > & greater than & x > y & 1, if x greater than y; else 0"
,
" > & greater than & x > y & 1, if x greater than y; else 0"
,
...
@@ -1436,6 +1436,9 @@ static const char *ExprHelp[] = {
...
@@ -1436,6 +1436,9 @@ static const char *ExprHelp[] = {
"PARAMETER"
,
"PARAMETER"
,
" instr STRING Processing instructions (need to be 'quoted' in most cases)"
,
" instr STRING Processing instructions (need to be 'quoted' in most cases)"
,
" filename STRING File with processing instructions"
,
" filename STRING File with processing instructions"
,
""
,
"NOTE"
,
" The expr commands sellevel(x,k) and sellevidx(x,k) are only avaiable with exprf/aexprf."
,
NULL
NULL
};
};
...
...
Write
Preview
Markdown
is supported
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