Skip to content
GitLab
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
1a3dbdb2
Commit
1a3dbdb2
authored
Jun 21, 2016
by
Uwe Schulzweida
Browse files
Renamed operator setpartab to setcodetab.
parent
65ce8ab0
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
1a3dbdb2
...
...
@@ -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)
...
...
src/Setpartab.c
View file @
1a3dbdb2
...
...
@@ -607,10 +607,10 @@ void *Setpartab(void *argument)
cdoInitialize
(
argument
);
int
SET
PAR
TAB
=
cdoOperatorAdd
(
"set
par
tab"
,
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
SET
CODE
TAB
=
cdoOperatorAdd
(
"set
code
tab"
,
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
==
SET
PAR
TAB
)
ptmode
=
CODE_NUMBER
;
if
(
operatorID
==
SET
CODE
TAB
)
ptmode
=
CODE_NUMBER
;
else
if
(
operatorID
==
SETPARTABC
)
ptmode
=
CODE_NUMBER
;
else
if
(
operatorID
==
SETPARTABP
)
ptmode
=
PARAMETER_ID
;
else
if
(
operatorID
==
SETPARTABN
)
ptmode
=
VARIABLE_NAME
;
...
...
src/cdo.c
View file @
1a3dbdb2
...
...
@@ -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 <
par
tab>
Set GRIB1 default parameter table name or file (cgribex only)
\n
"
);
fprintf
(
stderr
,
" -t <
code
tab> 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
))
)
...
...
src/modules.c
View file @
1a3dbdb2
...
...
@@ -412,7 +412,7 @@ void *Maggraph(void *argument);
#define SethaloOperators {"sethalo", "tpnhalo"}
#define SetmissOperators {"setmissval", "setctomiss", "setmisstoc", "setrtomiss", "setvrange"}
#define SetmisstonnOperators {"setmisstonn", "setmisstodis"}
#define Set
par
tab
0
Operators {"set
par
tab"}
#define Set
code
tabOperators {"set
code
tab"}
#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
,
Set
par
tab
0
Operators
,
1
,
CDI_REAL
,
1
,
1
},
{
Setpartab
,
SetHelp
,
Set
code
tabOperators
,
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"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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