Commit 1a3dbdb2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed operator setpartab to setcodetab.

parent 65ce8ab0
......@@ -3,6 +3,10 @@
* using CDI library version 1.7.2
* Version 1.7.2 released
2016-06-21 Uwe Schulzweida
* Renamed operator setpartab to setcodetab
2016-06-13 Uwe Schulzweida
* mul: wrong result for missval*0 (bug fix)
......
......@@ -607,10 +607,10 @@ void *Setpartab(void *argument)
cdoInitialize(argument);
int SETPARTAB = cdoOperatorAdd("setpartab", 0, 0, "parameter table name");
int SETPARTABC = cdoOperatorAdd("setpartabc", 0, 0, "parameter table name");
int SETPARTABP = cdoOperatorAdd("setpartabp", 0, 0, "parameter table name");
int SETPARTABN = cdoOperatorAdd("setpartabn", 0, 0, "parameter table name");
int SETCODETAB = cdoOperatorAdd("setcodetab", 0, 0, "parameter code table name");
int SETPARTABC = cdoOperatorAdd("setpartabc", 0, 0, "parameter table name");
int SETPARTABP = cdoOperatorAdd("setpartabp", 0, 0, "parameter table name");
int SETPARTABN = cdoOperatorAdd("setpartabn", 0, 0, "parameter table name");
int operatorID = cdoOperatorID();
......@@ -628,7 +628,7 @@ void *Setpartab(void *argument)
if ( operatorArgc() > 2 ) cdoAbort("Too many arguments!");
pt_mode_t ptmode = CODE_NUMBER;
if ( operatorID == SETPARTAB ) ptmode = CODE_NUMBER;
if ( operatorID == SETCODETAB ) ptmode = CODE_NUMBER;
else if ( operatorID == SETPARTABC ) ptmode = CODE_NUMBER;
else if ( operatorID == SETPARTABP ) ptmode = PARAMETER_ID;
else if ( operatorID == SETPARTABN ) ptmode = VARIABLE_NAME;
......
......@@ -245,7 +245,7 @@ void cdo_usage(void)
fprintf(stderr, " -S Create an extra output stream for the module TIMSTAT. This stream\n");
fprintf(stderr, " contains the number of non missing values for each output period.\n");
fprintf(stderr, " -s, --silent Silent mode\n");
fprintf(stderr, " -t <partab> Set GRIB1 default parameter table name or file (cgribex only)\n");
fprintf(stderr, " -t <codetab> Set GRIB1 default parameter code table name or file (cgribex only)\n");
fprintf(stderr, " Predefined tables: ");
for ( int id = 0; id < tableInqNumber(); id++ )
if ( (name = tableInqNamePtr(id)) )
......
......@@ -412,7 +412,7 @@ void *Maggraph(void *argument);
#define SethaloOperators {"sethalo", "tpnhalo"}
#define SetmissOperators {"setmissval", "setctomiss", "setmisstoc", "setrtomiss", "setvrange"}
#define SetmisstonnOperators {"setmisstonn", "setmisstodis"}
#define Setpartab0Operators {"setpartab"}
#define SetcodetabOperators {"setcodetab"}
#define SetpartabOperators {"setpartabc", "setpartabp", "setpartabn"}
#define SetrcanameOperators {"setrcaname"}
#define SettimeOperators {"setyear", "setmon", "setday", "setdate", "settime", "settunits", \
......@@ -691,7 +691,7 @@ static modules_t Modules[] =
{ Sethalo, SethaloHelp, SethaloOperators, 1, CDI_REAL, 1, 1 },
{ Setmiss, SetmissHelp, SetmissOperators, 1, CDI_REAL, 1, 1 },
{ Fillmiss, SetmissHelp, SetmisstonnOperators, 1, CDI_REAL, 1, 1 },
{ Setpartab, SetHelp, Setpartab0Operators, 1, CDI_REAL, 1, 1 },
{ Setpartab, SetHelp, SetcodetabOperators, 1, CDI_REAL, 1, 1 },
{ Setpartab, SetpartabHelp, SetpartabOperators, 1, CDI_REAL, 1, 1 },
{ Setrcaname, NULL, SetrcanameOperators, 1, CDI_REAL, 1, 1 },
{ Settime, SettimeHelp, SettimeOperators, 1, CDI_BOTH, 1, 1 },
......@@ -858,6 +858,7 @@ static const char *opalias[][2] =
{"selgridname", "selgrid"},
{"setvar", "setname"},
{"setpartabv", "setpartabn"},
{"setpartab", "setcodetab"},
{"sinfov", "sinfon"},
{"sortvar", "sortname"},
{"splitvar", "splitname"},
......
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