Commit 19925e28 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

percentile: change lower level from 99 to 100

parent fe271daf
......@@ -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--;
}
......
......@@ -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;
......
......@@ -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 */
......
......@@ -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));
......
......@@ -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));
......
......@@ -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;
......
......@@ -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_*/
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