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
19925e28
Commit
19925e28
authored
Oct 19, 2015
by
Uwe Schulzweida
Browse files
percentile: change lower level from 99 to 100
parent
fe271daf
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/Ensstat.c
View file @
19925e28
...
...
@@ -80,8 +80,8 @@ void *Ensstat(void *argument)
operatorInputArg
(
"percentile number"
);
pn
=
parameter2int
(
operatorArgv
()[
0
]);
if
(
pn
<
1
||
pn
>
99
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
99
!"
,
pn
);
if
(
pn
<
1
||
pn
>
100
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
100
!"
,
pn
);
argc
--
;
}
...
...
src/Fldstat.c
View file @
19925e28
...
...
@@ -120,8 +120,8 @@ void *Fldstat(void *argument)
operatorInputArg
(
"percentile number"
);
pn
=
parameter2int
(
operatorArgv
()[
0
]);
if
(
pn
<
1
||
pn
>
99
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
99
!"
,
pn
);
if
(
pn
<
1
||
pn
>
100
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
100
!"
,
pn
);
}
int
useweights
=
TRUE
;
...
...
src/Merstat.c
View file @
19925e28
...
...
@@ -71,8 +71,8 @@ void *Merstat(void *argument)
operatorInputArg
(
"percentile number"
);
pn
=
parameter2int
(
operatorArgv
()[
0
]);
if
(
pn
<
1
||
pn
>
99
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
99
!"
,
pn
);
if
(
pn
<
1
||
pn
>
100
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
100
!"
,
pn
);
}
/* QR */
...
...
src/Runpctl.c
View file @
19925e28
...
...
@@ -54,8 +54,8 @@ void *Runpctl(void *argument)
int
pn
=
parameter2int
(
operatorArgv
()[
0
]);
int
ndates
=
parameter2int
(
operatorArgv
()[
1
]);
if
(
pn
<
1
||
pn
>
99
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
99
!"
,
pn
);
if
(
pn
<
1
||
pn
>
100
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
100
!"
,
pn
);
int
streamID1
=
streamOpenRead
(
cdoStreamName
(
0
));
...
...
src/Zonstat.c
View file @
19925e28
...
...
@@ -70,8 +70,8 @@ void *Zonstat(void *argument)
operatorInputArg
(
"percentile number"
);
pn
=
parameter2int
(
operatorArgv
()[
0
]);
if
(
pn
<
1
||
pn
>
99
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
99
!"
,
pn
);
if
(
pn
<
1
||
pn
>
100
)
cdoAbort
(
"Illegal argument: percentile number %d is not in the range 1..
100
!"
,
pn
);
}
int
streamID1
=
streamOpenRead
(
cdoStreamName
(
0
));
...
...
src/nth_element.c
View file @
19925e28
...
...
@@ -22,7 +22,7 @@
#define SWAP(a, b) {t = (a); (a) = (b); (b) = t;}
double
nth_element
(
double
array
[]
,
int
length
,
int
n
)
double
nth_element
(
double
*
array
,
int
length
,
int
n
)
{
int
i
,
j
,
k
=
0
,
l
=
length
-
1
,
m
;
double
a
,
t
;
...
...
src/nth_element.h
View file @
19925e28
...
...
@@ -34,6 +34,6 @@
* @author Ralf Quast
* @version 1.0
*/
double
nth_element
(
double
array
[]
,
int
length
,
int
n
);
double
nth_element
(
double
*
array
,
int
length
,
int
n
);
#endif
/*NTH_ELEMENT_H_*/
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