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
7f63d4e4
Commit
7f63d4e4
authored
Oct 10, 2016
by
Uwe Schulzweida
Browse files
Expr: docu update.
parent
05758f4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
doc/tex/mod/Exprf
View file @
7f63d4e4
...
...
@@ -185,7 +185,8 @@ STRING File with processing instructions
@BeginNote
The expr commands sellevel(x,k) and sellevidx(x,k) are only avaiable with @oper{exprf}/@oper{aexprf}.
The expr commands sellevel(x,k) and sellevidx(x,k) are only available with @oper{exprf}/@oper{aexprf}.
If the input stream contains duplicate entries of the same variable name then the last one is used.
@EndNote
...
...
src/Exprf.c
View file @
7f63d4e4
...
...
@@ -41,9 +41,11 @@ Constansts: M_PI, M_E
#include "grid.h"
#include "expr.h"
void
grid_cell_area
(
int
gridID
,
double
*
array
);
int
getSurfaceID
(
int
vlistID
);
static
char
*
exprs_from_arg
(
const
char
*
arg
)
{
...
...
@@ -97,6 +99,7 @@ paramType *params_new(int vlistID)
char
name
[
CDI_MAX_NAME
];
char
longname
[
CDI_MAX_NAME
];
char
units
[
CDI_MAX_NAME
];
for
(
int
varID
=
0
;
varID
<
nvars1
;
varID
++
)
{
int
gridID
=
vlistInqVarGrid
(
vlistID
,
varID
);
...
...
@@ -171,6 +174,7 @@ void params_add_coordinates(int vlistID, parse_param_t *parse_arg)
{
char
longname
[
CDI_MAX_NAME
];
char
units
[
CDI_MAX_NAME
];
int
ngrids
=
vlistNgrids
(
vlistID
);
for
(
int
index
=
0
;
index
<
ngrids
;
++
index
)
{
...
...
@@ -184,6 +188,7 @@ void params_add_coordinates(int vlistID, parse_param_t *parse_arg)
params_add_coord
(
parse_arg
,
'a'
,
gridID
,
size
,
"m^2"
,
"grid cell area"
);
params_add_coord
(
parse_arg
,
'w'
,
gridID
,
size
,
NULL
,
"grid cell area weights"
);
}
int
nzaxis
=
vlistNzaxis
(
vlistID
);
for
(
int
index
=
0
;
index
<
nzaxis
;
++
index
)
{
...
...
@@ -235,6 +240,7 @@ void params_delete(paramType *params)
}
}
void
*
Expr
(
void
*
argument
)
{
cdoInitialize
(
argument
);
...
...
src/operator_help.h
View file @
7f63d4e4
...
...
@@ -1438,7 +1438,8 @@ static const char *ExprHelp[] = {
" filename STRING File with processing instructions"
,
""
,
"NOTE"
,
" The expr commands sellevel(x,k) and sellevidx(x,k) are only avaiable with exprf/aexprf."
,
" The expr commands sellevel(x,k) and sellevidx(x,k) are only available with exprf/aexprf."
,
" If the input stream contains duplicate entries of the same variable name then the last one is used."
,
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