Commit 7f63d4e4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Expr: docu update.

parent 05758f4b
......@@ -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
......
......@@ -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);
......
......@@ -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
};
......
Markdown is supported
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